From 6504b27fbe8c1cee86a03bbcb1d43d92d01edf20 Mon Sep 17 00:00:00 2001 From: Daniel Kliemsch Date: Fri, 9 Apr 2021 11:45:07 +0200 Subject: [PATCH] Remove property types for php7.3 support --- src/AutotranslateFieldExtension.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AutotranslateFieldExtension.php b/src/AutotranslateFieldExtension.php index 01f4dc2..a5116c9 100644 --- a/src/AutotranslateFieldExtension.php +++ b/src/AutotranslateFieldExtension.php @@ -27,25 +27,25 @@ class AutotranslateFieldExtension extends Extension /** * @var DataObject|null The affected DataObject record */ - private ?DataObject $record = null; + private $record = null; /** @var string|null The field value in the source locale */ - private ?string $sourceValue = null; + private $sourceValue = null; /** @var bool Whether the source locale value was already fetched or not (to cache requests) */ - private bool $sourceValueFetched = false; + private $sourceValueFetched = false; /** * @var array|string[] List of FormField class names to exclude */ - private static array $class_blacklist = [ + private static $class_blacklist = [ SiteTreeURLSegmentField::class ]; /** * @var string The endpoint for the google translate api */ - private static string $google_translate_api = 'https://translation.googleapis.com/language/translate/v2'; + private static $google_translate_api = 'https://translation.googleapis.com/language/translate/v2'; /** * Check if the autotranslate function should be available for the owner field.