Inspectopedia Help

Invalid function result used

Reports the usages of a void or never function's return value.

Since void functions do not have a return value and never functions terminate execution or throw an exception, such usages are most likely a programming mistake.

Inspection Details

Available in:

PhpStorm 2023.3, Qodana for PHP 2023.3



Last modified: 13 July 2023