<?php
class DEP1{}
class DEP2{}
class DEP3{}
interface A{
function get1(): DEP1;
function get2(): DEP2;
function get3(): DEP3;
}
class AImpl implements A{
function __construct(DEP1 $x, DEP2 $y, DEP3 $z){
$this->x = $x;
$this->y = $y;
$this->z = $z;
}
function get1(): DEP1{
return $this->x;
}
function get2(): DEP2{
return $this->y;
}
function get3(): DEP3{
return $this->z;
}
}
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.21
- Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/FtQXl on line 8
Process exited with code 255.
preferences:
157.68 ms | 402 KiB | 181 Q