Skip to content

$mappingFormat must not be defined #32

Description

@costa-jeremy

Hi !

I'm using version 1.3.7 of the plugin and I'm encountering the following error:

Fatal error: Type of Odiseo\BlogBundle\OdiseoBlogBundle::$mappingFormat must not be defined (as in class Sylius\Bundle\ResourceBundle\AbstractResourceBundle) in /var/www/html/colorbox/vendor/odiseoteam/blog-bundle/src/OdiseoBlogBundle.php on line 35

The issue comes from this line in the file vendor/odiseoteam/blog-bundle/src/OdiseoBlogBundle.php:

protected string $mappingFormat = ResourceBundleInterface::MAPPING_YAML;
It seems that the type "string" is not accepted here.

A potential fix would be to modify it to:

protected $mappingFormat = ResourceBundleInterface::MAPPING_YAML;
However, I saw in another issue that adding the "string" type was previously requested.

Do you have any idea how we could resolve this issue?

Thanks in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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