Skip to content
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

Fatal error: Uncaught TypeError: Argument 1 passed to PhabelVendor\PhpParser\Builder\Param::__construct() #18

Open
vladdevops opened this issue Dec 24, 2021 · 2 comments

Comments

@vladdevops
Copy link

Fatal error in phabelio/phabel
PHP 7.2.34
Windows 22000.376

composer.json
{
  "require": {
      "php": "^7.2",
      "mixplat/mixplat-php-client": "^1.0",
      "symfony/dotenv": "^5.3",
      "danog/madelineproto": "7.0.48.9998"
  },
  "config": {
      "allow-plugins": {
          "phabel/phabel": true
      }
  }
}                       
composer update -v
Package operations: 47 installs, 0 updates, 0 removals                                                                                                                                         
Installs: phabel-transpiler72.symfony/polyfill-php80:v1.23.1, phabel-transpiler72.symfony/polyfill-mbstring:v1.23.1, phabel-transpiler72.psr/log:1.1.4, phabel-transpiler72.psr/http-message:1.
0.1, phabel-transpiler72.psr/http-factory:1.0.1, phabel-transpiler72.paragonie/random_compat:v9.99.100, phabel-transpiler72.paragonie/constant_time_encoding:v2.4.0, phabel-transpiler72.phpsec
lib/phpseclib:3.0.12, phabel-transpiler72.league/uri-interfaces:2.3.0, phabel-transpiler72.league/uri:6.5.0, phabel-transpiler72.erusev/parsedown:1.7.4, phabel-transpiler72.danog/tg-file-deco
der:0.1.8, phabel-transpiler72.danog/primemodule:1.0.7, phabel-transpiler72.danog/magicalserializer:1.0, phabel-transpiler72.amphp/amp:v2.6.1, phabel-transpiler72.danog/loop:0.1.1, phabel-tra
nspiler72.amphp/parser:v1.0.0, phabel-transpiler72.amphp/byte-stream:v1.8.1, phabel-transpiler72.danog/ipc:0.1.15, phabel-transpiler72.daverandom/libdns:v2.0.2, phabel-transpiler72.danog/libd
ns-json:0.1.1, phabel-transpiler72.amphp/sync:v1.4.2, phabel-transpiler72.league/uri-parser:1.4.1, phabel-transpiler72.kelunik/certificate:v1.1.2, phabel-transpiler72.amphp/process:v1.1.3, ph
abel-transpiler72.amphp/windows-registry:v0.3.3, phabel-transpiler72.amphp/serialization:v1.0.0, phabel-transpiler72.amphp/cache:v1.5.0, phabel-transpiler72.amphp/dns:v1.2.3, phabel-transpile
r72.amphp/socket:v1.2.0, phabel-transpiler72.amphp/hpack:v3.1.1, phabel-transpiler72.amphp/http:v1.6.3, phabel-transpiler72.amphp/http-client:v4.6.2, phabel-transpiler72.danog/dns-over-https:
0.2.6, phabel-transpiler72.cash/lrucache:1.0.0, phabel-transpiler72.amphp/websocket:v1.0.2, phabel-transpiler72.amphp/websocket-client:v1.0.0, phabel-transpiler72.amphp/redis:v1.0.6, phabel-t
ranspiler72.amphp/sql:v1.0.1, phabel-transpiler72.amphp/sql-common:v1.1.2, phabel-transpiler72.amphp/postgres:v1.4.3, phabel-transpiler72.amphp/mysql:v2.1.2, phabel-transpiler72.monolog/monol
og:2.3.5, phabel-transpiler72.amphp/log:v1.1.0, phabel-transpiler72.amphp/http-client-cookies:v1.2.0, phabel-transpiler72.amphp/parallel:v1.4.1, phabel-transpiler72.amphp/file:v2.0.2         
- Installing phabel-transpiler72.symfony/polyfill-php80 (v1.23.1): Extracting archive                                                                                                        
- Installing phabel-transpiler72.symfony/polyfill-mbstring (v1.23.1): Extracting archive                                                                                                     
- Installing phabel-transpiler72.psr/log (1.1.4): Extracting archive                                                                                                                         
- Installing phabel-transpiler72.psr/http-message (1.0.1): Extracting archive                                                                                                                
- Installing phabel-transpiler72.psr/http-factory (1.0.1): Extracting archive                                                                                                                
- Installing phabel-transpiler72.paragonie/random_compat (v9.99.100): Extracting archive                                                                                                     
- Installing phabel-transpiler72.paragonie/constant_time_encoding (v2.4.0): Extracting archive                                                                                               
- Installing phabel-transpiler72.phpseclib/phpseclib (3.0.12): Extracting archive                                                                                                            
- Installing phabel-transpiler72.league/uri-interfaces (2.3.0): Extracting archive                                                                                                           
- Installing phabel-transpiler72.league/uri (6.5.0): Extracting archive                                                                                                                      
- Installing phabel-transpiler72.erusev/parsedown (1.7.4): Extracting archive                                                                                                                
- Installing phabel-transpiler72.danog/tg-file-decoder (0.1.8): Extracting archive                                                                                                           
- Installing phabel-transpiler72.danog/primemodule (1.0.7): Extracting archive                                                                                                               
- Installing phabel-transpiler72.danog/magicalserializer (1.0): Extracting archive                                                                                                           
- Installing phabel-transpiler72.amphp/amp (v2.6.1): Extracting archive                                                                                                                      
- Installing phabel-transpiler72.danog/loop (0.1.1): Extracting archive                                                                                                                      
- Installing phabel-transpiler72.amphp/parser (v1.0.0): Extracting archive                                                                                                                   
- Installing phabel-transpiler72.amphp/byte-stream (v1.8.1): Extracting archive                                                                                                              
- Installing phabel-transpiler72.danog/ipc (0.1.15): Extracting archive                                                                                                                      
- Installing phabel-transpiler72.daverandom/libdns (v2.0.2): Extracting archive                                                                                                              
- Installing phabel-transpiler72.danog/libdns-json (0.1.1): Extracting archive                                                                                                               
- Installing phabel-transpiler72.amphp/sync (v1.4.2): Extracting archive                                                                                                                     
- Installing phabel-transpiler72.league/uri-parser (1.4.1): Extracting archive                                                                                                               
- Installing phabel-transpiler72.kelunik/certificate (v1.1.2): Extracting archive                                                                                                            
- Installing phabel-transpiler72.amphp/process (v1.1.3): Extracting archive                                                                                                                  
- Installing phabel-transpiler72.amphp/windows-registry (v0.3.3): Extracting archive                                                                                                         
- Installing phabel-transpiler72.amphp/serialization (v1.0.0): Extracting archive                                                                                                            
- Installing phabel-transpiler72.amphp/cache (v1.5.0): Extracting archive                                                                                                                    
- Installing phabel-transpiler72.amphp/dns (v1.2.3): Extracting archive                                                                                                                      
- Installing phabel-transpiler72.amphp/socket (v1.2.0): Extracting archive                                                                                                                   
- Installing phabel-transpiler72.amphp/hpack (v3.1.1): Extracting archive                                                                                                                    
- Installing phabel-transpiler72.amphp/http (v1.6.3): Extracting archive                                                                                                                     
- Installing phabel-transpiler72.amphp/http-client (v4.6.2): Extracting archive                                                                                                              
- Installing phabel-transpiler72.danog/dns-over-https (0.2.6): Extracting archive                                                                                                            
- Installing phabel-transpiler72.cash/lrucache (1.0.0): Extracting archive                                                                                                                   
- Installing phabel-transpiler72.amphp/websocket (v1.0.2): Extracting archive                                                                                                                
- Installing phabel-transpiler72.amphp/websocket-client (v1.0.0): Extracting archive                                                                                                         
- Installing phabel-transpiler72.amphp/redis (v1.0.6): Extracting archive                                                                                                                    
- Installing phabel-transpiler72.amphp/sql (v1.0.1): Extracting archive                                                                                                                      
- Installing phabel-transpiler72.amphp/sql-common (v1.1.2): Extracting archive                                                                                                               
- Installing phabel-transpiler72.amphp/postgres (v1.4.3): Extracting archive                                                                                                                 
- Installing phabel-transpiler72.amphp/mysql (v2.1.2): Extracting archive                                                                                                                    
- Installing phabel-transpiler72.monolog/monolog (2.3.5): Extracting archive                                                                                                                 
- Installing phabel-transpiler72.amphp/log (v1.1.0): Extracting archive                                                                                                                      
- Installing phabel-transpiler72.amphp/http-client-cookies (v1.2.0): Extracting archive                                                                                                      
- Installing phabel-transpiler72.amphp/parallel (v1.4.1): Extracting archive                                                                                                                 
- Installing phabel-transpiler72.amphp/file (v2.0.2): Extracting archive                                                                                                                     
23 package suggestions were added by new dependencies, use `composer suggest` to see details.                                                                                                  
Generating autoload files                                                                                                                                                                      
31 packages you are using are looking for funding.                                                                                                                                             
Use the `composer fund` command to find out more!                                                                                                                                              
> post-update-cmd: Phabel\Composer\Plugin->onUpdate                                                                                                                                            
Creating plugin graph...                                                                                                                                                                       
                                                                                                                                                                                             
