Skip to content

Commit 9b1601e

Browse files
committed
fix: new phpstan rules so I deleted an unused class
1 parent c507069 commit 9b1601e

File tree

4 files changed

+6
-35
lines changed

4 files changed

+6
-35
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"require-dev": {
4040
"guzzlehttp/guzzle": "^7.0",
4141
"laravel/pint": "^1.0",
42-
"larastan/larastan": "^2.0|^3.0@dev",
42+
"larastan/larastan": "^2.0|^3.1",
4343
"nunomaduro/collision": "^7.11|^8.1.1",
4444
"orchestra/testbench": "^8.0|^9.0|^10.0",
4545
"pestphp/pest": "^v2.30|^3.0",

phpstan.neon

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ parameters:
99
# Level 9 is the highest level
1010
level: 5
1111

12+
13+
noEnvCallsOutsideOfConfig: false # Don't know why he doesn't consider our config/ directory as config
14+
1215
ignoreErrors:
1316
- '#Class App\\Providers\\NativeAppServiceProvider not found#'
1417
- '#Class Native\\Laravel\\ChildProcess has an uninitialized readonly property#'

src/Commands/LoadPHPConfigurationCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ public function handle()
1414
/** @var ProvidesPhpIni $provider */
1515
$provider = app(config('nativephp.provider'));
1616
$phpIni = [];
17+
18+
/* * @phpstan-ignore-next-line */
1719
if (method_exists($provider, 'phpIni')) {
1820
$phpIni = $provider->phpIni();
1921
}

src/Concerns/InteractsWithNativeApp.php

-34
This file was deleted.

0 commit comments

Comments
 (0)