Skip to content

Commit

Permalink
Fixing "string is deprecated" warning in PHP8
Browse files Browse the repository at this point in the history
  • Loading branch information
LABCAT authored Feb 27, 2023
1 parent 63e9730 commit df12c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/EditableFileField_AllowedTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function updateCMSFields(FieldList $fields)
*/
public function getAllowedExtensionArray()
{
$extensions = preg_replace('/[\s+|.+]/', '', strtolower($this->owner->AllowedExtensions));
$extensions = preg_replace('/[\s+|.+]/', '', strtolower($this->owner->AllowedExtensions ?? ''));
if (!$extensions) {
return null;
}
Expand Down

0 comments on commit df12c9e

Please sign in to comment.