Skip to content

Commit

Permalink
Merge branch '4.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwojs committed Mar 2, 2025
2 parents 0f0bc5b + b08471a commit d09207b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"require": {
"php": ">=8.3",
"rector/rector": "^1.0",
"rector/rector": "^2.0",
"symfony/config": "^6.4",
"symfony/console": "^6.4",
"symfony/dependency-injection": "^6.4",
Expand All @@ -20,9 +20,9 @@
"require-dev": {
"ibexa/code-style": "~2.0.0",
"nikic/php-parser": "^4.18",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-symfony": "^1.3",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-symfony": "^2.0",
"phpunit/phpunit": "^10",
"qossmic/deptrac-shim": "^0.24.0 || ^1.0.2"
},
Expand Down
31 changes: 31 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
parameters:
ignoreErrors:
-
message: '#^PHPDoc tag @var with type array\<PhpParser\\Node\\Stmt\>\|null is not subtype of native type array\.$#'
identifier: varTag.nativeType
count: 1
path: src/lib/Rule/Internal/RemoveInterfaceWithMethodsRector.php

-
message: '#^Doing instanceof PHPStan\\Type\\ObjectType is error\-prone and deprecated\. Use Type\:\:isObject\(\) or Type\:\:getObjectClassNames\(\) instead\.$#'
identifier: phpstanApi.instanceofType
count: 1
path: src/lib/Rule/PropertyToGetterRector.php

-
message: '#^Doing instanceof PHPStan\\Type\\ObjectType is error\-prone and deprecated\. Use Type\:\:isObject\(\) or Type\:\:getObjectClassNames\(\) instead\.$#'
identifier: phpstanApi.instanceofType
count: 1
path: src/lib/Rule/RemoveArgumentFromMethodCallRector.php

-
message: '#^Method Ibexa\\Rector\\Visitor\\DependentMethodCallRemovingVisitor\:\:leaveNode\(\) never returns array\<PhpParser\\Node\> so it can be removed from the return type\.$#'
identifier: return.unusedType
count: 1
path: src/lib/Visitor/DependentMethodCallRemovingVisitor.php

-
message: '#^Method Ibexa\\Rector\\Visitor\\DependentMethodCallRemovingVisitor\:\:leaveNode\(\) never returns int so it can be removed from the return type\.$#'
identifier: return.unusedType
count: 1
path: src/lib/Visitor/DependentMethodCallRemovingVisitor.php
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- phpstan-baseline.neon

parameters:
level: 8
Expand Down

0 comments on commit d09207b

Please sign in to comment.