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

Avoid warnings in PHP 8.4 #212

Merged
merged 4 commits into from
Dec 22, 2024
Merged

Avoid warnings in PHP 8.4 #212

merged 4 commits into from
Dec 22, 2024

Conversation

leonardolara
Copy link
Contributor

fputcsv() escape parameter must be provided as of PHP 8.4. The other preceding parameters are also informed. Named arguments not used for backwards compatibility with PHP < 8.0.

Using #[\AllowDynamicProperties] to the class to avoid warnings in PHP 8.2+.

@leonardolara leonardolara requested a review from alfsb as a code owner December 21, 2024 01:00
@@ -19,6 +19,7 @@

require_once __DIR__ . '/all.php';

#[\AllowDynamicProperties]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we allow dynamic properties at all?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is always be an error, but I'm stuck with 8.1.2-1ubuntu2.20 for now. There is a way to make it warn about this locally. Or, possibly, also in CI.

It turns out that the warning about the dynamic property was in fact an existing property name that was typed incorrectly.
@kamil-tekiela kamil-tekiela merged commit 643f7dd into php:master Dec 22, 2024
11 of 12 checks passed
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.

4 participants