Skip to content
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

[TASK] Avoid implicitly nullable class method parameter #2500

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

sbuerk
Copy link
Contributor

@sbuerk sbuerk commented Jun 30, 2024

With PHP 8.4 marking method parameter implicitly nullable
is deprecated and will emit a E_DEPRECATED warning. One
recommended way to resolve this, is making it explicitly
nullable using the ? nullable operator or adding a null
type to an union type definition. [1]

This prepares the way towards PHP 8.4 compatibility.

With PHP 8.4 marking method parameter implicitly nullable
is deprecated and will emit a `E_DEPRECATED` warning. One
recommended way to resolve this, is making it explicitly
nullable using the `?` nullable operator or adding a null
type to an union type definition. [[1]](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)

This prepares the way towards PHP 8.4 compatibility.

* [[1] https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)
@georgringer georgringer merged commit 1a996ae into georgringer:main Jul 1, 2024
17 checks passed
@sbuerk sbuerk deleted the main-php84 branch July 1, 2024 09:12
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 this pull request may close these issues.

2 participants