• Hello I find problem with use plugins with php 8.2.
    Is there a solution to this problem or are you working on it?

    Error message :
    Deprecated: Creation of dynamic property GMDPCF_Display::$fields is deprecated in /home/……/wp-content/plugins/date-picker-for-contact-form-7/includes/GMDPCF_Display.php on line 86

    Deprecated: Creation of dynamic property GMDPCF_Display::$names is deprecated in /home…../wp-content/plugins/date-picker-for-contact-form-7/includes/GMDPCF_Display.php on line 87

Viewing 1 replies (of 1 total)
  • Thread Starter Marcin Jóźwiak

    (@dragonesti)

    Hello,

    The warning is telling you that there is a property you are trying to set which isn’t declared in the class or any of its parents.

    You can add in the beginning in class

    class GMDPCF_Display { …

    public $fields;
    public $names;

    or you can put before class, as a temporary solution until the plugin is updated

    #[\AllowDynamicProperties]

    Best regards

Viewing 1 replies (of 1 total)

The topic ‘PHP 8.2: Dynamic Properties are deprecated’ is closed to new replies.