Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ includes:

rules:
- Rector\Utils\PHPStan\Rule\RegisterRelatedPolyfillRectorRule
- Rector\Utils\PHPStan\Rule\NoScopeFetchBeforeCheapGuardRule
- Rector\Utils\PHPStan\Rule\NarrowReturnToUnionParamRule

parameters:
level: 8
Expand Down Expand Up @@ -56,6 +54,7 @@ parameters:
phpunit: true
mocks: true
ctor: true
modern: true

# see https://github.com/TomasVotruba/type-coverage
type_coverage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function refactor(Node $node): ?Node
$this->hasChanged = false;

// skip class without parents/interfaces, there is no param type to mimic
if ($node instanceof Class_ && !$node->extends instanceof Name && $node->implements === []) {
if ($node instanceof Class_ && ! $node->extends instanceof Name && $node->implements === []) {
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function getNodeTypes(): array
public function refactor(Node $node): ?Node
{
// entity type is resolved from the @extends docblock, bail early when absent
if (!$node->getDocComment() instanceof Doc) {
if (! $node->getDocComment() instanceof Doc) {
return null;
}

Expand Down
199 changes: 0 additions & 199 deletions utils/phpstan/src/Rule/NarrowReturnToUnionParamRule.php

This file was deleted.

151 changes: 0 additions & 151 deletions utils/phpstan/src/Rule/NoScopeFetchBeforeCheapGuardRule.php

This file was deleted.

Loading
Loading