-
Notifications
You must be signed in to change notification settings - Fork 57
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
PHP 8.4 Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead #352
PHP 8.4 Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead #352
Comments
Hmm I think this has already been addressed as the current line 51 in the main branch, is not the same as the line 51 that I have on my mac :) |
That seems after downgrade, nullable should be added when add null default value. This should be covered on downgrade process to support php 8.4 syntax while downgrade to php 7.4 |
Reproduced at https://getrector.com/demo/876d65e2-7925-4f73-bf92-a208de6dc5ff on apply rules:
|
Re-open, needs to relook more :) |
I created new fix for it: |
PHP Deprecated: Rector\Doctrine\NodeManipulator\ColumnPropertyTypeResolver::__construct(): Implicitly marking parameter $doctrineTypeToScalarType as nullable is deprecated, the explicit nullable type must be used instead in /Users/phil/Sites/example.com/vendor/rector/rector/vendor/rector/rector-doctrine/src/NodeManipulator/ColumnPropertyTypeResolver.php on line 51
Deprecated: Rector\Doctrine\NodeManipulator\ColumnPropertyTypeResolver::__construct(): Implicitly marking parameter $doctrineTypeToScalarType as nullable is deprecated, the explicit nullable type must be used instead in /Users/phil/Sites/example.com/vendor/rector/rector/vendor/rector/rector-doctrine/src/NodeManipulator/ColumnPropertyTypeResolver.php on line 51
The text was updated successfully, but these errors were encountered: