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.2 dynamic property deprecation #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

esurov
Copy link

@esurov esurov commented Oct 31, 2023

Since PHP 8.2 dynamic property creation is deprecated, but could be suppressed with #[\AllowDynamicProperties] annotation.

It fixes the deprecation warnings in tests:

PHP Deprecated:  Creation of dynamic property Iodev\Whois\Modules\Tld\Parsers\TestCommonParser::$parserTypes is deprecated in src/Iodev/Whois/Modules/Tld/Parsers/CommonParser.php on line 78

php82

Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? yes
Tests pass? yes
License MIT

Since PHP 8.2 dynamic property creation is deprecated, but could be
suppressed with `#[\AllowDynamicProperties]` annotation.

It fixes the deprecation warnings in tests:

```
PHP Deprecated:  Creation of dynamic property Iodev\Whois\Modules\Tld\Parsers\TestCommonParser::$parserTypes is deprecated in src/Iodev/Whois/Modules/Tld/Parsers/CommonParser.php on line 78
```

php82
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.

1 participant