diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 9d41c0c..4ee16a8 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -16,7 +16,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.3' coverage: none - name: Install composer dependencies diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b5d6720..988ad6e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,16 +12,16 @@ jobs: strategy: fail-fast: true matrix: - os: [ubuntu-latest, windows-latest] - php: [8.2, 8.1] - laravel: [10.*] - stability: [prefer-lowest, prefer-stable] + os: [ubuntu-latest] + php: [8.3] + laravel: [11.*] + stability: [prefer-stable] include: - - laravel: 10.* - testbench: 8.* + - laravel: 11.* + testbench: 9.* carbon: ^2.63 - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} + name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} steps: - name: Checkout code diff --git a/composer.json b/composer.json index ce928d4..ac925f8 100644 --- a/composer.json +++ b/composer.json @@ -1,15 +1,15 @@ { - "name": "coolsam/signature-pad", + "name": "bradwarwick/signature-pad", "description": "Signature Pad for FilamentPHP", "keywords": [ "coolsam", "laravel", "signature-pad" ], - "homepage": "https://github.com/coolsam/signature-pad", + "homepage": "https://github.com/bradwarwick/signature-pad", "support": { - "issues": "https://github.com/coolsam/signature-pad/issues", - "source": "https://github.com/coolsam/signature-pad" + "issues": "https://github.com/bradwarwick/signature-pad/issues", + "source": "https://github.com/bradwarwick/signature-pad" }, "license": "MIT", "authors": [ @@ -20,20 +20,21 @@ } ], "require": { - "php": "^8.1", + "php": "^8.3", "filament/forms": "^3.0", - "illuminate/contracts": "^10.0", + "illuminate/contracts": "^11.0", "spatie/laravel-package-tools": "^1.15.0" }, "require-dev": { + "roave/security-advisories": "dev-latest", "filament/filament": "^3.0", "laravel/pint": "^1.0", - "nunomaduro/collision": "^7.9", + "nunomaduro/collision": "^8.0", "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^8.0", - "pestphp/pest": "^2.0", - "pestphp/pest-plugin-arch": "^2.0", - "pestphp/pest-plugin-laravel": "^2.0", + "orchestra/testbench": "^9.0", + "pestphp/pest": "^3.0", + "pestphp/pest-plugin-arch": "^3.0", + "pestphp/pest-plugin-laravel": "^3.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", diff --git a/src/Forms/Components/Fields/SignaturePad.php b/src/Forms/Components/Fields/SignaturePad.php index a3650a3..682915d 100644 --- a/src/Forms/Components/Fields/SignaturePad.php +++ b/src/Forms/Components/Fields/SignaturePad.php @@ -10,7 +10,6 @@ class SignaturePad extends Field implements Contracts\CanBeLengthConstrained, Contracts\HasAffixActions { - use HasSignaturePadAttributes; use Concerns\CanBeAutocapitalized; use Concerns\CanBeAutocompleted; use Concerns\CanBeLengthConstrained; @@ -20,6 +19,7 @@ class SignaturePad extends Field implements Contracts\CanBeLengthConstrained, Co use Concerns\HasInputMode; use Concerns\HasPlaceholder; use HasExtraAlpineAttributes; + use HasSignaturePadAttributes; const PACKAGE_NAME = 'coolsam/signature-pad'; diff --git a/src/Forms/Concerns/HasSignaturePadAttributes.php b/src/Forms/Concerns/HasSignaturePadAttributes.php index 00aa3b9..9aa3042 100644 --- a/src/Forms/Concerns/HasSignaturePadAttributes.php +++ b/src/Forms/Concerns/HasSignaturePadAttributes.php @@ -21,7 +21,7 @@ trait HasSignaturePadAttributes protected bool $hideDownloadButtons = false; /** - * @param bool $hide = true + * @param bool $hide = true */ public function hideDownloadButtons(bool $hide = true): static { diff --git a/src/SignaturePad.php b/src/SignaturePad.php index 4ae620c..641aace 100644 --- a/src/SignaturePad.php +++ b/src/SignaturePad.php @@ -2,6 +2,4 @@ namespace Coolsam\SignaturePad; -class SignaturePad extends \Coolsam\SignaturePad\Forms\Components\Fields\SignaturePad -{ -} +class SignaturePad extends \Coolsam\SignaturePad\Forms\Components\Fields\SignaturePad {} diff --git a/src/SignaturePadServiceProvider.php b/src/SignaturePadServiceProvider.php index 806c33c..4470ecc 100644 --- a/src/SignaturePadServiceProvider.php +++ b/src/SignaturePadServiceProvider.php @@ -58,9 +58,7 @@ public function configurePackage(Package $package): void } } - public function packageRegistered(): void - { - } + public function packageRegistered(): void {} public function packageBooted(): void { @@ -88,7 +86,7 @@ public function packageBooted(): void } // Testing - Testable::mixin(new TestsSignaturePad()); + Testable::mixin(new TestsSignaturePad); } protected function getAssetPackageName(): ?string diff --git a/tests/ArchTest.php b/tests/ArchTest.php deleted file mode 100644 index ccc19b2..0000000 --- a/tests/ArchTest.php +++ /dev/null @@ -1,5 +0,0 @@ -expect(['dd', 'dump', 'ray']) - ->each->not->toBeUsed(); diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php deleted file mode 100644 index 5d36321..0000000 --- a/tests/ExampleTest.php +++ /dev/null @@ -1,5 +0,0 @@ -toBeTrue(); -});