Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

erro ao executar vendor\bin\phan --allow-polyfill-parser src\Bucador.php

Oi na hora de executar o comando no terminal ( vendor\bin\phan --allow-polyfill-parser src\Bucador.php

está retornando esse log, alguem pode me ajudar com a solução?

C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer>vendor\bin\phan --allow-polyfill-parser src\Bucador.php C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\phan\phan\src\Phan\AST\TolerantASTConverter\ast_shim.php:30 [8] Constant ast\AST_ARG_LIST already defined (Phan 3.2.3 crashed) More details:

#2: include() called at [C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\composer\ClassLoader.php:444] Args: ["C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\phan\phan\src\Phan\AST\TolerantASTConverter\ast_shim.php"]

#3: Composer\Autoload\includeFile() called at [C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\composer\ClassLoader.php:322] Args: ["C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\composer/../phan/phan/src/Phan/AST/TolerantASTConverter/ast_shim.php"]

#4: Composer\Autoload\ClassLoader->loadClass() Args: ["ast\Metadata"]

#5: spl_autoload_call() Args: ["ast\Metadata"] #6: class_exists() called at [C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\phan\phan\src\Phan\AST\TolerantASTConverter\ast_shim.php:272] Args: ["ast\Metadata"] #7: include() called at [C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\composer\ClassLoader.php:444] Args: ["C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\phan\phan\src\Phan\AST\TolerantASTConverter\ast_shim.php"] #8: Composer\Autoload\includeFile() called at [C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\composer\ClassLoader.php:322] Args: ["C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\composer/../phan/phan/src/Phan/AST/TolerantASTConverter/ast_shim.php"]

#9: Composer\Autoload\ClassLoader->loadClass() Args: ["ast\Node"] #10: spl_autoload_call() Args: ["ast\Node"]

#11: class_exists() called at [C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\phan\phan\src\Phan\AST\TolerantASTConverter\Shim.php:23] Args: ["\ast\Node"] #12: Phan\AST\TolerantASTConverter\Shim::load() called at [C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\phan\phan\src\Phan\Phan.php:235] #13: Phan\Phan::analyzeFileList() called at [C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\phan\phan\src\phan.php:38] Args: [Phan\CodeBase({}), Closure] #14: require_once() called at [C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\phan\phan\phan:10] Args: ["C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer\vendor\phan\phan\src\phan.php"]

C:\Users\Marco Antonio\Desktop\Alura-PHP\PHP-composer>

2 respostas

Alguém pode me ajudar? rsrs

solução!

Marcos, tenta fazer um composer update pra atualizar o phan e ver se resolve. :-)