diff --git a/phpstan-baseline-7.4.neon b/phpstan-baseline-7.4.neon index 63e48aa8de..aab4991158 100644 --- a/phpstan-baseline-7.4.neon +++ b/phpstan-baseline-7.4.neon @@ -1,571 +1,2 @@ parameters: - ignoreErrors: - - - message: "#^Parameter \\#1 \\$input of function array_keys expects array, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: src/bundle/Core/ApiLoader/StorageConnectionFactory.php - - - - message: "#^Parameter \\#1 \\$input of function array_filter expects array, iterable\\ given\\.$#" - count: 1 - path: src/bundle/Core/Command/CleanupVersionsCommand.php - - - - message: "#^Parameter \\#1 \\$input of function array_slice expects array, iterable\\ given\\.$#" - count: 1 - path: src/bundle/Core/Command/CleanupVersionsCommand.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|iterable\\ given\\.$#" - count: 1 - path: src/bundle/Core/Command/CleanupVersionsCommand.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 1 - path: src/bundle/Core/Command/CleanupVersionsCommand.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\&Traversable given\\.$#" - count: 1 - path: src/bundle/Core/Command/ExpireUserPasswordsCommand.php - - - - message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/Command/ResizeOriginalImagesCommand.php - - - - message: "#^Parameter \\#1 \\$fp of function fwrite expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/Command/ResizeOriginalImagesCommand.php - - - - message: "#^Parameter \\#1 \\$fp of function stream_get_meta_data expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/Command/ResizeOriginalImagesCommand.php - - - - message: "#^Parameter \\#2 \\$str of function fwrite expects string, string\\|false given\\.$#" - count: 1 - path: src/bundle/Core/Command/ResizeOriginalImagesCommand.php - - - - message: "#^Parameter \\#2 \\$parameters of function call_user_func_array expects array\\, array\\\\> given\\.$#" - count: 1 - path: src/bundle/Core/DependencyInjection/Compiler/ConsoleCacheWarmupPass.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Core\\\\DependencyInjection\\\\Compiler\\\\InjectEntityManagerMappingsPass\\:\\:getEntityMapForConfigurationService\\(\\) should return array but returns array\\|false\\.$#" - count: 1 - path: src/bundle/Core/DependencyInjection/Compiler/InjectEntityManagerMappingsPass.php - - - - message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, Ibexa\\\\Contracts\\\\Core\\\\SiteAccess\\\\ConfigResolverInterface given\\.$#" - count: 1 - path: src/bundle/Core/DependencyInjection/Configuration/ChainConfigResolver.php - - - - message: "#^Parameter \\#1 \\$str of function strtolower expects string, string\\|null given\\.$#" - count: 1 - path: src/bundle/Core/DependencyInjection/Configuration/ConfigResolver.php - - - - message: "#^Parameter \\#1 \\$stack of function array_shift expects array, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: src/bundle/Core/DependencyInjection/Configuration/Parser/Languages.php - - - - message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: src/bundle/Core/DependencyInjection/Configuration/SiteAccessAware/Contextualizer.php - - - - message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: src/bundle/Core/DependencyInjection/IbexaCoreExtension.php - - - - message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: src/bundle/Core/Features/Context/ContentPreviewContext.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 1 - path: src/bundle/Core/Features/Context/UserContext.php - - - - message: "#^PHPDoc tag @throws with type Psr\\\\Cache\\\\InvalidArgumentException is not subtype of Throwable$#" - count: 1 - path: src/bundle/Core/Imagine/Cache/AliasGeneratorDecorator.php - - - - message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/Imagine/IORepositoryResolver.php - - - - message: "#^Parameter \\#1 \\$fp of function fwrite expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/Imagine/IORepositoryResolver.php - - - - message: "#^Parameter \\#1 \\$fp of function stream_get_meta_data expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/Imagine/IORepositoryResolver.php - - - - message: "#^Parameter \\#2 \\$str of function fwrite expects string, string\\|false given\\.$#" - count: 1 - path: src/bundle/Core/Imagine/IORepositoryResolver.php - - - - message: "#^Parameter \\#1 \\$fp of function stream_get_meta_data expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/Imagine/PlaceholderProvider/GenericProvider.php - - - - message: "#^Parameter \\#1 \\$fp of function stream_get_meta_data expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/Imagine/PlaceholderProvider/RemoteProvider.php - - - - message: "#^Parameter \\#1 \\$mh of function curl_multi_add_handle expects resource, resource\\|false given\\.$#" - count: 2 - path: src/bundle/Core/URLChecker/Handler/HTTPHandler.php - - - - message: "#^Parameter \\#1 \\$mh of function curl_multi_close expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/URLChecker/Handler/HTTPHandler.php - - - - message: "#^Parameter \\#1 \\$mh of function curl_multi_exec expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/URLChecker/Handler/HTTPHandler.php - - - - message: "#^Parameter \\#1 \\$mh of function curl_multi_info_read expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/URLChecker/Handler/HTTPHandler.php - - - - message: "#^Parameter \\#1 \\$mh of function curl_multi_remove_handle expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/Core/URLChecker/Handler/HTTPHandler.php - - - - message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#" - count: 1 - path: src/bundle/Debug/Twig/DebugTemplate.php - - - - message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/IO/BinaryStreamResponse.php - - - - message: "#^Parameter \\#2 \\$dest of function stream_copy_to_stream expects resource, resource\\|false given\\.$#" - count: 1 - path: src/bundle/IO/BinaryStreamResponse.php - - - - message: "#^Parameter \\#3 \\$count of class LimitIterator constructor expects int, int\\|null given\\.$#" - count: 1 - path: src/bundle/IO/Migration/FileLister/BinaryFileLister.php - - - - message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: src/bundle/IO/Migration/FileLister/FileRowReader/LegacyStorageFileRowReader.php - - - - message: "#^Parameter \\#3 \\$count of class LimitIterator constructor expects int, int\\|null given\\.$#" - count: 1 - path: src/bundle/IO/Migration/FileLister/ImageFileLister.php - - - - message: "#^Parameter \\#1 \\$input of function array_keys expects array, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: src/bundle/LegacySearchEngine/ApiLoader/ConnectionFactory.php - - - - message: "#^Parameter \\#1 \\$input of function array_filter expects array, array\\\\|false given\\.$#" - count: 1 - path: src/bundle/RepositoryInstaller/Installer/DbBasedInstaller.php - - - - message: "#^Parameter \\#1 \\$object_or_string of function is_a expects object\\|string, string\\|null given\\.$#" - count: 1 - path: src/lib/Base/Container/Compiler/FieldTypeRegistryPass.php - - - - message: "#^Parameter \\#1 \\$object_or_string of function is_subclass_of expects object\\|string, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: src/lib/Base/Container/Compiler/Storage/ExternalStorageRegistryPass.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: src/lib/FieldType/Author/SearchField.php - - - - message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: src/lib/FieldType/BinaryBase/BinaryBaseStorage/Gateway/DoctrineStorage.php - - - - message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: src/lib/FieldType/BinaryBase/PathGenerator/LegacyPathGenerator.php - - - - message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, array\\|bool\\|float\\|int\\|string given\\.$#" - count: 1 - path: src/lib/FieldType/Image/ImageStorage.php - - - - message: "#^Parameter \\#1 \\$input of function array_flip expects array\\, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: src/lib/FieldType/Selection/SearchField.php - - - - message: "#^Parameter \\#1 \\$str of function mb_substr expects string, string\\|false given\\.$#" - count: 1 - path: src/lib/FieldType/TextBlock/SearchField.php - - - - message: "#^Parameter \\#1 \\$str of function mb_substr expects string, string\\|false given\\.$#" - count: 1 - path: src/lib/FieldType/TextBlock/Type.php - - - - message: "#^Parameter \\#1 \\$input of function array_keys expects array, iterable\\ given\\.$#" - count: 1 - path: src/lib/Limitation/LanguageLimitationType.php - - - - message: "#^Parameter \\#1 \\$input of function array_keys expects array, array\\|ArrayObject\\<\\(int\\|string\\), mixed\\>\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: src/lib/MVC/Symfony/Component/Serializer/AbstractPropertyWhitelistNormalizer.php - - - - message: "#^Parameter \\#1 \\$input of function array_keys expects array, iterable\\ given\\.$#" - count: 1 - path: src/lib/MVC/Symfony/FieldType/RelationList/ParameterProvider.php - - - - message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, iterable\\ given\\.$#" - count: 1 - path: src/lib/MVC/Symfony/Matcher/ContentBased/UrlAlias.php - - - - message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, iterable\\ given\\.$#" - count: 1 - path: src/lib/MVC/Symfony/Matcher/ContentBased/UrlAlias.php - - - - message: "#^PHPDoc tag @throws with type Psr\\\\Cache\\\\InvalidArgumentException is not subtype of Throwable$#" - count: 1 - path: src/lib/Persistence/Cache/ContentTypeHandler.php - - - - message: "#^PHPDoc tag @throws with type Psr\\\\Cache\\\\CacheException is not subtype of Throwable$#" - count: 1 - path: src/lib/Persistence/Cache/SettingHandler.php - - - - message: "#^PHPDoc tag @throws with type Psr\\\\Cache\\\\InvalidArgumentException is not subtype of Throwable$#" - count: 2 - path: src/lib/Persistence/Cache/SettingHandler.php - - - - message: "#^PHPDoc tag @throws with type Ibexa\\\\Core\\\\Base\\\\Exceptions\\\\BadStateException\\|Psr\\\\Cache\\\\InvalidArgumentException is not subtype of Throwable$#" - count: 1 - path: src/lib/Persistence/Cache/UrlAliasHandler.php - - - - message: "#^PHPDoc tag @throws with type Psr\\\\Cache\\\\InvalidArgumentException is not subtype of Throwable$#" - count: 1 - path: src/lib/Persistence/Cache/UrlWildcardHandler.php - - - - message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\|bool\\|float\\|int\\|string given\\.$#" - count: 1 - path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/CountryConverter.php - - - - message: "#^Parameter \\#2 \\$pieces of function implode expects array, array\\|float\\|int\\\\|int\\<1, max\\>\\|string\\|true given\\.$#" - count: 1 - path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/CountryConverter.php - - - - message: "#^Cannot access property \\$ownerDocument on DOMElement\\|false\\.$#" - count: 2 - path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/ImageConverter.php - - - - message: "#^Parameter \\#1 \\$input of class Ibexa\\\\Core\\\\FieldType\\\\FieldSettings constructor expects array\\|object, array\\|null given\\.$#" - count: 1 - path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/SerializableConverter.php - - - - message: "#^Parameter \\#1 \\$input of function array_keys expects array, iterable\\ given\\.$#" - count: 2 - path: src/lib/Persistence/Legacy/Content/Language/MaskGenerator.php - - - - message: "#^Method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\UrlAlias\\\\Gateway\\\\DoctrineDatabase\\:\\:filterOriginalAliases\\(\\) should return array but returns array\\|false\\.$#" - count: 1 - path: src/lib/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.php - - - - message: "#^Parameter \\#1 \\$string of function strlen expects string, string\\|false\\|null given\\.$#" - count: 1 - path: src/lib/Persistence/TransformationProcessor/DefinitionBased/Parser.php - - - - message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|false\\|null given\\.$#" - count: 2 - path: src/lib/Persistence/TransformationProcessor/DefinitionBased/Parser.php - - - - message: "#^Parameter \\#2 \\$subject of function preg_match expects string, string\\|false\\|null given\\.$#" - count: 1 - path: src/lib/Persistence/TransformationProcessor/DefinitionBased/Parser.php - - - - message: "#^Parameter \\#1 \\$ascii of function chr expects int, float\\|int given\\.$#" - count: 1 - path: src/lib/Persistence/TransformationProcessor/PcreCompiler.php - - - - message: "#^Parameter \\#1 \\$hexadecimal_number of function hexdec expects string, string\\|null given\\.$#" - count: 1 - path: src/lib/Persistence/TransformationProcessor/PcreCompiler.php - - - - message: "#^Parameter \\#1 \\$str of function md5 expects string, string\\|false given\\.$#" - count: 4 - path: src/lib/Repository/Mapper/ContentMapper.php - - - - message: "#^Parameter \\#1 \\$autoload_function of function spl_autoload_register expects callable\\(string\\)\\: void, ProxyManager\\\\Autoloader\\\\AutoloaderInterface given\\.$#" - count: 1 - path: src/lib/Repository/ProxyFactory/ProxyGenerator.php - - - - message: "#^Parameter \\#2 \\$arr2 of function array_diff expects array, array\\|null given\\.$#" - count: 1 - path: src/lib/Repository/RoleService.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 1 - path: src/lib/Repository/UserService.php - - - - message: "#^Parameter \\#1 \\$array of function reset expects array\\|object, null given\\.$#" - count: 3 - path: src/lib/Search/Common/FieldNameResolver.php - - - - message: "#^Parameter \\#1 \\$input of function array_keys expects array, string given\\.$#" - count: 3 - path: src/lib/Search/Common/FieldNameResolver.php - - - - message: "#^Parameter \\#1 \\$str of function trim expects string, int\\|string given\\.$#" - count: 1 - path: src/lib/Search/Legacy/Content/Gateway/CriterionHandler/Ancestor.php - - - - message: "#^Parameter \\#1 \\$str of function trim expects string, int\\|string given\\.$#" - count: 1 - path: src/lib/Search/Legacy/Content/Location/Gateway/CriterionHandler/Ancestor.php - - - - message: "#^Parameter \\#1 \\$object of method ReflectionProperty\\:\\:getValue\\(\\) expects object, object\\|null given\\.$#" - count: 1 - path: tests/bundle/Core/DependencyInjection/Compiler/SlugConverterConfigurationPassTest.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: tests/bundle/Core/DependencyInjection/IbexaCoreExtensionTest.php - - - - message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge_recursive expects array, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: tests/bundle/Core/DependencyInjection/IbexaCoreExtensionTest.php - - - - message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#" - count: 1 - path: tests/bundle/Core/EventListener/BackwardCompatibleCommandListenerTest.php - - - - message: "#^Parameter \\#2 \\$start of function substr expects int, int\\<1, max\\>\\|false given\\.$#" - count: 1 - path: tests/bundle/Core/EventListener/SiteAccessListenerTest.php - - - - message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: tests/bundle/Core/Routing/DefaultRouterTest.php - - - - message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#" - count: 1 - path: tests/integration/Core/IO/BinarydataHandler/FlysystemTest.php - - - - message: "#^Parameter \\#1 \\$str1 of function strcmp expects string, bool\\|float\\|int\\|string given\\.$#" - count: 1 - path: tests/integration/Core/Repository/BaseTest.php - - - - message: "#^Parameter \\#2 \\$str2 of function strcmp expects string, bool\\|float\\|int\\|string given\\.$#" - count: 1 - path: tests/integration/Core/Repository/BaseTest.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 4 - path: tests/integration/Core/Repository/ContentServiceAuthorizationTest.php - - - - message: "#^Parameter \\#1 \\$array_arg of function usort expects TArray of array, iterable\\ given\\.$#" - count: 2 - path: tests/integration/Core/Repository/ContentServiceTest.php - - - - message: "#^Parameter \\#1 \\$input of function array_keys expects array, iterable\\ given\\.$#" - count: 1 - path: tests/integration/Core/Repository/ContentServiceTest.php - - - - message: "#^Parameter \\#1 \\$input of function array_values expects array, iterable\\ given\\.$#" - count: 1 - path: tests/integration/Core/Repository/ContentServiceTest.php - - - - message: "#^Parameter \\#1 \\$str of function md5 expects string, float given\\.$#" - count: 3 - path: tests/integration/Core/Repository/ContentServiceTest.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 1 - path: tests/integration/Core/Repository/ContentServiceTest.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 1 - path: tests/integration/Core/Repository/ContentServiceTest.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 2 - path: tests/integration/Core/Repository/ContentServiceTest.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 1 - path: tests/integration/Core/Repository/ContentTypeServiceTest.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 1 - path: tests/integration/Core/Repository/LanguageServiceMaximumSupportedLanguagesTest.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 2 - path: tests/integration/Core/Repository/LanguageServiceTest.php - - - - message: "#^Parameter \\#1 \\$input of function array_filter expects array, iterable\\ given\\.$#" - count: 1 - path: tests/integration/Core/Repository/LocationServiceTest.php - - - - message: "#^Parameter \\#1 \\$input of function array_keys expects array, iterable\\ given\\.$#" - count: 3 - path: tests/integration/Core/Repository/LocationServiceTest.php - - - - message: "#^Parameter \\#1 \\$input of function array_filter expects array, iterable\\ given\\.$#" - count: 1 - path: tests/integration/Core/Repository/PermissionResolverTest.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 1 - path: tests/integration/Core/Repository/Regression/EZP21798Test.php - - - - message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, iterable\\ given\\.$#" - count: 1 - path: tests/integration/Core/Repository/RoleServiceTest.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 1 - path: tests/integration/Core/Repository/RoleServiceTest.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 3 - path: tests/integration/Core/Repository/RoleServiceTest.php - - - - message: "#^Parameter \\#1 \\$str of function md5 expects string, int\\<1, max\\> given\\.$#" - count: 1 - path: tests/integration/Core/Repository/Values/User/Limitation/BaseLimitationTest.php - - - - message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#" - count: 1 - path: tests/lib/IO/Flysystem/Adapter/DynamicPathFilesystemAdapterDecoratorTest.php - - - - message: "#^Parameter \\#1 \\$str of function md5 expects string, float given\\.$#" - count: 1 - path: tests/lib/MVC/Symfony/Security/UserWrappedTest.php - - - - message: "#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#" - count: 3 - path: tests/lib/Persistence/Cache/AbstractCacheHandlerTest.php - - - - message: "#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, string\\} given\\.$#" - count: 3 - path: tests/lib/Persistence/Cache/AbstractInMemoryCacheHandlerTest.php - - - - message: "#^Parameter \\#1 \\$function of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{mixed, 'publish'\\} given\\.$#" - count: 1 - path: tests/lib/Persistence/Cache/ContentTypeHandlerTest.php - - - - message: "#^Parameter \\#1 \\$arr1 of function array_merge expects array, iterable given\\.$#" - count: 1 - path: tests/lib/Persistence/Legacy/Filter/BaseCriterionVisitorQueryBuilderTestCase.php - - - - message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, iterable\\ given\\.$#" - count: 1 - path: tests/lib/Persistence/Legacy/Filter/BaseCriterionVisitorQueryBuilderTestCase.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, iterable\\ given\\.$#" - count: 12 - path: tests/lib/Repository/Service/Mock/UrlAliasTest.php - - - - message: "#^Parameter \\#1 \\$array_arg of function key expects array\\|object, string given\\.$#" - count: 4 - path: tests/lib/Search/FieldNameResolverTest.php + ignoreErrors: [] diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 7a99465f42..b0e87ef612 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -20640,11 +20640,6 @@ parameters: count: 1 path: src/lib/Repository/NameSchema/NameSchemaService.php - - - message: "#^Method Ibexa\\\\Core\\\\Repository\\\\NameSchema\\\\SchemaIdentifierExtractor\\:\\:extract\\(\\) should return array\\\\> but returns array\\\\>\\.$#" - count: 1 - path: src/lib/Repository/NameSchema/SchemaIdentifierExtractor.php - - message: "#^Parameter \\#1 \\$module of class Ibexa\\\\Core\\\\Base\\\\Exceptions\\\\UnauthorizedException constructor expects string, int\\\\|int\\<1, max\\> given\\.$#" count: 1