Skip to content

Commit 5fb7512

Browse files
committed
Fixed PHPStan
1 parent d1bfbf7 commit 5fb7512

File tree

3 files changed

+18
-24
lines changed

3 files changed

+18
-24
lines changed

phpstan-baseline-7.4.neon

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -456,18 +456,6 @@ parameters:
456456
count: 3
457457
path: tests/integration/Core/Repository/RoleServiceTest.php
458458

459-
-
460-
message: '#^Parameter \#1 \$class of class ReflectionProperty constructor expects object\|string, class\-string\|false given\.$#'
461-
identifier: argument.type
462-
count: 4
463-
path: tests/integration/Core/Repository/SearchServiceLocationTest.php
464-
465-
-
466-
message: '#^Parameter \#1 \$class of class ReflectionProperty constructor expects object\|string, class\-string\|false given\.$#'
467-
identifier: argument.type
468-
count: 4
469-
path: tests/integration/Core/Repository/SearchServiceTest.php
470-
471459
-
472460
message: '#^Parameter \#1 \$str of function md5 expects string, int\<1, max\> given\.$#'
473461
identifier: argument.type

phpstan-baseline-gte-8.0.neon

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -414,18 +414,6 @@ parameters:
414414
count: 1
415415
path: tests/integration/Core/Repository/RoleServiceTest.php
416416

417-
-
418-
message: '#^Parameter \#1 \$class of class ReflectionProperty constructor expects object\|string, class\-string\|false given\.$#'
419-
identifier: argument.type
420-
count: 4
421-
path: tests/integration/Core/Repository/SearchServiceLocationTest.php
422-
423-
-
424-
message: '#^Parameter \#1 \$class of class ReflectionProperty constructor expects object\|string, class\-string\|false given\.$#'
425-
identifier: argument.type
426-
count: 4
427-
path: tests/integration/Core/Repository/SearchServiceTest.php
428-
429417
-
430418
message: '#^Parameter \#1 \$string of function md5 expects string, int\<1, max\> given\.$#'
431419
identifier: argument.type

phpstan-baseline.neon

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18534,6 +18534,12 @@ parameters:
1853418534
count: 1
1853518535
path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/IntegerConverter.php
1853618536

18537+
-
18538+
message: '#^Strict comparison using \=\=\= between false and false will always evaluate to true\.$#'
18539+
identifier: identical.alwaysTrue
18540+
count: 1
18541+
path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/IntegerConverter.php
18542+
1853718543
-
1853818544
message: '#^Method Ibexa\\Core\\Persistence\\Legacy\\Content\\FieldValue\\Converter\\KeywordConverter\:\:toFieldDefinition\(\) has no return type specified\.$#'
1853918545
identifier: missingType.return
@@ -45036,6 +45042,12 @@ parameters:
4503645042
count: 1
4503745043
path: tests/integration/Core/Repository/SearchServiceLocationTest.php
4503845044

45045+
-
45046+
message: '#^Parameter \#1 \$class of class ReflectionProperty constructor expects class\-string\|object, class\-string\|false given\.$#'
45047+
identifier: argument.type
45048+
count: 4
45049+
path: tests/integration/Core/Repository/SearchServiceLocationTest.php
45050+
4503945051
-
4504045052
message: '#^Parameter \#1 \$locationId of method Ibexa\\Contracts\\Core\\Repository\\LocationService\:\:loadLocation\(\) expects int, int\|null given\.$#'
4504145053
identifier: argument.type
@@ -46050,6 +46062,12 @@ parameters:
4605046062
count: 1
4605146063
path: tests/integration/Core/Repository/SearchServiceTest.php
4605246064

46065+
-
46066+
message: '#^Parameter \#1 \$class of class ReflectionProperty constructor expects class\-string\|object, class\-string\|false given\.$#'
46067+
identifier: argument.type
46068+
count: 4
46069+
path: tests/integration/Core/Repository/SearchServiceTest.php
46070+
4605346071
-
4605446072
message: '#^Parameter \#1 \$expectedCount of method PHPUnit\\Framework\\Assert\:\:assertCount\(\) expects int, int\|null given\.$#'
4605546073
identifier: argument.type

0 commit comments

Comments
 (0)