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

PHP 8.3 support #47

Merged
merged 3 commits into from
Mar 26, 2024
Merged

PHP 8.3 support #47

merged 3 commits into from
Mar 26, 2024

Conversation

WouterSioen
Copy link
Member

No description provided.

Because the defaultName is documented in the base class as string|null,
psalm is not happy, because we're calling the parent constructor with a
potential null value. Since we're always setting this to a string, we
can safely avoid this though.
@WouterSioen WouterSioen requested a review from jdrieghe March 26, 2024 13:05
This is always a string, but because the parent class says it's
`null|string`, we cannot just override the type here (this gives another
error: NonInvariantDocblockPropertyType).

Casting to a string is safe though since we know it's always a string
anyway.
@WouterSioen WouterSioen mentioned this pull request Mar 26, 2024
@WouterSioen WouterSioen merged commit e106bd3 into main Mar 26, 2024
9 checks passed
@WouterSioen WouterSioen deleted the php-83 branch March 26, 2024 13:09
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