mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-28 23:10:51 +00:00
run dump-rectors for new IssetOnPropertyObjectToPropertyExistsRector rule (#4226)
This commit is contained in:
parent
8ef90fd61a
commit
869441eb98
|
@ -1,4 +1,4 @@
|
|||
# All 579 Rectors Overview
|
||||
# All 580 Rectors Overview
|
||||
|
||||
- [Projects](#projects)
|
||||
---
|
||||
|
@ -8,7 +8,7 @@
|
|||
- [Architecture](#architecture) (2)
|
||||
- [Autodiscovery](#autodiscovery) (4)
|
||||
- [CakePHP](#cakephp) (6)
|
||||
- [CodeQuality](#codequality) (58)
|
||||
- [CodeQuality](#codequality) (59)
|
||||
- [CodingStyle](#codingstyle) (35)
|
||||
- [DeadCode](#deadcode) (40)
|
||||
- [Decouple](#decouple) (1)
|
||||
|
@ -1037,6 +1037,28 @@ Complete missing 3rd argument in case `is_a()` function in case of strings
|
|||
|
||||
<br><br>
|
||||
|
||||
### `IssetOnPropertyObjectToPropertyExistsRector`
|
||||
|
||||
- class: [`Rector\CodeQuality\Rector\Isset_\IssetOnPropertyObjectToPropertyExistsRector`](/rules/code-quality/src/Rector/Isset_/IssetOnPropertyObjectToPropertyExistsRector.php)
|
||||
- [test fixtures](/rules/code-quality/tests/Rector/Isset_/IssetOnPropertyObjectToPropertyExistsRector/Fixture)
|
||||
|
||||
Change isset on property object to `property_exists()`
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
{
|
||||
private $x;
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
- isset($this->x);
|
||||
+ property_exists($this, 'x') && $this->x !== null;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<br><br>
|
||||
|
||||
### `JoinStringConcatRector`
|
||||
|
||||
- class: [`Rector\CodeQuality\Rector\Concat\JoinStringConcatRector`](/rules/code-quality/src/Rector/Concat/JoinStringConcatRector.php)
|
||||
|
|
Loading…
Reference in New Issue
Block a user