* Add failing test fixture for EncapsedStringsToSprintfRector
# Failing Test for EncapsedStringsToSprintfRector
Based on https://getrector.org/demo/1b647b4f-dde9-4f90-b05e-74744045a3d1
* Fix for prefixed_eol.php.inc
* Check against PHP_EOL
* allowing newline to be prefixed as well
* [CodingStyle] Closes#5060Fixes#5032 Add %s for pass PHP_EOL constant
* skip multiple eol
* use PHP_EOL const
* [ci-review] Rector Rectify
Co-authored-by: bruce aldridge <bruce@incode.co.nz>
Co-authored-by: rector-bot <tomas@getrector.org>
* UnSpreadOperatorRector: Should be kept on dynamic method calls
# Failing Test for UnSpreadOperatorRector
Based on https://getrector.org/demo/72c7df1d-01a2-4f1b-923f-2c5dedd7b636
* Closes#5069 Skip dynamic args on UnSpreadOperatorRector
* fixture update
* reduce complexity
Co-authored-by: Jan Kuchař <honza@kucharovi.cz>
* Add failing test fixture for GetClassToInstanceOfRector
# Failing Test for GetClassToInstanceOfRector
Based on https://getrector.org/demo/c605ea4b-824c-4fb6-8357-2b71a87098b6
* [CodeQuality] Closes#5064 Do not namespacing "static" on GetClassToInstanceOfRector
Co-authored-by: Jan Kuchař <honza@kucharovi.cz>
* Add failing test fixture for AddArrayReturnDocTypeRector
Return php doc should not be overriden when is more specific then one inferred by rector.
# Failing Test for AddArrayReturnDocTypeRector
Based on https://getrector.org/demo/5dc16502-4bb7-4f34-9922-35f56111ae9c
* Create return_php_doc_should_not_be_replaced_by_less_specific_type_2.php.inc
* Update and rename return_php_doc_should_not_be_replaced_by_less_specific_type.php.inc to skip_return_php_doc1.php.inc
* Update and rename return_php_doc_should_not_be_replaced_by_less_specific_type_2.php.inc to skip_return_php_doc2.php.inc
* [Type Declaration] Closes#5028 Skip AddArrayReturnDocTypeRector on return php doc
* add nested case fixture
Co-authored-by: Jan Kuchař <honza@kucharovi.cz>
* test: ClassPropertyAssignToConstructorPromotionRector: should ignore early returns
* correct file location
* [PHP 8.0] Skip usage of variable before assign in promotion property
Co-authored-by: Jan Kuchař <honza@kucharovi.cz>
* enable file lenght rule
* longer file, just to show ci worked
* [ci] add ValidateFileLengthCommand
* [phpstan] drop PathsAreNotTooLongRule
* [Downgrade] Shorten property promotion rector rule
* [Symfony] Shorten AutoWireWithClassNameSuffixForMethodWithRequiredAnnotationRector name
* shorten fixture name
* rename ChangeControlArrayAccessToAnnotatedControlVariableRector to AnnotateMagicalControlArrayAccessRector
* rename ReplaceMagicEventPropertySubscriberWithEventClassSubscriberRector to ReplaceMagicPropertyWithEventClassRector
* rename GetConfigWithDefaultsArgumentToArrayMergeInCompilerExtensionRector to MergeDefaultsInGetConfigCompilerExtensionRector
* rename ChangeCollectionTypeOptionTypeFromStringToClassReferenceRector to ChangeStringCollectionOptionToConstantRector
* decouple ProjectFilesFinder
* move phpstan.neon cusotm rules to rector-rules.neon, to cleanup main config
* enable forbidden rule on nullable nodes
* bump to Symplify 9.0.17
* make name non-nullable
* skip non-nullable
* skip null dim
* add phpstan-for-rector config path, to separate phpstan and extensions that help Rector with precise types
* move type value object to value object
* moving
* remove KernelGetContainerAfterBootReturnTypeExtension, use one from symplify
* remove ContainerGetDynamicMethodReturnTypeExtension to ContainerGetReturnTypeExtension
* remove nette extension
* add nette-extension
* removed delegated rule
* delegate implmenets + code sample PHPStan rule to symplify
* [PHP 8.0] Skip exception in match, must be expr
* add test case for var strings
* [ci-review] Rector Rectify
* skip universal
Co-authored-by: rector-bot <tomas@getrector.org>