note 113141 added to migration54.incompatible
| From: | anton at zebooka dot com | Date: | Thu, 05 Sep 2013 03:18:36 +0000 |
| Subject: | note 113141 added to migration54.incompatible | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196166@lists.php.net to get a copy of this message | ||
It seems that starting of PHP 5.4 you can not override class method with different signature.
Example:
<?php
class A
{
public function doSomething($a, $b)
{
}
}
class B extends A
{
public function doSomething($c)
{
}
}
?>
PHP Strict standards: Declaration of B::doSomething() should be compatible with A::doSomething(B
$a) in Command line code on line 1
----
Server IP: 69.147.83.199
Probable Submitter: 85.118.228.226
----
Manual Page -- http://php.net/manual/en/migration54.incompatible.php
Edit -- https://master.php.net/note/edit/113141
Del: integrated -- https://master.php.net/note/delete/113141/integrated
Del: useless -- https://master.php.net/note/delete/113141/useless
Del: bad code -- https://master.php.net/note/delete/113141/bad+code
Del: spam -- https://master.php.net/note/delete/113141/spam
Del: non-english -- https://master.php.net/note/delete/113141/non-english
Del: in docs -- https://master.php.net/note/delete/113141/in+docs
Del: other reasons-- https://master.php.net/note/delete/113141
Reject -- https://master.php.net/note/reject/113141
Search -- https://master.php.net/manage/user-notes.php