Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 295 Bytes

MethodSignatureMismatch.md

File metadata and controls

14 lines (11 loc) · 295 Bytes

MethodSignatureMismatch

Emitted when a method parameter differs from a parent method parameter, or if there are fewer parameters than the parent method

<?php

class A {
    public function foo(int $i) : void {}
}
class B extends A {
    public function foo(string $i) : void {}
}