Skip to content

Fixed bug in php7+ with symfony < 3.3

Compare
Choose a tag to compare
@fideloper fideloper released this 31 May 13:23
· 76 commits to master since this release

PHP7 raised an warning when non-numeric values were used in bitwise operations (e.g. $foo | $bar where $foo or $bar was not a numeric value).

This resulted in a thrown ErrorException within Laravel.

This fixes that by returning out of the function before the bitwise calculation is complete, under the assumption that that condition only happens when Symfony < 3.3.