phpstan fixes

This commit is contained in:
TomasVotruba 2017-08-10 12:29:43 +02:00
parent 86e5f11ac2
commit 28a3835acf
3 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,6 @@
parameters:
ignoreErrors:
- '#Internal error#'
# - '#should return PhpParser\\Node\[\] but returns PhpParser\\Node\[\]\|null#'
- '#Undefined variable: \$possibleAutoloadPaths#'
- '#Undefined variable: \$container#'
- '#Undefined variable: \$application#'

View File

@ -32,7 +32,7 @@ final class RemoveConfiguratorConstantsRector extends AbstractRector
/**
* @param ClassConstFetch $classConstFetchNode
*/
public function refactor(ClassConstFetch $classConstFetchNode): ?Node
public function refactor($classConstFetchNode): ?Node
{
$constantName = (string) $classConstFetchNode->name;
$string = strtolower($constantName);

View File

@ -1,6 +1,6 @@
<?php declare(strict_types=1);
namespace Rector\Tests\Rector\Contrib\NetteObjectToSmartTraitRector;
namespace Rector\Tests\Rector\Contrib\Nette\NetteObjectToSmartTraitRector;
use Rector\Testing\PHPUnit\AbstractReconstructorTestCase;