mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 00:40:52 +00:00
phpstan fixes
This commit is contained in:
parent
86e5f11ac2
commit
28a3835acf
|
@ -1,4 +1,6 @@
|
||||||
parameters:
|
parameters:
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
- '#Internal error#'
|
- '#Internal error#'
|
||||||
# - '#should return PhpParser\\Node\[\] but returns PhpParser\\Node\[\]\|null#'
|
- '#Undefined variable: \$possibleAutoloadPaths#'
|
||||||
|
- '#Undefined variable: \$container#'
|
||||||
|
- '#Undefined variable: \$application#'
|
|
@ -32,7 +32,7 @@ final class RemoveConfiguratorConstantsRector extends AbstractRector
|
||||||
/**
|
/**
|
||||||
* @param ClassConstFetch $classConstFetchNode
|
* @param ClassConstFetch $classConstFetchNode
|
||||||
*/
|
*/
|
||||||
public function refactor(ClassConstFetch $classConstFetchNode): ?Node
|
public function refactor($classConstFetchNode): ?Node
|
||||||
{
|
{
|
||||||
$constantName = (string) $classConstFetchNode->name;
|
$constantName = (string) $classConstFetchNode->name;
|
||||||
$string = strtolower($constantName);
|
$string = strtolower($constantName);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
namespace Rector\Tests\Rector\Contrib\NetteObjectToSmartTraitRector;
|
namespace Rector\Tests\Rector\Contrib\Nette\NetteObjectToSmartTraitRector;
|
||||||
|
|
||||||
use Rector\Testing\PHPUnit\AbstractReconstructorTestCase;
|
use Rector\Testing\PHPUnit\AbstractReconstructorTestCase;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user