0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-02-02 10:09:59 +00:00
Arkadiusz Biczewski 996eaf4331
Remove unnecessary reference assigment (#301)
* Remove unnecessary reference assigment

Proposed code is PHP5 and PHP7 compatible. PHP5 interpreted `$e->$type[$attr]` as `$e->{$type[$attr]}`, but the expected behavior based on workaround is consistent with PHP7 interpretation: `($e->$type)[$attr]`. By using curly braces `{$e->$type}[$attr]` there is a forced interpretation order working for both versions.
Details can be found on https://www.php.net/manual/en/migration70.incompatible.php (section "Changes to the handling of indirect variables, properties, and methods")

* Fix syntax

Use correct syntax for indirect variable evaluation order change.
2021-09-07 14:16:55 -04:00
..
2020-02-22 12:10:30 -05:00
2013-08-17 22:27:26 -04:00
2013-08-17 22:27:26 -04:00
2013-08-17 22:27:26 -04:00
2013-08-17 22:27:26 -04:00
2013-08-17 22:27:26 -04:00
2013-08-17 22:27:26 -04:00