Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PHP critical error on webapp install #58841

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

Closed
fabgg opened this issue Nov 12, 2024 · 3 comments
Closed

PHP critical error on webapp install #58841

fabgg opened this issue Nov 12, 2024 · 3 comments

Comments

@fabgg
Copy link

fabgg commented Nov 12, 2024

Symfony version(s) affected

6.4.13

Description

after installation process of fresh install with composer require webapp the cache clear commande generate a critical php error

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!  
!!   // Clearing the cache for the dev environment with debug true                  
!!  
!!  15:33:47 CRITICAL  [php] Uncaught Error: Too few arguments to function PHPStan\PhpDocParser\Parser\ConstExprParser::__construct(), 0 passed in /var/www/test/sf64/vendor/symfony/property-info/Extractor/PhpStanExtractor.php on line 71 and exactly 1 expected ["exception" => ArgumentCountError { …}]
!!  
!!  In ConstExprParser.php line 18:
!!                                                                                 
!!    Too few arguments to function PHPStan\PhpDocParser\Parser\ConstExprParser::  
!!    __construct(), 0 passed in /var/www/test/sf64/vendor/symfony/property-info/  
!!    Extractor/PhpStanExtractor.php on line 71 and exactly 1 expected             
!!                                                                                 
!!  
!!  cache:clear [--no-warmup] [--no-optional-warmers]
!!  
!!  
Script @auto-scripts was called via post-update-cmd

the php version is

PHP 8.2.24 (cli) (built: Sep 27 2024 04:16:10) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.24, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.24, Copyright (c), by Zend Technologies

I got same result on local docker based on bookworm php 8.2.25

PHP 8.2.25 (cli) (built: Nov 12 2024 07:25:23) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.25, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.25, Copyright (c), by Zend Technologies

How to reproduce

This error still append with symfony installer

symfony new test_app --version="6.4.*" --webapp

Possible Solution

No response

Additional Context

No response

@stof
Copy link
Member

stof commented Nov 12, 2024

Duplicate of #58796

@stof stof marked this as a duplicate of #58796 Nov 12, 2024
@stof
Copy link
Member

stof commented Nov 12, 2024

This is already fixed in the dev version thanks to #58800 and #58804. The fix will be part of the next patch release.

@endelwar
Copy link

pinning phpdocumentor/reflection-docblock to 5.5.1 fixed the issues for me, waiting for the next path release :)

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

No branches or pull requests

5 participants