<?php
interface Bar
{
public function getSalt();
}
class Foo implements Bar
{
public $salt;
public function __call($name, $args)
{
if ($name == 'getSalt')
return $this->salt;
}
}
new Foo;
Fatal error: Class Foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Bar::getSalt) in /in/KIc6S on line 8
Process exited with code 255.
Fatal error: Class Foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Bar::getSalt) in /in/KIc6S on line 18
Process exited with code 255.
Output for 5.0.0 - 5.0.4
Fatal error: Class Foo contains 1 abstract methods and must therefore be declared abstract (Bar::getSalt) in /in/KIc6S on line 18
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/KIc6S on line 3
Process exited with code 255.