Implicit method visibility (instead of implied public)

This commit is contained in:
Dave Hulbert
2013-05-09 10:07:09 +02:00
parent 16e2cbcfcd
commit 7514c6c986

View File

@@ -21,7 +21,7 @@ abstract class BookPrototype
* @abstract
* @return void
*/
abstract function __clone();
abstract public function __clone();
public function getTitle()
{
@@ -62,4 +62,4 @@ $barPrototype = new BarBookPrototype();
for ($i = 0; $i < 10000; $i++) {
$book = clone $fooPrototype;
$book->setTitle('Foo Book No ' . $i);
}
}