Back to Psalm

UnusedFunctionCall

docs/running_psalm/issues/UnusedFunctionCall.md

6.16.1217 B
Original Source

UnusedFunctionCall

Emitted when --find-dead-code is turned on and Psalm finds a function call whose return value is not used anywhere

php
<?php

$a = strlen("hello");
strlen("goodbye"); // unused
echo $a;