diff --git a/packages/Php/tests/Rector/FuncCall/ParseStrWithResultArgumentRector/Fixture/already_set.php.inc b/packages/Php/tests/Rector/FuncCall/ParseStrWithResultArgumentRector/Fixture/already_set.php.inc deleted file mode 100644 index df73b9b9d66a..000000000000 --- a/packages/Php/tests/Rector/FuncCall/ParseStrWithResultArgumentRector/Fixture/already_set.php.inc +++ /dev/null @@ -1,29 +0,0 @@ - ------ - diff --git a/packages/Php/tests/Rector/FuncCall/ParseStrWithResultArgumentRector/Fixture/skip_already_set.php.inc b/packages/Php/tests/Rector/FuncCall/ParseStrWithResultArgumentRector/Fixture/skip_already_set.php.inc new file mode 100644 index 000000000000..85dbb41f9be0 --- /dev/null +++ b/packages/Php/tests/Rector/FuncCall/ParseStrWithResultArgumentRector/Fixture/skip_already_set.php.inc @@ -0,0 +1,12 @@ +doTestFiles([__DIR__ . '/Fixture/fixture.php.inc', __DIR__ . '/Fixture/already_set.php.inc']); + $this->doTestFiles([__DIR__ . '/Fixture/fixture.php.inc', __DIR__ . '/Fixture/skip_already_set.php.inc']); } protected function getRectorClass(): string diff --git a/phpstan.neon b/phpstan.neon index 9d24f7c0b2a7..2f163b68df2e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -6,7 +6,7 @@ includes: - 'vendor/phpstan/phpstan/conf/bleedingEdge.neon' parameters: - # to allow intalling with various phsptan versions without reporting old errors here + # to allow installing with various phsptan versions without reporting old errors here reportUnmatchedIgnoredErrors: false level: max @@ -24,7 +24,7 @@ parameters: - '*tests/*/Source/*' - '*tests/Source/*' - 'packages/NodeTypeResolver/tests/Source/SomeClass.php' - # intetionally original + # intentionally original - 'packages/Php/src/EregToPcreTransformer.php' - '*/packages/ContributorTools/templates/*' # part of composer @@ -36,7 +36,7 @@ parameters: - '#Call to function method_exists\(\) with string and (.*?) will always evaluate to false#' - '#PHPDoc tag \@param for parameter \$node with type float is incompatible with native type PhpParser\\Node#' - # missuse of interface and class + # misuse of interface and class - '#Parameter \#1 (.*?) expects Symfony\\Component\\DependencyInjection\\ContainerBuilder, Symfony\\Component\\DependencyInjection\\ContainerInterface given#' - '#Method Rector\\Symfony\\Bridge\\DefaultAnalyzedSymfonyApplicationContainer::getContainer\(\) should return Symfony\\Component\\DependencyInjection\\ContainerBuilder but returns Symfony\\Component\\DependencyInjection\\Container#' @@ -48,14 +48,14 @@ parameters: # nette container - '#Method Rector\\NodeTypeResolver\\DependencyInjection\\PHPStanServicesFactory::create(.*?)() should return (.*?) but returns object#' - # false postive - type is set by annotation above + # false positive - type is set by annotation above - '#Array \(array\) does not accept PhpParser\\Node#' - '#Method Rector\\Php\\Rector\\TryCatch\\MultiExceptionCatchRector\:\:collectCatchKeysByContent\(\) should return array\> but returns array\>#' - '#Method Rector\\NodeTypeResolver\\PhpDoc\\NodeAnalyzer\\DocBlockManipulator::getTagByName\(\) should return PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode but returns PHPStan\\PhpDocParser\\Ast\\PhpDoc\\PhpDocTagNode\|null#' - '#Parameter \#1 \$expr of class PhpParser\\Node\\Expr\\BooleanNot constructor expects PhpParser\\Node\\Expr, PhpParser\\Node given#' - '#Parameter \#1 \$node of method Rector\\PhpParser\\Node\\Commander\\NodeAddingCommander::wrapToExpression\(\) expects PhpParser\\Node\\Expr\|PhpParser\\Node\\Stmt, PhpParser\\Node given#' - # irelevant + # irrelevant - '#Call to function in_array\(\) with arguments string, (.*?) and true will always evaluate to false#' - '#Parameter \#1 \$name of class ReflectionFunction constructor expects Closure\|string, callable given#' @@ -159,7 +159,7 @@ parameters: - '#Access to an undefined property PhpParser\\Node\\Expr\:\:\$args#' - '#Parameter \#2 \$name of method Rector\\Rector\\AbstractRector\:\:isName\(\) expects string, string\|null given#' - # cascade irelevant + # cascade irrelevant - '#Parameter (.*?) expects array, array given#' # known value