Skip to content

Commit

Permalink
Revert "Fix phpstan warnings"
Browse files Browse the repository at this point in the history
This reverts commit 9018ac7.
  • Loading branch information
huangdijia committed Jun 2, 2023
1 parent 9018ac7 commit 8c12e09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
return static function (RectorConfig $rectorConfig): void {
$services = $rectorConfig->services();

$services->defaults() /* @phpstan-ignore-line */
$services->defaults()
->public()
->autowire()
->autoconfigure();

$services->load('Rector\\Hyperf\\', __DIR__ . '/../src') /* @phpstan-ignore-line */
$services->load('Rector\\Hyperf\\', __DIR__ . '/../src')
->exclude([__DIR__ . '/../src/{Rector,ValueObject}']);

$services->set(RenameClassNonPhpRector::class);
Expand Down
6 changes: 3 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ parameters:
# rector co-variant
# - '#Parameter \#1 \$node \(PhpParser\\Node\\(.*?) of method RectorLaravel\\(.*?)\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method Rector\\Core\\Contract\\Rector\\PhpRectorInterface\:\:refactor\(\)#'
# - '#Parameter \#1 \$className of method Rector\\Core\\Reflection\\ReflectionResolver\:\:resolveMethodReflection\(\) expects class\-string, string given#'
# -
# message: '#Do not use chained method calls\. Put each on separated lines#'
# path: config/*
-
message: '#Do not use chained method calls\. Put each on separated lines#'
path: config/*

0 comments on commit 8c12e09

Please sign in to comment.