Psalm plugin to detect usage of empty().
composer require marartner/psalm-no-empty --dev
To enable
psalm-plugin enable marartner/psalm-no-empty
To disable
psalm-plugin disable marartner/psalm-no-empty
See Psalms documentation for more information.