- Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
- Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/IBElW on line 11
Process exited with code 255.
<?php
class A {
public function __construct(string $a)
{
}
public function test( $who )
{
echo "\n".$who." ebal!"
}
}
class B extends A {
public function __construct(int $z, int $y)
{
parent::__construct($z . $y);
}
public function test( $who )
{
parent::test( $who." tvoyu" );
}
}
$b = new B(1, 2);
$b->test( 'Mamka' );