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

compatibility issue within the 'execute' method of a Command in Symfony Console version 7 #518

Closed
GigaCode93 opened this issue Feb 9, 2024 · 1 comment

Comments

@GigaCode93
Copy link

GigaCode93 commented Feb 9, 2024

Bug Report

Current Behavior
In Symfony 7, the execute method of Symfony Command now requires a return value of type int as part of its method signature. However, this requirement has not been implemented in your extension's Commands. Additionally, your code includes the strict types declaration declare(strict_types=1);. As a result, it leads to a fatal error due to this incompatibility.

Expected behavior/output
Preventing fatal errors and ensuring compatibility.

Environment

  • TYPO3 version(s): 12.4.10
  • tt_address version: 8.0.2
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes
  • OS: Ubuntu 22

Possible Solution
Modifying the method signature to make it compatible with the execute method of the Symfony command, or alternatively, removing declare(strict_types=1);.

@georgringer
Copy link
Contributor

fixed with #516

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