Skip to content

Add a PHP-CS-Fixer rule to avoid deprecation warnings in PHP 8.4 #634

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

Closed
oliverklee opened this issue Jul 1, 2024 · 1 comment · Fixed by #643
Closed

Add a PHP-CS-Fixer rule to avoid deprecation warnings in PHP 8.4 #634

oliverklee opened this issue Jul 1, 2024 · 1 comment · Fixed by #643
Assignees

Comments

@oliverklee
Copy link
Collaborator

https://cs.symfony.com/doc/rules/function_notation/nullable_type_declaration_for_default_null_value.html

@oliverklee
Copy link
Collaborator Author

@oliverklee oliverklee self-assigned this Jul 4, 2024
oliverklee added a commit that referenced this issue Jul 4, 2024
Ensure that parameters that have a `null` default value also
have `null` as part of their type declarations.

Also ensure a uniform notation for nullable types.

https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Fixes #634
oliverklee added a commit that referenced this issue Aug 26, 2024
Ensure that parameters that have a `null` default value also
have `null` as part of their type annotations.

Also remove native type declarations for nullable parameters
(as nullable parameters are not possible with some of the PHP
versions we currently support).

https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Fixes #634
oliverklee added a commit that referenced this issue Aug 26, 2024
Ensure that parameters that have a `null` default value also
have `null` as part of their type annotations.

Also remove native type declarations for nullable parameters
(as nullable parameters are not possible with some of the PHP
versions we currently support).

https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Fixes #634
oliverklee added a commit that referenced this issue Aug 26, 2024
Ensure that parameters that have a `null` default value also
have `null` as part of their type annotations.

Also remove native type declarations for nullable parameters
(as nullable parameters are not possible with some of the PHP
versions we currently support).

https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Fixes #634
oliverklee added a commit that referenced this issue Aug 26, 2024
Ensure that parameters that have a `null` default value also
have `null` as part of their type annotations.

Also remove native type declarations for nullable parameters
(as nullable parameters are not possible with some of the PHP
versions we currently support).

https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Fixes #634
oliverklee added a commit that referenced this issue Aug 28, 2024
Ensure that parameters that have a `null` default value also
have `null` as part of their type annotations.

Also remove native type declarations for nullable parameters
(as nullable parameters are not possible with some of the PHP
versions we currently support).

https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Fixes #634
oliverklee added a commit that referenced this issue Sep 1, 2024
Ensure that parameters that have a `null` default value also
have `null` as part of their type annotations.

Also remove native type declarations for nullable parameters
(as nullable parameters are not possible with some of the PHP
versions we currently support).

https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

Fixes #634
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant