driftingly / rector-laravel

Rector upgrades rules for Laravel
http://getrector.org
MIT License
513 stars 50 forks source link

Empty() to Blank() or Filled() refactor rule #104

Closed peterfox closed 1 year ago

peterfox commented 1 year ago

Changes

Why

In the Laravel framework, there are two helpers, blank() and filled(), which are better replacements for PHP's built-in empty() construct, as it has some odd behaviours.

driftingly commented 1 year ago

Thanks @peterfox 🙌