Fix PhpStorm inspection warnings