Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Commands/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 0 additions & 4 deletions app/Commands/ServerSwitchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace App\Commands;

use Spatie\Once;

class ServerSwitchCommand extends Command
{
/**
Expand Down Expand Up @@ -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 <comment>['.$server->name.']</comment>'
);
Expand Down
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -38,7 +37,7 @@
"config": {
"sort-packages": true,
"platform": {
"php": "8.1.0"
"php": "8.2.0"
},
"allow-plugins": {
"pestphp/pest-plugin": true
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
|
*/

'version' => '1.8.3',
'version' => '2.0.0',

/*
|--------------------------------------------------------------------------
Expand Down
10 changes: 6 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
includes:
- ./vendor/larastan/larastan/extension.neon
parameters:
paths:
- app
Expand All @@ -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
3 changes: 0 additions & 3 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\File;
use LaravelZero\Framework\Testing\TestCase;
use Spatie\Once;
use Tests\CreatesApplication;

/*
Expand All @@ -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) {
Expand Down