During my testing of the module, error

PHP Parse error: syntax error, unexpected identifier "LayoutParagraphsLayoutTempstor...", expecting variable in /app/web/modules/contrib/mercury_editor/modules/mercury_editor_templates/src/Controller/InsertTemplateController.php on line 34

appeared during cache clear. A quick look in that file revealed that there are readonly properties used, even though the composer.json file doesn't declare dependency on PHP 8.1 (I'm using 8.0).

It's possible that there are more instances of these issues. It looks like https://github.com/symfony/polyfill-php81 won't help here, so perhaps there should be some rector-based transpiling happening during the development process?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

milos.kroulik created an issue. See original summary.

anybody’s picture

I think the module should just require PHP 8.1 - that's totally fine now.

mohd sahzad’s picture

Assigned: Unassigned » mohd sahzad
mohd sahzad’s picture

Assigned: mohd sahzad » Unassigned

Hi @milos.kroulik,
needs more steps for reproduce this issue : Undeclared dependency on PHP 8.1

justin2pin made their first commit to this issue’s fork.

justin2pin’s picture

Status: Active » Fixed

Declared PHP 8.1 as a dependency in the module's composer.json file.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.