mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
Updated Rector to commit ccbee6ff09668241b9f8bcadbaa05ba4fb8fda5f
ccbee6ff09
[automated] Re-Generate Nodes/Rectors Documentation (#5345)
This commit is contained in:
parent
0125f4dfcf
commit
976e6eb341
@ -1,4 +1,4 @@
|
|||||||
# 351 Rules Overview
|
# 352 Rules Overview
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
- [Transform](#transform) (22)
|
- [Transform](#transform) (22)
|
||||||
|
|
||||||
- [TypeDeclaration](#typedeclaration) (39)
|
- [TypeDeclaration](#typedeclaration) (40)
|
||||||
|
|
||||||
- [Visibility](#visibility) (3)
|
- [Visibility](#visibility) (3)
|
||||||
|
|
||||||
@ -6516,6 +6516,25 @@ Change `empty()` on nullable object to instanceof check
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
### MergeDateTimePropertyTypeDeclarationRector
|
||||||
|
|
||||||
|
Set DateTime to DateTimeInterface for DateTime property with DateTimeInterface docblock
|
||||||
|
|
||||||
|
- class: [`Rector\TypeDeclaration\Rector\Class_\MergeDateTimePropertyTypeDeclarationRector`](../rules/TypeDeclaration/Rector/Class_/MergeDateTimePropertyTypeDeclarationRector.php)
|
||||||
|
|
||||||
|
```diff
|
||||||
|
final class SomeClass
|
||||||
|
{
|
||||||
|
- /**
|
||||||
|
- * @var DateTimeInterface
|
||||||
|
- */
|
||||||
|
- private DateTime $dateTime;
|
||||||
|
+ private DateTimeInterface $dateTime;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
### NumericReturnTypeFromStrictScalarReturnsRector
|
### NumericReturnTypeFromStrictScalarReturnsRector
|
||||||
|
|
||||||
Change numeric return type based on strict returns type operations
|
Change numeric return type based on strict returns type operations
|
||||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '99dbc0d8b7ca27e803c78657979f574476208125';
|
public const PACKAGE_VERSION = 'ccbee6ff09668241b9f8bcadbaa05ba4fb8fda5f';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2023-12-10 00:13:21';
|
public const RELEASE_DATE = '2023-12-10 00:27:04';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user