Issue Bug Closed

#105584Exception: Too few arguments to function Lexer in StringTypeResolver.php

Sybille Peters 11/12/24, 14:47 updated 11/12/24, 15:22

Description

Too few arguments to function PHPStan\PhpDocParser\Lexer\Lexer::__construct(), 0 passed in 
/var/www/site-uol12/vendor/symfony/type-info/TypeResolver/StringTypeResolver.php 
on line 66 
and exactly 1 expected

directly after updating to TYPO3 12.4.23 when trying to login to BE

This seems to be due to existing issue in Symfony :

Reproduce

  1. Update to 12.4.23
  2. try to login to BE

Environment

  • Composer mode
  • Install without —no-dev (is dev environment)
  • probably necessary to use Extbase, call stack has cms-extbase/Classes/Reflection/ClassSchema.php
  • PHP 8.2

I updated as recommened:

composer update typo3/cms-* -W

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 1

History 8

  1. Sybille Peters commented and changed description <span data-processor="relativetime" data-value="2024-11-12T14:51:22+00:00" > 11/12/24, 14:51 </span>

    There is a possible workaround in the Symfony issue:

    > Possible Solution

    > To avoid this issue for now I’ve added “phpdocumentor/reflection-docblock”: “5.5.1” to my composer.json dev requirements.

    https://github.com/symfony/symfony/issues/58840

    TYPO3 uses:

    "symfony/property-info": "^6.4 || ^7.0",
  2. Andreas Kienast commented and changed status New Closed <span data-processor="relativetime" data-value="2024-11-12T15:22:01+00:00" > 11/12/24, 15:22 </span>

    Closed as a duplicate of #105582