diff --git a/app/Commands/Command.php b/app/Commands/Command.php index 4e6c592..54e865b 100644 --- a/app/Commands/Command.php +++ b/app/Commands/Command.php @@ -89,7 +89,7 @@ public function __construct( * * @return int */ - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { return tap(parent::execute($input, $output), function () { $this->ensureLatestVersion(); diff --git a/app/Commands/ServerSwitchCommand.php b/app/Commands/ServerSwitchCommand.php index 9541955..1a6b133 100644 --- a/app/Commands/ServerSwitchCommand.php +++ b/app/Commands/ServerSwitchCommand.php @@ -2,8 +2,6 @@ namespace App\Commands; -use Spatie\Once; - class ServerSwitchCommand extends Command { /** @@ -42,8 +40,6 @@ public function handle() $this->config->set('server', $server->id); - Once\Cache::getInstance()->flush(); - $this->successfulStep( 'Current server context changed successfully to ['.$server->name.']' ); diff --git a/composer.json b/composer.json index 5610568..908274e 100644 --- a/composer.json +++ b/composer.json @@ -14,16 +14,15 @@ } ], "require": { - "php": "^8.1.0", + "php": "^8.2", "phpseclib/phpseclib": "^3.0.19" }, "require-dev": { - "laravel-zero/framework": "^10.0.2", + "laravel-zero/framework": "^12.0", "laravel/forge-sdk": "^3.13.4", "mockery/mockery": "^1.5.1", - "larastan/larastan": "^2.6.0", - "pestphp/pest": "^2.6.1", - "spatie/once": "^3.1.0" + "larastan/larastan": "^3.6.0", + "pestphp/pest": "^3.8.2", }, "autoload": { "psr-4": { @@ -38,7 +37,7 @@ "config": { "sort-packages": true, "platform": { - "php": "8.1.0" + "php": "8.2.0" }, "allow-plugins": { "pestphp/pest-plugin": true diff --git a/config/app.php b/config/app.php index ccfe96d..948d3da 100644 --- a/config/app.php +++ b/config/app.php @@ -26,7 +26,7 @@ | */ - 'version' => '1.8.3', + 'version' => '2.0.0', /* |-------------------------------------------------------------------------- diff --git a/phpstan.neon b/phpstan.neon index a311686..e4f3abb 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,3 @@ -includes: - - ./vendor/larastan/larastan/extension.neon parameters: paths: - app @@ -10,5 +8,9 @@ parameters: ignoreErrors: - '#Unsafe usage of new static\(\)#' - '#does not have argument#' - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false + scanDirectories: + - app + - bootstrap + - config + rootDir: . + tmpDir: .phpstan diff --git a/tests/Pest.php b/tests/Pest.php index d2e1289..7efc08f 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -9,7 +9,6 @@ use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Facades\File; use LaravelZero\Framework\Testing\TestCase; -use Spatie\Once; use Tests\CreatesApplication; /* @@ -25,8 +24,6 @@ uses(TestCase::class, CreatesApplication::class) ->beforeEach(function () { - Once\Cache::getInstance()->flush(); - (new Filesystem)->deleteDirectory(base_path('tests/.laravel-forge')); $this->client = tap(Mockery::mock(Forge::class), function ($mock) {