*********                                                                                                                                                                                      
* Phabel *                                                                                                                                                                                     
*********                                                                                                                                                                                      
                                                                                                                                                                                             
PHP transpiler - Write and deploy modern PHP 8 code, today: https://phabel.io                                                                                                                  
                                                                                                                                                                                             
Transpilation in progress... 100% (3842/3842)                                                                                                                                                  
                                                                                                                                                                                             
Fatal error: Uncaught TypeError: Argument 1 passed to PhabelVendor\PhpParser\Builder\Param::__construct() must be of the type string, null given, called in D:\lib\vendor\phabel\phabel\src\Plugin\ClassStoragePlugin.php on line 310 and defined in D:\lib\vendor\phabel\phabel\vendor-bundle\phabel\php-pars
er\lib\PhpParser\Builder\Param.php:24                                                                                                                                                          
Stack trace:                                                                                                                                                                                   
#0 D:\lib\vendor\phabel\phabel\src\Plugin\ClassStoragePlugin.php(310): PhabelVendor\PhpParser\Builder\Param->__construct(NULL)                         
#1 D:\lib\vendor\phabel\phabel\src\Traverser.php(532): Phabel\Plugin\ClassStoragePlugin->finish()                                                      
#2 D:\lib\vendor\phabel\phabel\src\Composer\Transformer.php(386): Phabel\Traverser->run(1)                                                             
#3 D:\lib\vendor\phabel\phabel\src\Composer\Plugin.php(131): Phabel\Composer\Transformer->transform(Array, Array)                                      
#4 D:\lib\vendor\phabel\phabel\vendor-bundle\phabel\php-parser\lib\PhpParser\Builder\Param.php on line 24                               
@danog
Copy link
Contributor

