Run Rector on your code to see what it can do for you:
<?php declare(strict_types=1);
function return_false(): false { return false; } -function test(): bool -{ - if (!return_false()) { - return true; - } - - return true; +function test(): bool +{ + return return_false(); }
Applied Rules:
Not a change you expect?
rector.php