Skip to content

Commit

Permalink
Updated Rector to commit 52398c81f9e88bde858cd2d79d481ae66190abc7
Browse files Browse the repository at this point in the history
rectorphp/rector-src@52398c8 [Php83] add string type to concat constant (#5516)
  • Loading branch information
TomasVotruba committed Jan 29, 2024
1 parent 94c55b8 commit 826292d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions rules/Php83/Rector/ClassConst/AddTypeToConstRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use PhpParser\Node\Const_;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\Array_;
use PhpParser\Node\Expr\BinaryOp\Concat;
use PhpParser\Node\Expr\ConstFetch;
use PhpParser\Node\Identifier;
use PhpParser\Node\Scalar\DNumber;
Expand Down Expand Up @@ -136,6 +137,9 @@ private function findValueType(Expr $expr) : ?Identifier
if ($expr instanceof Array_) {
return new Identifier('array');
}
if ($expr instanceof Concat) {
return new Identifier('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 = '1608ae8c9497bbfaf78ce54130ec304963ac6f2a';
public const PACKAGE_VERSION = '52398c81f9e88bde858cd2d79d481ae66190abc7';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-01-29 05:39:29';
public const RELEASE_DATE = '2024-01-29 17:16:20';
/**
* @var int
*/
Expand Down

0 comments on commit 826292d

Please sign in to comment.