antecedent / patchwork

Method redefinition (monkey-patching) functionality for PHP.
https://antecedent.github.io/patchwork/
MIT License
444 stars 40 forks source link

Warning: strpos(): Offset not contained in string #40

Closed neeravbm closed 7 years ago

neeravbm commented 8 years ago

This error comes from line 266 of Utils.php. The reason is strpos() doesn't accept negative offset. It needs to be changed to strrpos().