<?php
interface a
{
public function aa();
}
interface b extends a
{
public function bb();
}
class aa implements a
{
public function aa() {
echo 'aa';
}
}
class bb implements b {
public function bb() {
echo 'bb';
}
}
$aa = new aa();
$aa->aa();
$bb = new bb();
$bb->bb();
$aa->bb();
Fatal error: Class bb contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (a::aa) in /in/ceAfZ on line 20
Process exited with code 255.
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; aa has a deprecated constructor in /in/ceAfZ on line 13
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bb has a deprecated constructor in /in/ceAfZ on line 20
Fatal error: Class bb contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (a::aa) in /in/ceAfZ on line 20
Process exited with code 255.
Fatal error: Class bb contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (a::aa) in /in/ceAfZ on line 24
Process exited with code 255.