-
-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Symfony 5.2] Add FormBuilderSetDataMapperRector #5339
Conversation
@TomasVotruba it seems there is new phpstan release that make the following error in tests: 1) Rector\CodeQuality\Tests\Rector\Class_\CompleteDynamicPropertiesRector\CompleteDynamicPropertiesRectorTest::test with data set #7 (Symplify\SmartFileSystem\SmartFileInfo Object (...))
Error: Class 'ReflectionUnionType' not found
phar:///home/runner/work/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/Adapter/ReflectionUnionType.php:9
phar:///home/runner/work/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/Adapter/ReflectionType.php:27
phar:///home/runner/work/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/Adapter/ReflectionParameter.php:176 and phpstan error: WARNING] Internal error: Internal error: Internal error. in file
/home/runner/work/rector/rector/rules/php80/src/MatchAndRefactor/StrS
tartsWithMatchAndRefactor/AbstractMatchAndRefactor.php
Run PHPStan with --debug option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md
https://github.com/phpstan/phpstan/releases/tag/0.12.70 |
The error is only happen in php 7.4 https://github.com/rectorphp/rector/pull/5339/checks?check_run_id=1782400087#step:6:93 |
@TomasVotruba using exact phpstan version 0.12.69 seems fixed the error in php 7.4 6003afb . All checks have passed 🎉 @TomasVotruba it is ready for review. |
916dad2
to
6003afb
Compare
I got same problem with phpstan here in Symplify: https://github.com/symplify/symplify/pull/2876/files/32c7349c840919157c3ad848e6cdb36a1c2de441#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34 It's related to |
Thanks 👍 |
rectorphp/rector-src@0a2dc3d Fix array type if property is used in TypedPropertyFromStrictConstructorRector (#5339)
part of #4824