Skip to content

Commit

Permalink
Updated Rector to commit 60f99971aa7809b33aa9fda218d8dea0f9516b5e
Browse files Browse the repository at this point in the history
rectorphp/rector-src@60f9997 [Php74] Handle crash curly based array on trait on CurlyToSquareBracketArrayStringRector (#6706)
  • Loading branch information
TomasVotruba committed Jan 29, 2025
1 parent 869caf9 commit 8ac634d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
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 = '657daffa74e36aab5223d389ff80fa178c180259';
public const PACKAGE_VERSION = '60f99971aa7809b33aa9fda218d8dea0f9516b5e';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-01-29 17:39:29';
public const RELEASE_DATE = '2025-01-30 03:00:11';
/**
* @var int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,11 @@ private function nodeScopeResolverProcessNodes(array $stmts, MutatingScope $muta
{
try {
$this->nodeScopeResolver->processNodes($stmts, $mutatingScope, $nodeCallback);
} catch (ParserErrorsException|ParserException $exception) {
} catch (ParserErrorsException|ParserException|ShouldNotHappenException $exception) {
// nothing we can do more precise here as error parsing from deep internal PHPStan service with service injection we cannot reset
// in the middle of process
// fallback to fill by found scope
\Rector\NodeTypeResolver\PHPStan\Scope\RectorNodeScopeResolver::processNodes($stmts, $mutatingScope);
} catch (ShouldNotHappenException $exception) {
// internal PHPStan error
}
}
private function processCallike(CallLike $callLike, MutatingScope $mutatingScope) : void
Expand Down

0 comments on commit 8ac634d

Please # to comment.