diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 818f1217..5f7aa9e0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - php: ['8.1', '8.2'] + php: ['8.1', '8.2', '8.3'] dependency-version: [lowest, highest] name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} diff --git a/composer.json b/composer.json index c61a4749..e972975d 100755 --- a/composer.json +++ b/composer.json @@ -60,7 +60,7 @@ "illuminate/view": "^10.28", "laminas/laminas-text": "^2.10", "laravel-zero/phar-updater": "^1.4", - "laravel/pint": "^1.13.3", + "laravel/pint": "^1.13.7", "nunomaduro/laravel-console-dusk": "^1.11", "nunomaduro/laravel-console-menu": "^3.4", "nunomaduro/termwind": "^1.15.1", diff --git a/src/Exceptions/ConsoleException.php b/src/Exceptions/ConsoleException.php index 6d0f1aae..647e847e 100644 --- a/src/Exceptions/ConsoleException.php +++ b/src/Exceptions/ConsoleException.php @@ -40,9 +40,9 @@ final class ConsoleException extends Exception implements ConsoleExceptionContra */ public function __construct( int $exitCode, - string $message = null, + ?string $message = null, array $headers = [], - Exception $previous = null, + ?Exception $previous = null, ?int $code = 0 ) { $this->exitCode = $exitCode; diff --git a/src/Providers/CommandRecorder/CommandRecorderRepository.php b/src/Providers/CommandRecorder/CommandRecorderRepository.php index f3f09cbf..194f5c01 100644 --- a/src/Providers/CommandRecorder/CommandRecorderRepository.php +++ b/src/Providers/CommandRecorder/CommandRecorderRepository.php @@ -29,7 +29,7 @@ final class CommandRecorderRepository /** * CommandRecorderRepository constructor. */ - public function __construct(Collection $storage = null) + public function __construct(?Collection $storage = null) { $this->storage = $storage ?? collect(); } diff --git a/src/Providers/Composer/Composer.php b/src/Providers/Composer/Composer.php index b641c958..8f224ccd 100644 --- a/src/Providers/Composer/Composer.php +++ b/src/Providers/Composer/Composer.php @@ -72,7 +72,7 @@ public function createProject(string $skeleton, string $projectName, array $opti /** * Runs the provided command on the provided folder. */ - private function run(string $cmd, string $cwd = null): bool + private function run(string $cmd, ?string $cwd = null): bool { $process = Process::fromShellCommandline($cmd, $cwd);