Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Patternlab php not working with PHP 8.0 #397

@ghost

Description

We use Patternlab PHP together with Azure, so the compilation is done on an Azure Ubuntu or Mac agent. They were recently updated by MS to run PHP 8.0 and Patternlab stopped working.
This is the error message we get:

`Running "shell:patternlab" (shell) task
Warning: Command failed: php core/console -gp
PHP Fatal error: Uncaught Error: Class "\PatternLabListener" not found in /home/vsts/work/1/s/pattern-lab/vendor/pattern-lab/core/src/PatternLab/Dispatcher.php:61
Stack trace:

#0 /home/vsts/work/1/s/pattern-lab/vendor/pattern-lab/core/src/PatternLab/Dispatcher.php(39): PatternLab\Dispatcher::loadListeners()

#1 /home/vsts/work/1/s/pattern-lab/core/console(42): PatternLab\Dispatcher::init()

#2 {main}
thrown in /home/vsts/work/1/s/pattern-lab/vendor/pattern-lab/core/src/PatternLab/Dispatcher.php on line 61
� Use --force to continue.

Aborted due to warnings.`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions