marc-mabe / php-enum

Simple and fast implementation of enumerations with native PHP
BSD 3-Clause "New" or "Revised" License
464 stars 36 forks source link

Fix call static #124

Closed marc-mabe closed 5 years ago

marc-mabe commented 5 years ago

Enum::__callStatic() should call static::byName() instead of self::byName(). Interestingly this never behaved wrongly but just because of a weird PHP behavior I have reported as a bug here https://bugs.php.net/bug.php?id=77985