Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 2, 2024
1 parent 8ee301e commit 3c9b05f
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions docs/rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 31 Rules Overview
# 30 Rules Overview

## AnnotateRegexClassConstWithRegexLinkRule

Expand Down Expand Up @@ -546,34 +546,6 @@ class SomeClass

<br>

## NoNullableArrayPropertyRule

Use required typed property over of nullable array property

- class: [`Symplify\PHPStanRules\Rules\NoNullableArrayPropertyRule`](../src/Rules/NoNullableArrayPropertyRule.php)

```php
final class SomeClass
{
private ?array $property = null;
}
```

:x:

<br>

```php
final class SomeClass
{
private array $property = [];
}
```

:+1:

<br>

## NoReferenceRule

Use explicit return value over magic &reference
Expand Down

0 comments on commit 3c9b05f

Please sign in to comment.