diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 9c337a2..7647900 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,10 +1,5 @@ parameters: ignoreErrors: - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Command\\\\CreateExampleDataCommand\\:\\:configure\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/Command/CreateExampleDataCommand.php - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Command\\\\CreateExampleDataManagerCommand\\:\\:createProcesses\\(\\) has no return type specified\\.$#" count: 1 @@ -40,16 +35,6 @@ parameters: count: 1 path: src/bundle/Command/CreateExampleDataManagerCommand.php - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Command\\\\CreateLanguageCommand\\:\\:configure\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/Command/CreateLanguageCommand.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Command\\\\TestSiteaccessCommand\\:\\:configure\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/Command/TestSiteaccessCommand.php - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Controller\\\\ExceptionController\\:\\:throwRepositoryUnauthorizedAction\\(\\) has no return type specified\\.$#" count: 1 @@ -90,96 +75,16 @@ parameters: count: 1 path: src/bundle/Controller/UnauthenticatedRedirectController.php - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\DependencyInjection\\\\Compiler\\\\ElementFactoryCompilerPass\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/Compiler/ElementFactoryCompilerPass.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\DependencyInjection\\\\Compiler\\\\FieldTypeDataProviderPass\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/Compiler/FieldTypeDataProviderPass.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\DependencyInjection\\\\Compiler\\\\LimitationParserPass\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/Compiler/LimitationParserPass.php - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\DependencyInjection\\\\IbexaBehatExtension\\:\\:load\\(\\) has no return type specified\\.$#" count: 1 path: src/bundle/DependencyInjection/IbexaBehatExtension.php - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\DependencyInjection\\\\IbexaBehatExtension\\:\\:prepend\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/IbexaBehatExtension.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\DependencyInjection\\\\IbexaBehatExtension\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/DependencyInjection/IbexaBehatExtension.php - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\DependencyInjection\\\\IbexaBehatExtension\\:\\:shouldLoadDxpServices\\(\\) has no return type specified\\.$#" count: 1 path: src/bundle/DependencyInjection/IbexaBehatExtension.php - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createListFromChoices\\(\\) has parameter \\$choices with no value type specified in iterable type iterable\\.$#" - count: 1 - path: src/bundle/Form/RetryChoiceListFactory.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createListFromChoices\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/bundle/Form/RetryChoiceListFactory.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createListFromLoader\\(\\) has parameter \\$value with no type specified\\.$#" - count: 1 - path: src/bundle/Form/RetryChoiceListFactory.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createView\\(\\) has parameter \\$attr with no value type specified in iterable type array\\.$#" - count: 1 - path: src/bundle/Form/RetryChoiceListFactory.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createView\\(\\) has parameter \\$groupBy with no type specified\\.$#" - count: 1 - path: src/bundle/Form/RetryChoiceListFactory.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createView\\(\\) has parameter \\$index with no type specified\\.$#" - count: 1 - path: src/bundle/Form/RetryChoiceListFactory.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\Form\\\\RetryChoiceListFactory\\:\\:createView\\(\\) has parameter \\$preferredChoices with no value type specified in iterable type array\\.$#" - count: 1 - path: src/bundle/Form/RetryChoiceListFactory.php - - - - message: "#^Method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Factory\\\\ChoiceListFactoryInterface\\:\\:createListFromChoices\\(\\) invoked with 3 parameters, 1\\-2 required\\.$#" - count: 1 - path: src/bundle/Form/RetryChoiceListFactory.php - - - - message: "#^Method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Factory\\\\ChoiceListFactoryInterface\\:\\:createListFromLoader\\(\\) invoked with 3 parameters, 1\\-2 required\\.$#" - count: 1 - path: src/bundle/Form/RetryChoiceListFactory.php - - - - message: "#^Method Symfony\\\\Component\\\\Form\\\\ChoiceList\\\\Factory\\\\ChoiceListFactoryInterface\\:\\:createView\\(\\) invoked with 7 parameters, 1\\-6 required\\.$#" - count: 1 - path: src/bundle/Form/RetryChoiceListFactory.php - - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\IbexaBehatBundle\\:\\:build\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/IbexaBehatBundle.php - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\IbexaExtension\\:\\:configure\\(\\) has no return type specified\\.$#" count: 1 @@ -200,11 +105,6 @@ parameters: count: 1 path: src/bundle/IbexaExtension.php - - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\IbexaExtension\\:\\:process\\(\\) has no return type specified\\.$#" - count: 1 - path: src/bundle/IbexaExtension.php - - message: "#^Method Ibexa\\\\Bundle\\\\Behat\\\\IbexaExtension\\:\\:setMinkParameters\\(\\) has parameter \\$config with no value type specified in iterable type array\\.$#" count: 1 @@ -2245,111 +2145,16 @@ parameters: count: 1 path: src/lib/Core/Context/TimeContext.php - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Command\\\\GoBackCommand\\:\\:configure\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Command/GoBackCommand.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Command\\\\RefreshPageCommand\\:\\:configure\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Command/RefreshPageCommand.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Command\\\\ShowHTMLCommand\\:\\:configure\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Command/ShowHTMLCommand.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Command\\\\ShowURLCommand\\:\\:configure\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Command/ShowURLCommand.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Command\\\\TakeScreenshotCommand\\:\\:configure\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Command/TakeScreenshotCommand.php - - message: "#^Cannot call method getName\\(\\) on ReflectionType\\|null\\.$#" count: 1 path: src/lib/Core/Debug/Matcher/ObjectFunctionCallChainMatcher.php - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ObjectFunctionCallChainMatcher\\:\\:getFunctionName\\(\\) has parameter \\$tokenGroup with no type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ObjectFunctionCallChainMatcher.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ObjectFunctionCallChainMatcher\\:\\:getMatches\\(\\) has parameter \\$info with no value type specified in iterable type array\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ObjectFunctionCallChainMatcher.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ObjectFunctionCallChainMatcher\\:\\:getMatches\\(\\) has parameter \\$tokens with no value type specified in iterable type array\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ObjectFunctionCallChainMatcher.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ObjectFunctionCallChainMatcher\\:\\:getMatches\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ObjectFunctionCallChainMatcher.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ObjectFunctionCallChainMatcher\\:\\:getObjectClass\\(\\) has parameter \\$tokenGroup with no type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ObjectFunctionCallChainMatcher.php - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ObjectFunctionCallChainMatcher\\:\\:getObjectClass\\(\\) should return string but returns class\\-string\\|false\\.$#" count: 1 path: src/lib/Core/Debug/Matcher/ObjectFunctionCallChainMatcher.php - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ObjectFunctionCallChainMatcher\\:\\:getTokenName\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ObjectFunctionCallChainMatcher.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ObjectFunctionCallChainMatcher\\:\\:getTokenName\\(\\) has parameter \\$token with no type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ObjectFunctionCallChainMatcher.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ObjectFunctionCallChainMatcher\\:\\:isFunctionCall\\(\\) has parameter \\$tokenGroup with no type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ObjectFunctionCallChainMatcher.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ObjectFunctionCallChainMatcher\\:\\:isObjectCall\\(\\) has parameter \\$tokenGroup with no type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ObjectFunctionCallChainMatcher.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ThisObjectMethodsMatcher\\:\\:getMatches\\(\\) has parameter \\$info with no value type specified in iterable type array\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ThisObjectMethodsMatcher.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ThisObjectMethodsMatcher\\:\\:getMatches\\(\\) has parameter \\$tokens with no value type specified in iterable type array\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ThisObjectMethodsMatcher.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Matcher\\\\ThisObjectMethodsMatcher\\:\\:getMatches\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/lib/Core/Debug/Matcher/ThisObjectMethodsMatcher.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Shell\\\\Shell\\:\\:displayExceptionMessage\\(\\) has no return type specified\\.$#" - count: 1 - path: src/lib/Core/Debug/Shell/Shell.php - - - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Debug\\\\Shell\\\\Shell\\:\\:getDefaultMatchers\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/lib/Core/Debug/Shell/Shell.php - - message: "#^Method Ibexa\\\\Behat\\\\Core\\\\Log\\\\Failure\\\\AnalysisResult\\:\\:getJiraReference\\(\\) should return string but returns string\\|null\\.$#" count: 1 @@ -2735,21 +2540,6 @@ parameters: count: 1 path: tests/Browser/Locator/Validator/CssLocatorValidatorTest.php - - - message: "#^Method Ibexa\\\\Tests\\\\Bundle\\\\Behat\\\\Form\\\\Stub\\\\UnstableChoiceListFactory\\:\\:createListFromChoices\\(\\) has parameter \\$choices with no value type specified in iterable type iterable\\.$#" - count: 1 - path: tests/bundle/Form/Stub/UnstableChoiceListFactory.php - - - - message: "#^Method Ibexa\\\\Tests\\\\Bundle\\\\Behat\\\\Form\\\\Stub\\\\UnstableChoiceListFactory\\:\\:createView\\(\\) has parameter \\$attr with no value type specified in iterable type array\\.$#" - count: 1 - path: tests/bundle/Form/Stub/UnstableChoiceListFactory.php - - - - message: "#^Method Ibexa\\\\Tests\\\\Bundle\\\\Behat\\\\Form\\\\Stub\\\\UnstableChoiceListFactory\\:\\:createView\\(\\) has parameter \\$preferredChoices with no value type specified in iterable type array\\.$#" - count: 1 - path: tests/bundle/Form/Stub/UnstableChoiceListFactory.php - - message: "#^Method Ibexa\\\\Tests\\\\Behat\\\\Browser\\\\Element\\\\BaseTestCase\\:\\:createCollection\\(\\) has parameter \\$elementTexts with no type specified\\.$#" count: 1