Skip to content

Commit

Permalink
Restrict PHPStan version, further analysis fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Mar 2, 2023
1 parent 2f4a532 commit 6c32cf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"php-parallel-lint/php-parallel-lint": "^1.0",
"meyfa/phpunit-assert-gd": "^2.0.0|^3.0.0",
"dms/phpunit-arraysubset-asserts": "^0.1.0|^0.2.1",
"nunomaduro/larastan": "^2.0.1",
"nunomaduro/larastan": "~2.2.9",
"orchestra/testbench": "^7.1.0"
},
"suggest": {
Expand Down
10 changes: 0 additions & 10 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -755,16 +755,6 @@ parameters:
count: 1
path: src/Extension/Extendable.php

-
message: "#^Parameter \\#3 \\$replacement of method Illuminate\\\\Support\\\\Collection\\<int\\<0, 1\\>,Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\), mixed\\>\\>\\:\\:splice\\(\\) expects array\\<Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\), mixed\\>\\>, array\\{array\\} given\\.$#"
count: 1
path: src/Foundation/Application.php

-
message: "#^Strict comparison using \\=\\=\\= between array\\|null and false will always evaluate to false\\.$#"
count: 1
path: src/Foundation/Exception/Handler.php

-
message: "#^Conditional return type uses subject type TCacheValue which is not part of PHPDoc @template tags\\.$#"
count: 1
Expand Down
4 changes: 2 additions & 2 deletions src/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public function make($abstract, array $parameters = [])
*/
public function before($callback)
{
$this['router']->before($callback);
$this->make('router')->before($callback);
}

/**
Expand All @@ -323,7 +323,7 @@ public function before($callback)
*/
public function after($callback)
{
$this['router']->after($callback);
$this->make('router')->after($callback);
}

/**
Expand Down

0 comments on commit 6c32cf1

Please sign in to comment.