Skip to content

Commit

Permalink
chore: update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Dec 16, 2024
1 parent 9a5a794 commit 60b137c
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 30 deletions.
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@
"require-dev": {
"ext-sqlite3": "*",
"brotkrueml/coding-standards": "~6.1.0",
"ergebnis/composer-normalize": "~2.44.0",
"ergebnis/composer-normalize": "~2.45.0",
"infection/infection": "^0.29.8",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "1.12.11",
"phpunit/phpunit": "^10.5 || ^11.4",
"rector/rector": "1.2.10",
"symfony/yaml": "^5.4 || ^6.4 || ^7.1",
"symplify/phpstan-rules": "^13.0",
"tomasvotruba/cognitive-complexity": "^0.2.3",
"phpstan/phpstan": "2.0.3",
"phpunit/phpunit": "^10.5 || ^11.5",
"rector/rector": "2.0.3",
"symfony/yaml": "^5.4 || ^6.4 || ^7.2",
"symplify/phpstan-rules": "^14.0",
"tomasvotruba/cognitive-complexity": "^1.0",
"typo3/cms-adminpanel": "^11.5.19 || ^12.4 || ^13.4",
"typo3/cms-lowlevel": "^11.5.19 || ^12.4 || ^13.4",
"typo3/testing-framework": "^7.0 || ^8.2 || ^9.0"
"typo3/testing-framework": "^7.0 || ^8.2 || ^9.1"
},
"conflict": {
"brotkrueml/sdbreadcrumb": "*"
Expand Down
84 changes: 62 additions & 22 deletions phpstan.baseline.neon
Original file line number Diff line number Diff line change
@@ -1,112 +1,152 @@
parameters:
ignoreErrors:
-
message: "#^Cannot access property \\$newHash on TYPO3\\\\CMS\\\\Frontend\\\\Controller\\\\TypoScriptFrontendController\\|null\\.$#"
message: '#^Cannot access property \$newHash on TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController\|null\.$#'
identifier: property.nonObject
count: 1
path: Classes/Cache/PagesCacheService.php

-
message: "#^Call to an undefined method object\\:\\:getAdditionalProperties\\(\\)\\.$#"
message: '#^Call to an undefined method object\:\:getAdditionalProperties\(\)\.$#'
identifier: method.notFound
count: 1
path: Classes/Core/Model/AbstractType.php

-
message: "#^Instanceof between mixed and Brotkrueml\\\\Schema\\\\Core\\\\Model\\\\TypeInterface will always evaluate to false\\.$#"
message: '#^Instanceof between mixed and Brotkrueml\\Schema\\Core\\Model\\TypeInterface will always evaluate to false\.$#'
identifier: instanceof.alwaysFalse
count: 1
path: Classes/Core/Model/AbstractType.php

-
message: "#^Anonymous function should return string but returns array\\<string\\>\\|string\\.$#"
message: '#^Anonymous function should return string but returns array\<string\>\|string\.$#'
identifier: return.type
count: 1
path: Classes/Core/Model/MultipleType.php

-
message: "#^Method Brotkrueml\\\\Schema\\\\Core\\\\Model\\\\MultipleType\\:\\:mergePropertyNamesFromSingleTypes\\(\\) has parameter \\$types with no value type specified in iterable type array\\.$#"
message: '#^Method Brotkrueml\\Schema\\Core\\Model\\MultipleType\:\:getType\(\) never returns string so it can be removed from the return type\.$#'
identifier: return.unusedType
count: 1
path: Classes/Core/Model/MultipleType.php

-
message: "#^Method Brotkrueml\\\\Schema\\\\Core\\\\Model\\\\MultipleType\\:\\:storeTypeNames\\(\\) has parameter \\$types with no value type specified in iterable type array\\.$#"
message: '#^Method Brotkrueml\\Schema\\Core\\Model\\MultipleType\:\:mergePropertyNamesFromSingleTypes\(\) has parameter \$types with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: Classes/Core/Model/MultipleType.php

-
message: "#^Class Brotkrueml\\\\Schema\\\\Core\\\\TypeStack extends generic class SplStack but does not specify its types\\: TValue$#"
message: '#^Method Brotkrueml\\Schema\\Core\\Model\\MultipleType\:\:storeTypeNames\(\) has parameter \$types with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: Classes/Core/Model/MultipleType.php

-
message: '#^Static property Brotkrueml\\Schema\\Core\\Model\\AbstractType\:\:\$propertyNames \(list\<string\>\) does not accept array\<int\<0, max\>, mixed\>\.$#'
identifier: assign.propertyType
count: 1
path: Classes/Core/Model/MultipleType.php

-
message: '#^Class Brotkrueml\\Schema\\Core\\TypeStack extends generic class SplStack but does not specify its types\: TValue$#'
identifier: missingType.generics
count: 1
path: Classes/Core/TypeStack.php

-
message: "#^Cannot call method setId\\(\\) on Brotkrueml\\\\Schema\\\\Core\\\\Model\\\\TypeInterface\\|null\\.$#"
message: '#^Cannot call method setId\(\) on Brotkrueml\\Schema\\Core\\Model\\TypeInterface\|null\.$#'
identifier: method.nonObject
count: 1
path: Classes/Core/ViewHelpers/AbstractBaseTypeViewHelper.php

-
message: "#^Cannot call method setProperty\\(\\) on Brotkrueml\\\\Schema\\\\Core\\\\Model\\\\TypeInterface\\|null\\.$#"
message: '#^Cannot call method setProperty\(\) on Brotkrueml\\Schema\\Core\\Model\\TypeInterface\|null\.$#'
identifier: method.nonObject
count: 1
path: Classes/Core/ViewHelpers/AbstractBaseTypeViewHelper.php

-
message: "#^Method Brotkrueml\\\\Schema\\\\Hooks\\\\PageRenderer\\\\SchemaMarkupInjection\\:\\:execute\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
message: '#^Method Brotkrueml\\Schema\\Hooks\\PageRenderer\\SchemaMarkupInjection\:\:execute\(\) has parameter \$params with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: Classes/Hooks/PageRenderer/SchemaMarkupInjection.php

-
message: "#^Cannot access an offset on array\\|bool\\|float\\|int\\|string\\.$#"
message: '#^Cannot access an offset on array\|bool\|float\|int\|string\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: Classes/JsonLd/Renderer.php

-
message: "#^Method Brotkrueml\\\\Schema\\\\JsonLd\\\\Renderer\\:\\:getPropertyValueForResult\\(\\) return type has no value type specified in iterable type array\\.$#"
message: '#^Method Brotkrueml\\Schema\\JsonLd\\Renderer\:\:getPropertyValueForResult\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: Classes/JsonLd/Renderer.php

-
message: "#^Property Brotkrueml\\\\Schema\\\\JsonLd\\\\Renderer\\:\\:\\$typeResult type has no value type specified in iterable type array\\.$#"
message: '#^Property Brotkrueml\\Schema\\JsonLd\\Renderer\:\:\$typeResult type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: Classes/JsonLd/Renderer.php

-
message: "#^Method Brotkrueml\\\\Schema\\\\Lowlevel\\\\ConfigurationModuleProvider\\\\Types\\:\\:__invoke\\(\\) has parameter \\$attributes with no value type specified in iterable type array\\.$#"
message: '#^Method Brotkrueml\\Schema\\Lowlevel\\ConfigurationModuleProvider\\Types\:\:__invoke\(\) has parameter \$attributes with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: Classes/Lowlevel/ConfigurationModuleProvider/Types.php

-
message: "#^Cannot call method addProperty\\(\\) on Brotkrueml\\\\Schema\\\\Core\\\\Model\\\\TypeInterface\\|null\\.$#"
message: '#^Cannot call method addProperty\(\) on Brotkrueml\\Schema\\Core\\Model\\TypeInterface\|null\.$#'
identifier: method.nonObject
count: 3
path: Classes/Manager/SchemaManager.php

-
message: "#^Cannot call method clearProperty\\(\\) on Brotkrueml\\\\Schema\\\\Core\\\\Model\\\\TypeInterface\\|null\\.$#"
message: '#^Cannot call method clearProperty\(\) on Brotkrueml\\Schema\\Core\\Model\\TypeInterface\|null\.$#'
identifier: method.nonObject
count: 1
path: Classes/Manager/SchemaManager.php

-
message: "#^Class cognitive complexity is 25, keep it under 20$#"
message: '#^Class cognitive complexity is 25, keep it under 20$#'
identifier: complexity.classLike
count: 1
path: Classes/Manager/SchemaManager.php

-
message: "#^Cognitive complexity for \"Brotkrueml\\\\Schema\\\\Manager\\\\SchemaManager\\:\\:setWebPage\\(\\)\" is 14, keep it under 10$#"
message: '#^Cognitive complexity for "Brotkrueml\\Schema\\Manager\\SchemaManager\:\:setWebPage\(\)" is 14, keep it under 10$#'
identifier: complexity.functionLike
count: 1
path: Classes/Manager/SchemaManager.php

-
message: "#^Parameter \\#1 \\.\\.\\.\\$type of method Brotkrueml\\\\Schema\\\\JsonLd\\\\RendererInterface\\:\\:addType\\(\\) expects Brotkrueml\\\\Schema\\\\Core\\\\Model\\\\TypeInterface, Brotkrueml\\\\Schema\\\\Core\\\\Model\\\\TypeInterface\\|null given\\.$#"
message: '#^Parameter \#1 \.\.\.\$type of method Brotkrueml\\Schema\\JsonLd\\RendererInterface\:\:addType\(\) expects Brotkrueml\\Schema\\Core\\Model\\TypeInterface, Brotkrueml\\Schema\\Core\\Model\\TypeInterface\|null given\.$#'
identifier: argument.type
count: 1
path: Classes/Manager/SchemaManager.php

-
message: "#^Binary operation \"\\.\" between array\\<string, bool\\|string\\|null\\>\\|bool\\|string\\|null and string results in an error\\.$#"
message: '#^Parameter &\$params by\-ref type of method Brotkrueml\\Schema\\UserFunctions\\FormEngine\\WebPageTypes\:\:get\(\) expects array\{items\: array\<string\>\}, array\{items\: non\-empty\-array\<array\{label\: string, value\: string\}\|array\{string, string\}\|string\>\} given\.$#'
identifier: parameterByRef.type
count: 2
path: Classes/UserFunctions/FormEngine/WebPageTypes.php

-
message: '#^Binary operation "\." between array\<string, bool\|string\|null\>\|bool\|string\|null and string results in an error\.$#'
identifier: binaryOp.invalid
count: 1
path: Classes/ViewHelpers/BreadcrumbViewHelper.php

-
message: "#^Cannot cast array\\<string, bool\\|string\\|null\\>\\|bool\\|string\\|null to string\\.$#"
message: '#^Cannot cast array\<string, bool\|string\|null\>\|bool\|string\|null to string\.$#'
identifier: cast.string
count: 1
path: Classes/ViewHelpers/BreadcrumbViewHelper.php

-
message: "#^Property Brotkrueml\\\\Schema\\\\ViewHelpers\\\\MultipleTypeViewHelper\\:\\:\\$types type has no value type specified in iterable type array\\.$#"
message: '#^Property Brotkrueml\\Schema\\ViewHelpers\\MultipleTypeViewHelper\:\:\$types type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: Classes/ViewHelpers/MultipleTypeViewHelper.php

0 comments on commit 60b137c

Please sign in to comment.