mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 05:18:18 +01:00
Updated Rector to commit 2e748886a32065bf3b432b7b144f72e0938beecb
2e748886a3
[automated] Re-Generate Nodes/Rectors Documentation (#6142)
This commit is contained in:
parent
e1cf6fb0cf
commit
28b87977fb
@ -1,4 +1,4 @@
|
||||
# 379 Rules Overview
|
||||
# 380 Rules Overview
|
||||
|
||||
<br>
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
- [CodeQuality](#codequality) (69)
|
||||
|
||||
- [CodingStyle](#codingstyle) (28)
|
||||
- [CodingStyle](#codingstyle) (29)
|
||||
|
||||
- [DeadCode](#deadcode) (45)
|
||||
|
||||
@ -1769,6 +1769,25 @@ Refactor `func_get_args()` in to a variadic param
|
||||
|
||||
<br>
|
||||
|
||||
### FunctionFirstClassCallableRector
|
||||
|
||||
Upgrade string callback functions to first class callable
|
||||
|
||||
- class: [`Rector\CodingStyle\Rector\FuncCall\FunctionFirstClassCallableRector`](../rules/CodingStyle/Rector/FuncCall/FunctionFirstClassCallableRector.php)
|
||||
|
||||
```diff
|
||||
final class SomeClass
|
||||
{
|
||||
public function run(array $data)
|
||||
{
|
||||
- return array_map('trim', $data);
|
||||
+ return array_map(trim(...), $data);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### MakeInheritedMethodVisibilitySameAsParentRector
|
||||
|
||||
Make method visibility same as parent one
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'dc2a3cd5cec984cf53df08fba9023a6b79e78470';
|
||||
public const PACKAGE_VERSION = '2e748886a32065bf3b432b7b144f72e0938beecb';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-07-14 02:52:28';
|
||||
public const RELEASE_DATE = '2024-07-14 00:30:22';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user