Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Command `getHelper` does not work

Abierto
#239 7 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
php, symfony
Área
devtools

Línea de trabajo

Start with the getHelper('question')->ask() call in Shopware's MediaOptimizeCommand.php and compare it with the custom ShopwareCommand.php base class. Reproduce or inspect the reported HelperInterface::ask() error and determine the expected handling for this command; done means the reported call is correctly analyzed without the undefined-method error.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hey there 👋

I updated to version 1.1.2 and now I got the following error during the analysis:

Call to an undefined method Symfony\Component\Console\Helper\HelperInterface::ask()

We do not extend directly from Symfony\Component\Console\Command\Command but have an own AbstractCommand instead. could that be a reason? Otherwise I don't see a reason why a call like this, should not work: $this->getHelper('question')->ask()

Command where the error occurs: https://github.com/shopware/shopware/blob/5.7/engine/Shopware/Bundle/MediaBundle/Commands/MediaOptimizeCommand.php#L117
Abstract command: https://github.com/shopware/shopware/blob/5.7/engine/Shopware/Commands/ShopwareCommand.php

thanks in advance and have a nice day 🙂 👋

Lenguaje dominante
PHP
Estrellas
800
Forks
104
Merge medio
4 min
PR fusionados (30 d)
1

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de phpstan/phpstan-symfony

Todos los issues de phpstan/phpstan-symfony

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.