<?php
class ChildClass extends ParentClass
{
function myFunction($param1, $param2)
{
}
}
class ParentClass
{
function myFunction($param1)
{
}
}
$obj = new ChildClass;
Fatal error: Declaration of ChildClass::myFunction($param1, $param2) must be compatible with ParentClass::myFunction($param1) in /in/LHVv7 on line 4
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: Declaration of ChildClass::myFunction($param1, $param2) should be compatible with ParentClass::myFunction($param1) in /in/LHVv7 on line 4