From a3f70663167932d8a2d57f98e41ad0a59a77e339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Fri, 11 Oct 2024 10:59:11 +0200 Subject: [PATCH] Regenerated PHPStan baseline files --- phpstan-baseline-7.4.neon | 2 +- phpstan-baseline-8.0.neon | 2 +- phpstan-baseline.neon | 55 +++++++++++++++++++++++++++++++++++---- 3 files changed, 52 insertions(+), 7 deletions(-) diff --git a/phpstan-baseline-7.4.neon b/phpstan-baseline-7.4.neon index 1b506f52..42e78497 100644 --- a/phpstan-baseline-7.4.neon +++ b/phpstan-baseline-7.4.neon @@ -7,7 +7,7 @@ parameters: - message: "#^Parameter \\#2 \\$str of function explode expects string, string\\|null given\\.$#" - count: 1 + count: 4 path: src/lib/Server/Controller/Content.php - diff --git a/phpstan-baseline-8.0.neon b/phpstan-baseline-8.0.neon index 76d651ca..fc95b6db 100644 --- a/phpstan-baseline-8.0.neon +++ b/phpstan-baseline-8.0.neon @@ -37,7 +37,7 @@ parameters: - message: "#^Parameter \\#2 \\$string of function explode expects string, string\\|null given\\.$#" - count: 1 + count: 4 path: src/lib/Server/Controller/Content.php - diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index c4a1c0df..cf9f00da 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1080,6 +1080,11 @@ parameters: count: 1 path: src/lib/RequestParser/Pattern.php + - + message: "#^Offset 2 does not exist on array\\{0\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: non\\-empty\\-string\\}\\.$#" + count: 1 + path: src/lib/RequestParser/Pattern.php + - message: "#^PHPDoc tag @param references unknown parameter\\: \\$type$#" count: 1 @@ -1195,6 +1200,11 @@ parameters: count: 1 path: src/lib/Server/Controller/Content.php + - + message: "#^Parameter \\#1 \\$remoteId of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\ContentService\\:\\:loadContentInfoByRemoteId\\(\\) expects string, string\\|null given\\.$#" + count: 1 + path: src/lib/Server/Controller/Content.php + - message: "#^Parameter \\#1 \\$versions of class Ibexa\\\\Rest\\\\Server\\\\Values\\\\VersionList constructor expects array\\, iterable\\ given\\.$#" count: 1 @@ -1365,6 +1375,11 @@ parameters: count: 1 path: src/lib/Server/Controller/ContentType.php + - + message: "#^Parameter \\#1 \\$contentTypeGroupIdentifier of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\ContentTypeService\\:\\:loadContentTypeGroupByIdentifier\\(\\) expects string, string\\|null given\\.$#" + count: 1 + path: src/lib/Server/Controller/ContentType.php + - message: "#^Parameter \\#1 \\$contentTypeGroups of class Ibexa\\\\Rest\\\\Server\\\\Values\\\\ContentTypeGroupList constructor expects array\\, iterable\\ given\\.$#" count: 1 @@ -1415,6 +1430,11 @@ parameters: count: 1 path: src/lib/Server/Controller/ContentType.php + - + message: "#^Parameter \\#2 \\$orderby of method Ibexa\\\\Rest\\\\Server\\\\Controller\\\\ContentType\\:\\:sortContentTypeList\\(\\) expects string, string\\|null given\\.$#" + count: 1 + path: src/lib/Server/Controller/ContentType.php + - message: "#^Unreachable statement \\- code above always terminates\\.$#" count: 1 @@ -1446,12 +1466,17 @@ parameters: path: src/lib/Server/Controller/Location.php - - message: "#^Parameter \\#1 \\$locationId of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\LocationService\\:\\:loadLocation\\(\\) expects int, string given\\.$#" + message: "#^Parameter \\#1 \\$locationId of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\LocationService\\:\\:loadLocation\\(\\) expects int, string\\|null given\\.$#" count: 1 path: src/lib/Server/Controller/Location.php - message: "#^Parameter \\#1 \\$remoteId of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\LocationService\\:\\:loadLocationByRemoteId\\(\\) expects string, string\\|null given\\.$#" + count: 2 + path: src/lib/Server/Controller/Location.php + + - + message: "#^Parameter \\#1 \\$url of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\URLAliasService\\:\\:lookup\\(\\) expects string, string\\|null given\\.$#" count: 1 path: src/lib/Server/Controller/Location.php @@ -1545,6 +1570,11 @@ parameters: count: 1 path: src/lib/Server/Controller/Role.php + - + message: "#^Left side of && is always true\\.$#" + count: 1 + path: src/lib/Server/Controller/Role.php + - message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Controller\\\\Role\\:\\:assignRoleToUser\\(\\) has parameter \\$userId with no type specified\\.$#" count: 1 @@ -1655,6 +1685,11 @@ parameters: count: 1 path: src/lib/Server/Controller/Role.php + - + message: "#^Parameter \\#1 \\$identifier of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\RoleService\\:\\:loadRoleByIdentifier\\(\\) expects string, string\\|null given\\.$#" + count: 1 + path: src/lib/Server/Controller/Role.php + - message: "#^Parameter \\#1 \\$locationId of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\LocationService\\:\\:loadLocation\\(\\) expects int, string given\\.$#" count: 4 @@ -2031,12 +2066,17 @@ parameters: path: src/lib/Server/Controller/User.php - - message: "#^Parameter \\#1 \\$href of method Ibexa\\\\Rest\\\\RequestParser\\:\\:parseHref\\(\\) expects string, string\\|null given\\.$#" + message: "#^Parameter \\#1 \\$email of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\UserService\\:\\:loadUsersByEmail\\(\\) expects string, string\\|null given\\.$#" count: 1 path: src/lib/Server/Controller/User.php - - message: "#^Parameter \\#1 \\$id of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\UserService\\:\\:loadUserGroup\\(\\) expects int, string given\\.$#" + message: "#^Parameter \\#1 \\$href of method Ibexa\\\\Rest\\\\RequestParser\\:\\:parseHref\\(\\) expects string, string\\|null given\\.$#" + count: 2 + path: src/lib/Server/Controller/User.php + + - + message: "#^Parameter \\#1 \\$id of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\UserService\\:\\:loadUserGroup\\(\\) expects int, string\\|null given\\.$#" count: 1 path: src/lib/Server/Controller/User.php @@ -2050,6 +2090,11 @@ parameters: count: 1 path: src/lib/Server/Controller/User.php + - + message: "#^Parameter \\#1 \\$login of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\UserService\\:\\:loadUserByLogin\\(\\) expects string, string\\|null given\\.$#" + count: 1 + path: src/lib/Server/Controller/User.php + - message: "#^Parameter \\#1 \\$message of function trigger_error expects string, int given\\.$#" count: 4 @@ -2062,7 +2107,7 @@ parameters: - message: "#^Parameter \\#1 \\$remoteId of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\ContentService\\:\\:loadContentInfoByRemoteId\\(\\) expects string, string\\|null given\\.$#" - count: 1 + count: 2 path: src/lib/Server/Controller/User.php - @@ -2317,7 +2362,7 @@ parameters: - message: "#^Possibly invalid array key type \\(array\\\\|string\\)\\.$#" - count: 2 + count: 1 path: src/lib/Server/Input/Parser/Criterion.php -