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 #345

Merged
merged 1 commit into from
Jul 12, 2024
Merged

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.

Resolves: #344

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)

Resolves: #344
@calien666 calien666 merged commit 03d2d72 into main Jul 12, 2024
9 checks passed
@calien666 calien666 deleted the php84 branch July 12, 2024 18:29
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.

[TASK] Avoid implicitly nullable class method parameter
2 participants