* Fixes#5267
* cs fix
* use true for 3rd parameter is_a
* try use method_exists
* patch in BetterPhpDocParser
* clean
* clean
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* phpstan
* phpstan
* phpstan
* add test case
* better solution
* phpstan
* phpstan
* clean up
* clean up
* phpstan
* clean up
* final touch: use ObjectType check instead
* better approach
* ensure $phpDocInfo->getVarTagValueNode() instanceof VarTagValueNode as well
* clean up
* use of the VarTagValueNode
* use of the VarTagValueNode
* use of the VarTagValueNode
* [ci-review] Rector Rectify
* phpstan
Co-authored-by: rector-bot <tomas@getrector.org>
* Add failing test fixture for AddDefaultValueForUndefinedVariableRector
# Failing Test for AddDefaultValueForUndefinedVariableRector
Based on https://getrector.org/demo/62ab1e88-6035-4fa6-87bb-c600dac418b2
* Closes#5260Fixes#5253
* fixture name
* phpstan
* clean up
* [ci-review] Rector Rectify
Co-authored-by: vladyslavstartsev <17382248+vladyslavstartsev@users.noreply.github.com>
Co-authored-by: rector-bot <tomas@getrector.org>
* Make example of ReplaceStringWithClassConstantRector more correct
- `argument position` and `class with constants` are swapped
- `argument position` starts with zero (0), so `1` is the second argument
* also fix example in `Rector`ing class
* Add failing test fixture for ParamTypeDeclarationRector
# Failing Test for ParamTypeDeclarationRector
Based on https://getrector.org/demo/56b352cf-6ba5-4fd5-8186-dd071d1e4010
* Fix namespace position
* Update rules/type-declaration/tests/Rector/FunctionLike/ParamTypeDeclarationRector/Fixture/vat_rate.php.inc
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
* Update rules/type-declaration/tests/Rector/FunctionLike/ParamTypeDeclarationRector/Fixture/vat_rate.php.inc
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
* Update interfaces' names
* Rename vat_rate.php.inc to skip_different_with_interface.php.inc
* Close#5274Fixes#5270
* cs fix
Co-authored-by: Adamo Crespi <hello@aerendir.me>
* Add failing test fixture for TemplateMagicAssignToExplicitVariableArrayRector
# Failing Test for TemplateMagicAssignToExplicitVariableArrayRector
Based on https://getrector.org/demo/cb7a63bb-d6ab-4f83-916e-714531f095bd
* [Nette] Skip constructor on magic template call
* [ci-review] Rector Rectify
Co-authored-by: Richard Kapička <richard@kapicka.cz>
Co-authored-by: rector-bot <tomas@getrector.org>
* Add failing test fixture for ConsoleExecuteReturnIntRector
# Failing Test for ConsoleExecuteReturnIntRector
Based on https://getrector.org/demo/2ce24767-1f3c-4f0c-b74f-bbea4b441678
* skip duplicated code
* Close#5272Fixes#5273
* fixture
* ensure parent is return for Int_ cast skip
* ensure parent is return for Int_ cast skip
Co-authored-by: vladyslavstartsev <17382248+vladyslavstartsev@users.noreply.github.com>