Skip to content

Commit

Permalink
Updated Rector to commit 1e7fffd0be6bd99905dff054488e967a276b8727
Browse files Browse the repository at this point in the history
rectorphp/rector-src@1e7fffd [Php55] Skip parse error on no concat in left in left Concat on PregReplaceEModifierRector (#6148)
  • Loading branch information
TomasVotruba committed Jul 15, 2024
1 parent 8349226 commit 4fe7b62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions rules/Php55/RegexMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ private function createPatternWithoutE(string $pattern, string $delimiter, strin
}
private function matchConcat(Concat $concat) : ?Concat
{
// cause parse error
if (!$concat->left instanceof Concat) {
return null;
}
$lastItem = $concat->right;
if (!$lastItem instanceof String_) {
return null;
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '25b437a67243133d39aaf9579723013730b4d3f5';
public const PACKAGE_VERSION = '1e7fffd0be6bd99905dff054488e967a276b8727';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-07-15 03:55:14';
public const RELEASE_DATE = '2024-07-16 00:07:06';
/**
* @var int
*/
Expand Down

0 comments on commit 4fe7b62

Please sign in to comment.