Open jenlampton opened 6 months ago
Hello, here is posted a solution to the drupal module: https://www.drupal.org/project/flag/issues/3359763.
As suggested, adding the attribute :
#[AllowDynamicProperties]
class flag_flag {...}
signals PHP to not emit any deprecation notices.
Regards, Andrés
Hola Andrés! Would you like to submit a PR for this? It's easy, and it would help the maintainer. Take a look at the [guidelines](Contributing to an existing project) for contributing to an existing project.
Hello! Following your suggestion, I've sent my contribution to fix this issue. Andrés
PR works for me. Thank you @aduhour !
I'm running PHP 8.2 and I'm seeing dozens of notices like the following:
Here's the change notice from PHP https://php.watch/versions/8.2/dynamic-properties-deprecated