Skip to content

Commit 3d8ef14

Browse files
committed
Updated Rector to commit ffa770e63686db2b8b8b7ba19ccb5520e7af98f5
rectorphp/rector-src@ffa770e Keep generic static union docblock in `RemoveDuplicatedReturnSelfDocblockRector` (#8150)
1 parent adaa18d commit 3d8ef14

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

rules/DeadCode/Rector/ClassMethod/RemoveDuplicatedReturnSelfDocblockRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use PHPStan\PhpDocParser\Ast\Type\TypeNode;
1212
use PHPStan\Reflection\ClassReflection;
1313
use PHPStan\Type\Generic\GenericObjectType;
14+
use PHPStan\Type\Generic\GenericStaticType;
1415
use PHPStan\Type\ObjectType;
1516
use PHPStan\Type\StaticType;
1617
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
@@ -119,7 +120,7 @@ private function isCurrentObjectReturnDocType(TypeNode $typeNode, ClassMethod $c
119120
{
120121
$docType = $this->staticTypeMapper->mapPHPStanPhpDocTypeNodeToPHPStanType($typeNode, $classMethod);
121122
// generic narrowing, e.g. @return self<TValue, never> is not a plain duplicate of the native self type
122-
if ($docType instanceof GenericObjectType) {
123+
if ($docType instanceof GenericObjectType || $docType instanceof GenericStaticType) {
123124
return \false;
124125
}
125126
// covers @return $this and @return static

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '2.5.4';
22+
public const PACKAGE_VERSION = 'ffa770e63686db2b8b8b7ba19ccb5520e7af98f5';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-07-05 23:08:08';
27+
public const RELEASE_DATE = '2026-07-06 18:41:54';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)