You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with this rule is that is not safe to compare against an empty string because the property it's not initialized. The empty function will also check for not initialized properties. The same thing will happen with other types.
The text was updated successfully, but these errors were encountered:
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/7e222012-b871-4e3c-9b05-3a62017753f7
Responsible rules
DisallowedEmptyRuleFixerRector
Expected Behavior
The code must not change.
The problem with this rule is that is not safe to compare against an empty string because the property it's not initialized. The empty function will also check for not initialized properties. The same thing will happen with other types.
The text was updated successfully, but these errors were encountered: