<?php
class A {
function x($a) {}
}
class B extends A {
function x($a, $b) {}
}
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
- Fatal error: Declaration of B::x($a, $b) must be compatible with A::x($a) in /in/ZuKC8 on line 8
Process exited with code 255. - Output for 7.4.0 - 7.4.33
- Warning: Declaration of B::x($a, $b) should be compatible with A::x($a) in /in/ZuKC8 on line 8
- Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
- Warning: Declaration of B::x($a, $b) should be compatible with A::x($a) in /in/ZuKC8 on line 9
- Output for 5.6.0 - 5.6.40
- Strict Standards: Declaration of B::x() should be compatible with A::x($a) in /in/ZuKC8 on line 9
preferences:
229.19 ms | 401 KiB | 284 Q