Doc #75682 [Opn->Ver]: Undocumented PHP 7.2 BC break

From: Date: Thu, 14 Dec 2017 22:58:41 +0000
Subject: Doc #75682 [Opn->Ver]: Undocumented PHP 7.2 BC break
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15286@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75682&edit=1 ID: 75682 Updated by: cmb@php.net Reported by: glenn at codeacious dot com Summary: Undocumented PHP 7.2 BC break -Status: Open +Status: Verified Type: Documentation Problem Package: Documentation problem PHP Version: 7.2.0 Block user comment: N Private report: N New Comment: This behavioral change has been introduced in commit b67eb34[1] 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[2] 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. [1] <http://git.php.net/?p=php-src.git;a=commit;h=b67eb3440bb244adf6957bf2c68aeeaa6efc8c8d> [2] <http://git.php.net/?p=php-src.git;a=commit;h=49e9ae1fc1b5a4b0404135d1827ed64a1481d623> Previous Comments: ------------------------------------------------------------------------ [2017-12-14 05:30:35] glenn at codeacious dot com Description: ------------ --- 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: https://www.drupal.org/project/drupal/issues/2923015 https://github.com/zendframework/zend-mvc/issues/266 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75682&edit=1

« previous php.doc.bugs (#15286) next »