_stefanzweifel’s avatar_stefanzweifel’s Twitter Archive—№ 2,411

  1. 💡 Did you know that the finally-block in PHP is always executed, even if you return in try or catch? I've recently used this in my changelog-updater CLI to always render GitHub Actions output. → Real world example: github.com/stefanzweifel/php-changelog-updater/blob/e3f1a768dcc650a372a789735463491cc64a71c3/app/Commands/UpdateCommand.php#L49-L73