mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
216 B
216 B
PossiblyNullArgument
Emitted when calling a function with a value that’s possibly null when the function does not expect it
<?php
function foo(string $s) : void {}
foo(rand(0, 1) ? "hello" : null);