mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 19:00:49 +00:00
fix cs and phpstan
This commit is contained in:
parent
af69092363
commit
f869b168b9
|
@ -48,7 +48,6 @@ final class ExtractCommand extends Command
|
|||
$source = $input->getArgument(self::ARGUMENT_SOURCE_NAME);
|
||||
$this->triggerExtractor->scanDirectories($source);
|
||||
|
||||
// $output->writeln()
|
||||
// write found deprecations...
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -2,16 +2,11 @@
|
|||
|
||||
namespace Rector\TriggerExtractor\NodeVisitor;
|
||||
|
||||
use Exception;
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Arg;
|
||||
use PhpParser\Node\Expr\BinaryOp\Concat;
|
||||
use PhpParser\Node\Expr\ConstFetch;
|
||||
use PhpParser\Node\Expr\FuncCall;
|
||||
use PhpParser\Node\Name;
|
||||
use PhpParser\Node\Scalar\MagicConst\Method;
|
||||
use PhpParser\Node\Scalar\String_;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\NodeVisitorAbstract;
|
||||
use Rector\TriggerExtractor\Deprecation\DeprecationCollector;
|
||||
use Rector\TriggerExtractor\TriggerError\TriggerMessageResolver;
|
||||
|
@ -84,7 +79,6 @@ final class DeprecationDetector extends NodeVisitorAbstract // @todo use : class
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
return $node->name->toString() === $name;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,9 +35,10 @@ final class TriggerMessageResolver
|
|||
}
|
||||
|
||||
throw new Exception(sprintf(
|
||||
'Not implemented yet %s::%s()',
|
||||
'Not implemented yet. Go to "%s::%s()" and add check for "%s" node.',
|
||||
__CLASS__,
|
||||
__METHOD__
|
||||
__METHOD__,
|
||||
get_class($node)
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
@ -3,4 +3,6 @@ parameters:
|
|||
- '#Internal error#'
|
||||
- '#Undefined variable: \$possibleAutoloadPaths#'
|
||||
- '#Undefined variable: \$container#'
|
||||
- '#Undefined variable: \$application#'
|
||||
- '#Undefined variable: \$application#'
|
||||
excludes_analyse:
|
||||
- *packages/TriggerExtractor/tests/TriggerExtractorSource/Definition.php
|
||||
|
|
Loading…
Reference in New Issue
Block a user