From 768aea427ec1edd517f450d7428a476261b79cb6 Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Tue, 14 Feb 2023 20:19:37 +0000 Subject: [PATCH] =?UTF-8?q?CI=20Working=3F=20=F0=9F=A4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tests.yml | 2 -- packages/forms/src/Components/BaseFileUpload.php | 7 ++++--- packages/tables/src/Columns/Concerns/CanBeValidated.php | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f53cf916e3..5ec7d0fed0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,8 +18,6 @@ jobs: testbench: 8.* - laravel: 9.* testbench: 7.* - - laravel: 8.* - testbench: 6.* exclude: - laravel: 10.* php: '8.0' diff --git a/packages/forms/src/Components/BaseFileUpload.php b/packages/forms/src/Components/BaseFileUpload.php index 8668236a77..b329e16c36 100644 --- a/packages/forms/src/Components/BaseFileUpload.php +++ b/packages/forms/src/Components/BaseFileUpload.php @@ -428,9 +428,10 @@ class BaseFileUpload extends Field $name = $this->getName(); $validator = Validator::make( - data: [$name => $files], - rules: ["{$name}.*" => array_merge(['file'], parent::getValidationRules())], - customAttributes: ["{$name}.*" => $this->getValidationAttribute()], + [$name => $files], + ["{$name}.*" => array_merge(['file'], parent::getValidationRules())], + [], + ["{$name}.*" => $this->getValidationAttribute()], ); if (! $validator->fails()) { diff --git a/packages/tables/src/Columns/Concerns/CanBeValidated.php b/packages/tables/src/Columns/Concerns/CanBeValidated.php index a0073d2b32..aafd767fe7 100644 --- a/packages/tables/src/Columns/Concerns/CanBeValidated.php +++ b/packages/tables/src/Columns/Concerns/CanBeValidated.php @@ -42,7 +42,8 @@ trait CanBeValidated Validator::make( ['input' => $input], ['input' => $this->getRules()], - customAttributes: ['input' => $this->getValidationAttribute()], + [], + ['input' => $this->getValidationAttribute()], )->validate(); }