Skip to content

Commit

Permalink
Remove property types for php7.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dkliemsch committed Apr 9, 2021
1 parent 8de8c7a commit 6504b27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/AutotranslateFieldExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6504b27

Please sign in to comment.