Skip to content

Commit d018e75

Browse files
committed
Updated Rector to commit 569b9199017e5e09715acf406df15dc6175d9cc1
rectorphp/rector-src@569b919 [automated] Re-Generate Nodes/Rectors Documentation (#5705)
1 parent 309ceb4 commit d018e75

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

docs/rector_rules_overview.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 363 Rules Overview
1+
# 364 Rules Overview
22

33
<br>
44

@@ -56,7 +56,7 @@
5656

5757
- [Transform](#transform) (24)
5858

59-
- [TypeDeclaration](#typedeclaration) (44)
59+
- [TypeDeclaration](#typedeclaration) (45)
6060

6161
- [Visibility](#visibility) (3)
6262

@@ -6647,6 +6647,32 @@ Change return type based on strict returns type operations
66476647

66486648
<br>
66496649

6650+
### ChildDoctrineRepositoryClassTypeRector
6651+
6652+
Add return type to classes that extend `Doctrine\ORM\EntityRepository`
6653+
6654+
- class: [`Rector\TypeDeclaration\Rector\Class_\ChildDoctrineRepositoryClassTypeRector`](../rules/TypeDeclaration/Rector/Class_/ChildDoctrineRepositoryClassTypeRector.php)
6655+
6656+
```diff
6657+
use Doctrine\ORM\EntityRepository;
6658+
6659+
/**
6660+
* @extends EntityRepository<SomeType>
6661+
*/
6662+
final class SomeRepository extends EntityRepository
6663+
{
6664+
- public function getActiveItem()
6665+
+ public function getActiveItem(): ?SomeType
6666+
{
6667+
return $this->findOneBy([
6668+
'something'
6669+
]);
6670+
}
6671+
}
6672+
```
6673+
6674+
<br>
6675+
66506676
### DeclareStrictTypesRector
66516677

66526678
Add declare(strict_types=1) if missing

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 = '3d02e3ec8f3a7d03adc3f23c315e57850dc8379a';
22+
public const PACKAGE_VERSION = '569b9199017e5e09715acf406df15dc6175d9cc1';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2024-03-09 20:22:17';
27+
public const RELEASE_DATE = '2024-03-10 00:26:36';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)