From 4e8883c61998909627c13558be8729cec2d3c3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82oszko?= Date: Fri, 11 Nov 2016 09:19:48 +0100 Subject: [PATCH] In PHP7 indirect expressions interpratation has been changed - syntax is changed to work in PHP7 and PHP5 --- Manager/UploaderManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Manager/UploaderManager.php b/Manager/UploaderManager.php index 18b9200..2485187 100644 --- a/Manager/UploaderManager.php +++ b/Manager/UploaderManager.php @@ -299,7 +299,7 @@ public function handleUpload($entity, $requestId=null, $options = array()) foreach ($data as $property) { $context = $property['mapping']; - $mediaEntities = $entity->$property['nameGetFunction'](); + $mediaEntities = $entity->{$property['nameGetFunction']}(); $this->removeMarkedMedia($context, $requestId); $this->renameMarkedMedia($context, $requestId);