From 560eecf461c7bbba36dd1d1df9fb8bcf338ad34f Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Fri, 13 Sep 2024 17:59:27 +0200 Subject: [PATCH] [PHPStan] Aligned baseline after PHPStan update (#184) --- phpstan-baseline.neon | 90 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 86 insertions(+), 4 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 4924532e..b0d3bb97 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -455,6 +455,36 @@ parameters: count: 1 path: src/lib/FieldType/RichText/RichTextStorage.php + - + message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|'ezremote\\://', 2\\?\\: string, 3\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/FieldType/RichText/RichTextStorage.php + + - + message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/FieldType/RichText/RichTextStorage.php + + - + message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\: 'ezremote\\://', 2\\?\\: string, 3\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/FieldType/RichText/RichTextStorage.php + + - + message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|'ezremote\\://', 2\\?\\: string, 3\\?\\: string\\}\\.$#" + count: 2 + path: src/lib/FieldType/RichText/RichTextStorage.php + + - + message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/FieldType/RichText/RichTextStorage.php + + - + message: "#^Offset 3 does not exist on array\\{0\\?\\: string, 1\\?\\: ''\\|'ezremote\\://', 2\\?\\: string, 3\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/FieldType/RichText/RichTextStorage.php + - message: "#^Parameter \\#1 \\$source of method DOMDocument\\:\\:loadXML\\(\\) expects string, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" count: 2 @@ -625,6 +655,21 @@ parameters: count: 4 path: src/lib/RichText/Converter/Link.php + - + message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string, 3\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/RichText/Converter/Link.php + + - + message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string, 3\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/RichText/Converter/Link.php + + - + message: "#^Offset 3 does not exist on array\\{0\\?\\: string, 1\\?\\: string, 2\\?\\: string, 3\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/RichText/Converter/Link.php + - message: "#^Parameter \\#1 \\$locationId of method Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\LocationService\\:\\:loadLocation\\(\\) expects int, int\\|null given\\.$#" count: 1 @@ -770,6 +815,21 @@ parameters: count: 1 path: src/lib/RichText/Converter/Render/Embed.php + - + message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: 'ezcontent'\\|'ezlocation', 2\\?\\: numeric\\-string\\}\\.$#" + count: 1 + path: src/lib/RichText/Converter/Render/Embed.php + + - + message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\: 'ezcontent', 2\\?\\: numeric\\-string\\}\\.$#" + count: 1 + path: src/lib/RichText/Converter/Render/Embed.php + + - + message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\: 'ezlocation', 2\\?\\: numeric\\-string\\}\\.$#" + count: 1 + path: src/lib/RichText/Converter/Render/Embed.php + - message: "#^PHPDoc tag @var has invalid value \\(\\$embed \\\\DOMElement\\)\\: Unexpected token \"\\$embed\", expected type at offset 9$#" count: 1 @@ -950,6 +1010,16 @@ parameters: count: 1 path: src/lib/RichText/RelationProcessor.php + - + message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: string, 3\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/RichText/RelationProcessor.php + + - + message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: string, 3\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/RichText/RelationProcessor.php + - message: "#^Cannot call method error\\(\\) on Psr\\\\Log\\\\LoggerInterface\\|null\\.$#" count: 13 @@ -1080,6 +1150,16 @@ parameters: count: 1 path: src/lib/RichText/Validator/InternalLinkValidator.php + - + message: "#^Offset 1 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: string, 3\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/RichText/Validator/InternalLinkValidator.php + + - + message: "#^Offset 2 does not exist on array\\{0\\?\\: string, 1\\?\\: non\\-empty\\-string, 2\\?\\: string, 3\\?\\: string\\}\\.$#" + count: 1 + path: src/lib/RichText/Validator/InternalLinkValidator.php + - message: "#^Parameter \\#1 \\$locationId of method Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Location\\\\Handler\\:\\:load\\(\\) expects int, string given\\.$#" count: 1 @@ -1314,10 +1394,7 @@ parameters: message: "#^Cannot access property \\$id on Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Field\\|null\\.$#" count: 1 path: tests/integration/Repository/RichTextFieldTypeIntegrationTest.php - - - message: "#^Cannot call method fetchOne\\(\\) on Doctrine\\\\DBAL\\\\ForwardCompatibility\\\\Result\\|int\\|string\\.$#" - count: 1 - path: tests/integration/Repository/RichTextFieldTypeIntegrationTest.php + - message: "#^Cannot access property \\$value on Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Field\\|null\\.$#" count: 1 @@ -1333,6 +1410,11 @@ parameters: count: 1 path: tests/integration/Repository/RichTextFieldTypeIntegrationTest.php + - + message: "#^Cannot call method fetchOne\\(\\) on Doctrine\\\\DBAL\\\\ForwardCompatibility\\\\Result\\|int\\|string\\.$#" + count: 1 + path: tests/integration/Repository/RichTextFieldTypeIntegrationTest.php + - message: "#^Method Ibexa\\\\Tests\\\\Integration\\\\FieldTypeRichText\\\\Repository\\\\RichTextFieldTypeIntegrationTest\\:\\:__construct\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#" count: 1