Skip to content

Commit

Permalink
Merge pull request #2270 from kdambekalns/bugfix/installerscript-exce…
Browse files Browse the repository at this point in the history
…ption-handling

BUGFIX: Fix use of deprecated method called in exception handling
  • Loading branch information
albe authored Nov 21, 2020
2 parents 862a0a2 + 0f750b6 commit 080b9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Neos.Flow/Classes/Composer/InstallerScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static function postPackageUpdateAndInstall(PackageEvent $event)
{
$operation = $event->getOperation();
if (!$operation instanceof InstallOperation && !$operation instanceof UpdateOperation) {
throw new Exception\UnexpectedOperationException('Handling of operation with type "' . $operation->getJobType() . '" not supported', 1348750840);
throw new Exception\UnexpectedOperationException('Handling of operation of type "' . get_class($operation) . '" not supported', 1348750840);
}
$package = ($operation instanceof InstallOperation) ? $operation->getPackage() : $operation->getTargetPackage();
$packageExtraConfig = $package->getExtra();
Expand Down

0 comments on commit 080b9e3

Please sign in to comment.