PHP defaults to the parent constructor if your class doesn't have one. So why do i see people commonly do something like this:
class parentClass {
public function __construct()
{
echo 'working';
}
}
class childClass extends parentClass {
public function __construct()
{
return parent::__construct();
}
}
What is the advantage to returning the parent construct if it behaves the same without it? Perhaps it doesn't behave the same?
Thank you for any help. Just trying to better understand the language.