danog commented Dec 24, 2021

Could you try running composer update -vvv?

@vladdevops
Copy link
Author

Could you try running composer update -vvv?

composer update -vvv
Transpiled D:/lib/vendor/phabel-transpiler72.psr/log/Psr/Log/AbstractLogger.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.psr/log/Psr/Log/InvalidArgumentException.php in 1 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.psr/log/Psr/Log/LoggerAwareInterface.php in 1 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.psr/log/Psr/Log/LoggerAwareTrait.php in 1 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.psr/log/Psr/Log/LoggerInterface.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.psr/log/Psr/Log/LoggerTrait.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.psr/log/Psr/Log/LogLevel.php in 1 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.psr/log/Psr/Log/NullLogger.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.psr/log/Psr/Log/Test/DummyTest.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.psr/log/Psr/Log/Test/LoggerInterfaceTest.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.psr/log/Psr/Log/Test/TestLogger.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-mbstring/bootstrap.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-mbstring/bootstrap80.php in 3 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-mbstring/Mbstring.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-mbstring/Resources/unidata/lowerCase.php in 1 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php in 1 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-mbstring/Resources/unidata/upperCase.php in 1 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-php80/bootstrap.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-php80/Php80.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-php80/Resources/stubs/Attribute.php in 2 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-php80/Resources/stubs/Stringable.php in 1 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php in 1 iterations!
Transpiled D:/lib/vendor/phabel-transpiler72.symfony/polyfill-php80/Resources/stubs/ValueError.php in 1 iterations!


Fatal error: Uncaught TypeError: Argument 1 passed to PhabelVendor\PhpParser\Builder\Param::__construct() must be of the type string, null given, called in D:\lib\vendor\phabel\phabel\src\Plugin\ClassStoragePlugin.php on line 310 and defined in D:\lib\vendor\phabel\phabel\vendor-bundle\phabel\php-parser\lib\PhpParser\Builder\Param.php:24
Stack trace:
#0 D:\lib\vendor\phabel\phabel\src\Plugin\ClassStoragePlugin.php(310): PhabelVendor\PhpParser\Builder\Param->__construct(NULL)
#1 D:\lib\vendor\phabel\phabel\src\Traverser.php(532): Phabel\Plugin\ClassStoragePlugin->finish()
#2 D:\lib\vendor\phabel\phabel\src\Composer\Transformer.php(386): Phabel\Traverser->run(1)
#3 D:\lib\vendor\phabel\phabel\src\Composer\Plugin.php(131): Phabel\Composer\Transformer->transform(Array, Array)
#4 D:\lib\vendor\phabel\phabel\vendor-bundle\phabel\php-parser\lib\PhpParser\Builder\Param.php on line 24                            

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants