-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
phpspec/php-diff deprecated exception #969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We should create a pull request for phpspec/php-diff and require the fixed version in composer. |
Well seems like the repo is not maintained very well. in the original repo https://github.com/chrisboulton/php-diff there is alrey a pull request regarding php 5.5 compatibility open for long time. Looks like it would be best to create our own fork and maintain these things on our own. |
Worth trying to contact maintainer via email or IM. |
everzet? you're his habramate, you're closer to him to do it) |
@crtlib he's not code maintainer. I'll handle the conversation. |
Nothing from original author so far. @crtlib seems to be right about the fact that composer package points to a fork https://github.com/phpspec/php-diff/ Will ask everzet then. |
I think it's a wrong commit. The callback should accept parameter $matches. If you insist on avoiding anonymous function then we should modify fixSpaces:
But still I think that it'd be better to use backreference as close as possible to the regular expression itself. Just as in my snippet at the beginning. |
Please move discussion about the actual pull request to there so maintainer can see it and take part in discussion. |
Now I see. Thanks for explaining. I have nothing more to add))) |
Changes merged to phpspec repo. Closing. |
When using Gii with php 5.5 I'm getting exception that using preg_replace with '/e' modifier is deprecated in php-diff/lib/Diff/Renderer/Html/Array.php:180. Here is a fix:
And my question is - should we fix it at phpspec/php-diff or should we fork it and do it ourselves? Sorry for noob question - little experience with github)))
The text was updated successfully, but these errors were encountered: