Updated Rector to commit 2e748886a32065bf3b432b7b144f72e0938beecb

2e748886a3 [automated] Re-Generate Nodes/Rectors Documentation (#6142)
This commit is contained in:
Tomas Votruba 2024-07-14 00:32:51 +00:00
parent e1cf6fb0cf
commit 28b87977fb
2 changed files with 23 additions and 4 deletions

View File

@ -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

View File

@ -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
*/