Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 272 Bytes

TraitMethodSignatureMismatch.md

File metadata and controls

17 lines (12 loc) · 272 Bytes

TraitMethodSignatureMismatch

Emitted when a method's signature or return type differs from corresponding trait-defined method

<?php

trait T {
    abstract public function foo(int $i);
}

class A {
    use T;

    public function foo(string $s) : void {}
}