Sep 29, 2024
you can additionally use phpstan strict rules to restrict constructs as empty.
PHP has two sides, the very elastic one, prone for bugs because of unexpected behaviour, and the strict, object oriented side, which enables robust and scalabe code.