NullArgument
null is passed to a parameter that does not accept null.
Example
Section titled “Example”<?phpfunction send(string $to): void {}
send(null); // string does not accept nullHow to fix
Section titled “How to fix”Pass a non-null value or widen the parameter type to ?string.