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 Creation of dynamic property is deprecated #30

Open
Thomasorus opened this issue Dec 19, 2022 · 1 comment
Open

PHP 8.2 Creation of dynamic property is deprecated #30

Thomasorus opened this issue Dec 19, 2022 · 1 comment

Comments

@Thomasorus
Copy link

Hi!

I was testing the waters for Kirby 3.9 RC1 and PHP8.2 and encountered a deprecation notice that I thought might be important to report:

Whoops\Exception\ErrorException thrown with message "Creation of dynamic property PedroBorges\KirbyMetaTags\MetaTags::$data is deprecated"

Stacktrace:
Whoops\Exception\ErrorException in /site/plugins/meta-tags/src/MetaTags.php:45

More information about this deprecation: https://stitcher.io/blog/deprecated-dynamic-properties-in-php-82

That's all, have a nice day.

@isaactopo
Copy link

If you put #[\AllowDynamicProperties] on /site/plugins/meta-tags/src/MetaTags.php before opening the class MetaTags solves this.

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

No branches or pull requests

2 participants