From 4ef331b0aee8946fa34daabbd1b96c9db553c5bb Mon Sep 17 00:00:00 2001 From: Konrad Oboza Date: Tue, 2 Jul 2024 11:32:15 +0200 Subject: [PATCH] Regenerated PHPStan baseline (#399) For more details see https://github.com/ibexa/core/pull/399 --- phpstan-baseline.neon | 15 +++++---------- .../TrustedHeaderClientIpEventSubscriberTest.php | 5 ++++- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index df24cda6eb..abdd9d0e44 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -9341,12 +9341,12 @@ parameters: path: src/lib/FieldType/Image/ImageStorage.php - - message: "#^Cannot access offset 0 on array\\{0\\: int, 1\\: int, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#" + message: "#^Cannot access offset 0 on array\\{0\\: int\\<1, max\\>, 1\\: int\\<1, max\\>, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#" count: 1 path: src/lib/FieldType/Image/ImageStorage.php - - message: "#^Cannot access offset 1 on array\\{0\\: int, 1\\: int, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#" + message: "#^Cannot access offset 1 on array\\{0\\: int\\<1, max\\>, 1\\: int\\<1, max\\>, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#" count: 1 path: src/lib/FieldType/Image/ImageStorage.php @@ -11036,17 +11036,17 @@ parameters: path: src/lib/IO/MetadataHandler.php - - message: "#^Cannot access offset 'mime' on array\\{0\\: int, 1\\: int, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#" + message: "#^Cannot access offset 'mime' on array\\{0\\: int\\<1, max\\>, 1\\: int\\<1, max\\>, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#" count: 1 path: src/lib/IO/MetadataHandler/ImageSize.php - - message: "#^Cannot access offset 0 on array\\{0\\: int, 1\\: int, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#" + message: "#^Cannot access offset 0 on array\\{0\\: int\\<1, max\\>, 1\\: int\\<1, max\\>, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#" count: 1 path: src/lib/IO/MetadataHandler/ImageSize.php - - message: "#^Cannot access offset 1 on array\\{0\\: int, 1\\: int, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#" + message: "#^Cannot access offset 1 on array\\{0\\: int\\<1, max\\>, 1\\: int\\<1, max\\>, 2\\: int, 3\\: string, mime\\: string, channels\\?\\: int, bits\\?\\: int\\}\\|false\\.$#" count: 1 path: src/lib/IO/MetadataHandler/ImageSize.php @@ -25205,11 +25205,6 @@ parameters: count: 1 path: tests/bundle/Core/EventSubscriber/CrowdinRequestLocaleSubscriberTest.php - - - message: "#^Method Ibexa\\\\Tests\\\\Bundle\\\\Core\\\\EventSubscriber\\\\TrustedHeaderClientIpEventSubscriberTest\\:\\:__construct\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" - count: 1 - path: tests/bundle/Core/EventSubscriber/TrustedHeaderClientIpEventSubscriberTest.php - - message: "#^Method Ibexa\\\\Tests\\\\Bundle\\\\Core\\\\EventSubscriber\\\\TrustedHeaderClientIpEventSubscriberTest\\:\\:getTrustedHeaderEventSubscriberTestData\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 diff --git a/tests/bundle/Core/EventSubscriber/TrustedHeaderClientIpEventSubscriberTest.php b/tests/bundle/Core/EventSubscriber/TrustedHeaderClientIpEventSubscriberTest.php index db84d93207..55446a653d 100644 --- a/tests/bundle/Core/EventSubscriber/TrustedHeaderClientIpEventSubscriberTest.php +++ b/tests/bundle/Core/EventSubscriber/TrustedHeaderClientIpEventSubscriberTest.php @@ -29,7 +29,10 @@ final class TrustedHeaderClientIpEventSubscriberTest extends TestCase private const CUSTOM_CLIENT_IP = '234.123.78.98'; - public function __construct($name = null, array $data = [], $dataName = '') + /** + * @param array $data + */ + public function __construct(?string $name = null, array $data = [], string $dataName = '') { parent::__construct($name, $data, $dataName);