From f4f21cd984f37b4f562d8c9892d07b0158ce21c0 Mon Sep 17 00:00:00 2001 From: matx132 Date: Tue, 16 Jul 2024 10:41:06 +0200 Subject: [PATCH] Corrected code for PHP 7.3, changed parameter to default false --- src/Resources/config/default_settings.yaml | 2 +- .../Mapper/FieldDefinition/UrlFieldDefinitionMapper.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Resources/config/default_settings.yaml b/src/Resources/config/default_settings.yaml index 7e0ddd7..9e00cde 100644 --- a/src/Resources/config/default_settings.yaml +++ b/src/Resources/config/default_settings.yaml @@ -1,5 +1,5 @@ parameters: - ibexa.graphql.schema.should.extend.ezurl: true + ibexa.graphql.schema.should.extend.ezurl: false ezplatform_graphql.schema.content.field_name.override: id: id_ ezplatform_graphql.schema.content.mapping.field_definition_type: diff --git a/src/Schema/Domain/Content/Mapper/FieldDefinition/UrlFieldDefinitionMapper.php b/src/Schema/Domain/Content/Mapper/FieldDefinition/UrlFieldDefinitionMapper.php index 1baaae3..60e0e82 100644 --- a/src/Schema/Domain/Content/Mapper/FieldDefinition/UrlFieldDefinitionMapper.php +++ b/src/Schema/Domain/Content/Mapper/FieldDefinition/UrlFieldDefinitionMapper.php @@ -13,7 +13,9 @@ class UrlFieldDefinitionMapper extends DecoratingFieldDefinitionMapper implements FieldDefinitionMapper { private const FIELD_TYPE_IDENTIFIER = 'ezurl'; - private bool $shouldExtendUrlInputType; + + /** @var bool */ + private $shouldExtendUrlInputType; public function __construct( FieldDefinitionMapper $innerMapper,