Updated Rector to commit 569b9199017e5e09715acf406df15dc6175d9cc1

569b919901 [automated] Re-Generate Nodes/Rectors Documentation (#5705)
This commit is contained in:
Tomas Votruba 2024-03-10 00:28:56 +00:00
parent 309ceb4ee6
commit d018e755ec
2 changed files with 30 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# 363 Rules Overview
# 364 Rules Overview
<br>
@ -56,7 +56,7 @@
- [Transform](#transform) (24)
- [TypeDeclaration](#typedeclaration) (44)
- [TypeDeclaration](#typedeclaration) (45)
- [Visibility](#visibility) (3)
@ -6647,6 +6647,32 @@ Change return type based on strict returns type operations
<br>
### ChildDoctrineRepositoryClassTypeRector
Add return type to classes that extend `Doctrine\ORM\EntityRepository`
- class: [`Rector\TypeDeclaration\Rector\Class_\ChildDoctrineRepositoryClassTypeRector`](../rules/TypeDeclaration/Rector/Class_/ChildDoctrineRepositoryClassTypeRector.php)
```diff
use Doctrine\ORM\EntityRepository;
/**
* @extends EntityRepository<SomeType>
*/
final class SomeRepository extends EntityRepository
{
- public function getActiveItem()
+ public function getActiveItem(): ?SomeType
{
return $this->findOneBy([
'something'
]);
}
}
```
<br>
### DeclareStrictTypesRector
Add declare(strict_types=1) if missing

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '3d02e3ec8f3a7d03adc3f23c315e57850dc8379a';
public const PACKAGE_VERSION = '569b9199017e5e09715acf406df15dc6175d9cc1';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-03-09 20:22:17';
public const RELEASE_DATE = '2024-03-10 00:26:36';
/**
* @var int
*/