# ParamNameMismatch Emitted when method overrides a parent method but renames a param. ```php foo(str: "hello"); } ``` In the first example passing `new AChild()` to `callFoo()` results in a fatal error, as AChild's definition of the method `foo()` doesn't have a parameter named `$str`. ## How to fix You can change the child method param name to match: ```php