xref: /PHP-7.4/Zend/tests/traits/bug60153.phpt (revision d679f022)
1--TEST--
2Bug #60153 (Interface method prototypes not enforced when implementd via traits.)
3--FILE--
4<?php
5
6interface IFoo {
7    public function oneArgument($a);
8}
9
10trait TFoo {
11  public function oneArgument() {}
12}
13
14class C implements IFoo {
15  use TFoo;
16}
17--EXPECTF--
18Fatal error: Declaration of C::oneArgument() must be compatible with IFoo::oneArgument($a) in %s on line %d
19