Skip to content

Commit

Permalink
Update baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
phpstan-bot authored and ondrejmirtes committed May 22, 2024
1 parent 49f87ce commit d77ab48
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 20 deletions.
25 changes: 5 additions & 20 deletions e2e/integration/composer-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ parameters:
count: 1
path: repo/src/Composer/Command/InitCommand.php

-
message: "#^Call to function array_filter\\(\\) requires parameter \\#2 to be passed to avoid loose comparison semantics\\.$#"
count: 2
path: repo/src/Composer/Command/ShowCommand.php

-
message: "#^Method Composer\\\\Command\\\\ShowCommand\\:\\:getPackage\\(\\) should return array\\{Composer\\\\Package\\\\CompletePackageInterface\\|null, array\\<string, string\\>\\} but returns array\\{Composer\\\\Package\\\\BasePackage\\|null, array\\<string, string\\>\\}\\.$#"
count: 1
Expand Down Expand Up @@ -80,6 +75,11 @@ parameters:
count: 2
path: repo/src/Composer/Command/ValidateCommand.php

-
message: "#^Parameter \\#2 \\$replacement of static method Composer\\\\Pcre\\\\Preg\\:\\:replaceCallback\\(\\) expects callable\\(array\\<int\\|string, string\\|null\\>\\)\\: string, Closure\\(mixed\\)\\: \\(string\\|null\\) given\\.$#"
count: 1
path: repo/src/Composer/Json/JsonFormatter.php

-
message: "#^Call to function array_filter\\(\\) requires parameter \\#2 to be passed to avoid loose comparison semantics\\.$#"
count: 1
Expand All @@ -100,21 +100,11 @@ parameters:
count: 1
path: repo/src/Composer/Platform/Version.php

-
message: "#^Call to function array_filter\\(\\) requires parameter \\#2 to be passed to avoid loose comparison semantics\\.$#"
count: 3
path: repo/src/Composer/Repository/ComposerRepository.php

-
message: "#^Only booleans are allowed in a ternary operator condition, bool\\|null given\\.$#"
count: 4
path: repo/src/Composer/Repository/PlatformRepository.php

-
message: "#^Call to function array_filter\\(\\) requires parameter \\#2 to be passed to avoid loose comparison semantics\\.$#"
count: 1
path: repo/src/Composer/Util/ErrorHandler.php

-
message: "#^Parameter &\\$match by\\-ref type of method Composer\\\\Util\\\\Git\\:\\:isAuthenticationFailure\\(\\) expects array\\<string\\>, array\\<int\\|string, string\\|null\\> given\\.$#"
count: 1
Expand Down Expand Up @@ -170,11 +160,6 @@ parameters:
count: 1
path: repo/src/Composer/Util/TlsHelper.php

-
message: "#^Call to function array_filter\\(\\) requires parameter \\#2 to be passed to avoid loose comparison semantics\\.$#"
count: 2
path: repo/tests/Composer/Test/Advisory/AuditorTest.php

-
message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#"
count: 1
Expand Down
5 changes: 5 additions & 0 deletions e2e/integration/doctrine-dbal-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ parameters:
message: "#^Method Doctrine\\\\DBAL\\\\Driver\\\\Mysqli\\\\Result\\:\\:rowCount\\(\\) should return int but returns int\\<\\-1, max\\>\\|string\\.$#"
count: 1
path: repo/src/Driver/Mysqli/Result.php

-
message: "#^Parameter \\#2 \\$callback of function array_reduce expects callable\\(\\(callable&TIn\\)\\|Closure\\(mixed \\$value\\)\\: mixed\\|null, callable\\(T\\)\\: T\\)\\: \\(\\(callable&TIn\\)\\|Closure\\(mixed \\$value\\)\\: mixed\\|null\\), Closure\\(callable\\|null, callable\\)\\: \\(callable\\(T\\)\\: T\\) given\\.$#"
count: 1
path: repo/src/Portability/Converter.php
2 changes: 2 additions & 0 deletions e2e/integration/laravel-types-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
parameters:
ignoreErrors: []
11 changes: 11 additions & 0 deletions e2e/integration/react-promise-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
parameters:
ignoreErrors:
-
message: "#^Method React\\\\Promise\\\\Internal\\\\FulfilledPromise\\:\\:finally\\(\\) should return React\\\\Promise\\\\PromiseInterface\\<T\\> but returns React\\\\Promise\\\\PromiseInterface\\<\\(T of mixed\\)\\|null\\>\\.$#"
count: 1
path: repo/src/Internal/FulfilledPromise.php

-
message: "#^Method React\\\\Promise\\\\Promise\\:\\:finally\\(\\) should return React\\\\Promise\\\\PromiseInterface\\<T\\> but returns React\\\\Promise\\\\PromiseInterface\\<\\(T of mixed\\)\\|null\\>\\.$#"
count: 1
path: repo/src/Promise.php

0 comments on commit d77ab48

Please sign in to comment.