Skip to content

Commit

Permalink
Merge pull request #2 from koloszko/php7-incompatibility-issue
Browse files Browse the repository at this point in the history
In PHP7 indirect expressions interpratation has been changed - syntax…
  • Loading branch information
nilov authored Nov 11, 2016
2 parents 9c46c1a + 4e8883c commit bac722f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Manager/UploaderManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bac722f

Please sign in to comment.