| 1 | <?php |
||
| 14 | class UpdateHelper |
||
| 15 | { |
||
| 16 | // Dont change order - longer will be first (before other started from same symbols) |
||
| 17 | const RULES = ['set:', 'add:', 'max:', 'min:']; |
||
| 18 | |||
| 19 | public static function updateAllFields(&$data, array $changes) : void |
||
| 26 | |||
| 27 | public static function updateField(&$data, $value, string $rule, string $fieldName) : void |
||
| 47 | } |
||
| 48 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.