Skip to content

phpspec/php-diff deprecated exception #969

Closed
@crtlib

Description

@crtlib

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:

        $line = preg_replace_callback('# ( +)|^ #', function ($m) {
                return $this->fixSpaces(isset($m[1]) ? $m[1] : '');
            }, $line);

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)))

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions