summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bug60153.phpt
blob: 8f01e72c2d6391f219471e0bf87bbbf4e32377ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #60153 (Interface method prototypes not enforced when implementd via traits.)
--FILE--
<?php

interface IFoo {
    public function oneArgument($a);
}

trait TFoo {
  public function oneArgument() {}
}

class C implements IFoo {
  use TFoo;
}

--EXPECTF--
Fatal error: Declaration of C::oneArgument() must be compatible with IFoo::oneArgument($a) in %s on line %d