go to bug id or search bugs for
From manual page: http://www.php.net/migration72.incompatible
PHP 7.2 seems to be applying a stricter comparison between the parameter types of an overridden method and its superclass method signature.
This is causing errors like this when they didn't occur under 7.1:
PHP Fatal error: Declaration of SubClass::foo() must be compatible with SuperClass::foo()
Examples are being discussed here:
Add a Patch
Add a Pull Request
This behavioral change has been introduced in commit b67eb34 as
fix for bug #73987. The bugfix targeted PHP 7.1.2 and 7.2.0, but
has been reverted in the PHP-7.1 branch before PHP 7.1.2 has
been released. I suppose this has been done for BC reasons, and
as such it would need an entry in UPGRADING and consequently in
the migration guide.