[Solved] Access to undeclared static property $this


The error is:

Access to undeclared static property: DF_CookiesDescutes::$this

In your code:

parent::$this->EachDescute

You can’t use this syntax. If you want get/set EachDescute class property you have to use:

$this->EachDescute;

If the EachDescute is set as private, you can’t get/set it from extended class.

The keyword parent:: is used to call a method of parent class (in extended class).

You can’t use parent:: keyword to set a property (variable).

solved Access to undeclared static property $this