I would like to know if there is anyway I can make a parent object with php, I have tried this:
new parent::__construct($var);
but it doesn’t work and I get the following error in the php logs:
(..)PHP Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or ‘$'(..)
Just call the constructor of the parent class like:
Use parent::__construct() to call the parent class constructor since it is not done automatically in PHP.