We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
8.2
6.6.1.1
App script macros return the actual return value.
App script macros return Twig\Markup instance.
Twig\Markup
bin/console app:create
Resources/scripts/navigation-page-loaded/load-navigation-page.twig
load-navigation-page.twig
{% import 'include/loader.twig' as loader %} {% set page = hook.page %} {# @var page \Shopware\Storefront\Page\Navigation\NavigationPage #} {% do loader.load() %}
Resources/scripts/include/loader.twig
{# @var services \Shopware\Core\Framework\Script\ServiceStubs #} {% macro load() %} {% set text = _self.sayHello() %} {% do debug.dump(text) %} {% endmacro %} {% macro sayHello() %} {% return "Hello World" %} {% endmacro %}
Hello World
Consequences: This results in crashing apps, since those macros don't return expected values anymore.
The text was updated successfully, but these errors were encountered:
We found the following existing issues which may help or are related to your topic:
Sorry, something went wrong.
We are working on it. in the meanwhile you can run
composer req shopware/conflicts:0.1.7 -W
No branches or pull requests
PHP Version
8.2
Shopware Version
6.6.1.1
Expected behaviour
App script macros return the actual return value.
Actual behaviour
App script macros return
Twig\Markup
instance.How to reproduce
bin/console app:create
Resources/scripts/navigation-page-loaded/load-navigation-page.twig
load-navigation-page.twig
script:Resources/scripts/include/loader.twig
include with something like:Hello World
stringTwig\Markup
instanceConsequences: This results in crashing apps, since those macros don't return expected values anymore.
The text was updated successfully, but these errors were encountered: