Hello all.

> Have you considered returning enum instead of ?bool? It would have a clear 
> self explanatory meaning.

You don’t need to return anything at all. :)
PHP already has `throw`.
That means the cleanup method can throw an exception if it decides one
should be thrown.
This behavior is fully consistent with PHP’s design, and there’s no
need for a return statement.

-- 
Ed

Reply via email to