Skip to content

Commit

Permalink
Updated Rector to commit 2e748886a32065bf3b432b7b144f72e0938beecb
Browse files Browse the repository at this point in the history
rectorphp/rector-src@2e74888 [automated] Re-Generate Nodes/Rectors Documentation (#6142)
  • Loading branch information
TomasVotruba committed Jul 14, 2024
1 parent e1cf6fb commit 28b8797
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
23 changes: 21 additions & 2 deletions docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 379 Rules Overview
# 380 Rules Overview

<br>

Expand All @@ -10,7 +10,7 @@

- [CodeQuality](#codequality) (69)

- [CodingStyle](#codingstyle) (28)
- [CodingStyle](#codingstyle) (29)

- [DeadCode](#deadcode) (45)

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 28b8797

Please sign in to comment.