class NoReturn (View source)

You can use this facility to mark the function as halting the execution flow.

Such marked functions will be treated like die() or exit() calls by control flow inspections. In most cases, just annotation function with 0 arguments will work. To mark the function as the exit point only when it's called with some constant arguments, specify them in $arguments param

{\JetBrains\PhpStorm\NoReturn::ANY_ARGUMENT}

Constants

ANY_ARGUMENT

Use this constant to skip function argument on the specified position

Methods

__construct(...$arguments)

No description

Details

__construct(...$arguments)

No description

Parameters

...$arguments