-
-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error processing upgrade from PHP 5.3 to latest #8440
Comments
Hi everyone, not sure I submitted it the right way, sorry about that... |
Hope it was the right thing to do! |
Thank you for your report! We'll need an isolated failing demo link from: http://getrector.com/demo, |
why you need to run rector on vendor dir? Latest phpseclib already require php 8.1+ /~https://github.com/phpseclib/phpseclib/blob/27d1ccc6889e8ac82e4bc39aeb6f334af6f12164/composer.json#L60 upgrade the dependency instead |
Closing as Rector should not be run on If you're not running Rector on |
[ERROR] Could not process "C:\xampp\htdocs\wp\wp-content\plugins\backwpup\vendor\phpseclib\phpseclib\phpseclib\Crypt\Base.php" file, due #0 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\ParserAbstract.php(146): PhpParser\ParserAbstract->doParse() #1 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\Parser\Multiple.php(48): PhpParser\ParserAbstract->parse('<?php $init_cry...', Object(PhpParser\ErrorHandler\Throwing)) #2 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\Parser\Multiple.php(31): PhpParser\Parser\Multiple->tryParse(Object(PhpParser\Parser\Php7), Object(PhpParser\ErrorHandler\Throwing), '<?php $init_cry...') #3 C:\xampp\htdocs\wp\vendor\rector\rector\src\PhpParser\Parser\SimplePhpParser.php(45): PhpParser\Parser\Multiple->parse('<?php $init_cry...') #4 C:\xampp\htdocs\wp\vendor\rector\rector\src\PhpParser\Parser\InlineCodeParser.php(86): Rector\PhpParser\Parser\SimplePhpParser->parseString('<?php $init_cry...') #5 C:\xampp\htdocs\wp\vendor\rector\rector\rules\Php72\Rector\FuncCall\CreateFunctionToAnonymousFunctionRector.php (150): Rector\PhpParser\Parser\InlineCodeParser->parse('<?php $init_cry...') #6 C:\xampp\htdocs\wp\vendor\rector\rector\rules\Php72\Rector\FuncCall\CreateFunctionToAnonymousFunctionRector.php (109): Rector\Php72\Rector\FuncCall\CreateFunctionToAnonymousFunctionRector->parseStringToBody('$init_cryptif (...') #7 C:\xampp\htdocs\wp\vendor\rector\rector\src\Rector\AbstractRector.php(136): Rector\Php72\Rector\FuncCall\CreateFunctionToAnonymousFunctionRector->refactor(Object(PhpParser\Node\Expr\Func Call)) #8 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(113): Rector\Rector\AbstractRector->enterNode(Object(PhpParser\Node\Expr\FuncCall)) #9 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(196): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Return_)) #10 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(105): PhpParser\NodeTraverser->traverseArray(Array) #11 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(196): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\ClassMethod)) #12 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(105): PhpParser\NodeTraverser->traverseArray(Array) #13 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(196): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Class_)) #14 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(105): PhpParser\NodeTraverser->traverseArray(Array) #15 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(196): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Stmt\Namespace_)) #16 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(85): PhpParser\NodeTraverser->traverseArray(Array) #17 C:\xampp\htdocs\wp\vendor\rector\rector\src\PhpParser\NodeTraverser\RectorNodeTraverser.php(41): PhpParser\NodeTraverser->traverse(Array) #18 C:\xampp\htdocs\wp\vendor\rector\rector\src\Application\FileProcessor.php(105): Rector\PhpParser\NodeTraverser\RectorNodeTraverser->traverse(Array) #19 C:\xampp\htdocs\wp\vendor\rector\rector\src\Application\ApplicationFileProcessor.php(176): Rector\Application\FileProcessor->processFile(Object(Rector\ValueObject\Application\File), Object(Rector\ValueObject\Configuration)) #20 C:\xampp\htdocs\wp\vendor\rector\rector\src\Application\ApplicationFileProcessor.php(153): Rector\Application\ApplicationFileProcessor->processFile(Object(Rector\ValueObject\Application\File), Object(Rector\ValueObject\Configuration)) #21 C:\xampp\htdocs\wp\vendor\rector\rector\src\Console\Command\WorkerCommand.php(132): Rector\Application\ApplicationFileProcessor->processFiles(Array, Object(Rector\ValueObject\Configuration), Object(Closure)) #22 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\evenement\evenement\src\EventEmitterTrait.php(111): Rector\Console\Command\WorkerCommand->Rector\Console\Command{closure}(Array) #23 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\clue\ndjson-react\src\Decoder.php(117): RectorPrefix202401\Evenement\EventEmitter->emit('data', Array) #24 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\evenement\evenement\src\EventEmitterTrait.php(111): RectorPrefix202401\Clue\React\NDJson\Decoder->handleData(Array) #25 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\react\stream\src\Util.php(62): RectorPrefix202401\Evenement\EventEmitter->emit('data', Array) #26 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\evenement\evenement\src\EventEmitterTrait.php(111): RectorPrefix202401\React\Stream\Util::RectorPrefix202401\React\Stream{closure}('{"action":"main...') #27 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\react\stream\src\DuplexResourceStream.php(154): RectorPrefix202401\Evenement\EventEmitter->emit('data', Array) #28 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\react\event-loop\src\StreamSelectLoop.php(201): RectorPrefix202401\React\Stream\DuplexResourceStream->handleData(Resource id #1811) #29 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\react\event-loop\src\StreamSelectLoop.php(173): RectorPrefix202401\React\EventLoop\StreamSelectLoop->waitForStreamActivity(NULL) #30 C:\xampp\htdocs\wp\vendor\rector\rector\src\Console\Command\WorkerCommand.php(90): RectorPrefix202401\React\EventLoop\StreamSelectLoop->run() #31 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\symfony\console\Command\Command.php(327): Rector\Console\Command\WorkerCommand->execute(Object(RectorPrefix202401\Symfony\Component\Console\Input\ArgvIn put), Object(RectorPrefix202401\Symfony\Component\Console\Output\ConsoleOutput)) #32 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\symfony\console\Application.php(960): RectorPrefix202401\Symfony\Component\Console\Command\Command->run(Object(RectorPrefix202401\Symfony\Component\ Console\Input\ArgvInput), Object(RectorPrefix202401\Symfony\Component\Console\Output\ConsoleOutput)) #33 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\symfony\console\Application.php(333): RectorPrefix202401\Symfony\Component\Console\Application->doRunCommand(Object(Rector\Console\Command\WorkerCom mand), Object(RectorPrefix202401\Symfony\Component\Console\Input\ArgvInput), Object(RectorPrefix202401\Symfony\Component\Console\Output\ConsoleOutput)) #34 C:\xampp\htdocs\wp\vendor\rector\rector\src\Console\ConsoleApplication.php(53): RectorPrefix202401\Symfony\Component\Console\Application->doRun(Object(RectorPrefix202401\Symfony\Component\Co nsole\Input\ArgvInput), Object(RectorPrefix202401\Symfony\Component\Console\Output\ConsoleOutput)) #35 C:\xampp\htdocs\wp\vendor\rector\rector\vendor\symfony\console\Application.php(216): Rector\Console\ConsoleApplication->doRun(Object(RectorPrefix202401\Symfony\Component\Console\Input\ArgvInput), Object(RectorPrefix202401\Symfony\Component\Console\Output\ConsoleOutput)) #36 C:\xampp\htdocs\wp\vendor\rector\rector\bin\rector.php(130): RectorPrefix202401\Symfony\Component\Console\Application->run() #37 C:\xampp\htdocs\wp\vendor\rector\rector\bin\rector(5): require_once('C:\xampp\htdocs...') #38 C:\xampp\htdocs\wp\vendor\bin\rector(119): include('C:\xampp\htdocs...') #39 {main}". On line: 272
The text was updated successfully, but these errors were encountered: