mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit 569b9199017e5e09715acf406df15dc6175d9cc1
569b919901
[automated] Re-Generate Nodes/Rectors Documentation (#5705)
This commit is contained in:
parent
309ceb4ee6
commit
d018e755ec
@ -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
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user