Skip to content

Commit

Permalink
Merge pull request #161 from discoverygarden/fix/class-not-type
Browse files Browse the repository at this point in the history
Return the class not the type (always an object).
  • Loading branch information
adam-vessey authored Jan 23, 2025
2 parents dbc9117 + d2d3c07 commit 98edffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/migrate/process/LockingMigrationLookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ protected function doLookup($value, MigrateExecutableInterface $migrate_executab
throw $e;
}
catch (\Exception $e) {
throw new MigrateException(sprintf('A %s was thrown while processing this migration lookup', gettype($e)), $e->getCode(), $e);
throw new MigrateException(sprintf('A %s was thrown while processing this migration lookup', get_class($e)), $e->getCode(), $e);
}

if ($destination_id_array) {
Expand Down

0 comments on commit 98edffc

Please sign in to comment.