Skip to content

[BUG] Twig php error after update to v20.16.0 in combination with n98-magerun #5100

@alexherbs

Description

@alexherbs

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After updating to latest openmage lts version v20.16.0, I get an php fatal error when I try to run sys:cron:run with n98-magerun.

Error:
PHP Fatal error: Cannot redeclare twig_cycle() (previously declared in phar:///usr/local/bin/magerun/vendor/twig/twig/src/Extension/CoreExtension.php:362) in /var/www/htdocs/vendor/twig/twig/src/Resources/core.php on line 24

Expected Behavior

I expect a cronjob list when I run: n98-magerun sys:cron:run

Steps To Reproduce

Just execute following command: magerun sys:cron:run

Environment

- OpenMage: v20.16.0
- php: 8.2.15

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions