Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grantholle committed Jun 19, 2023
1 parent b8a334a commit cac2b18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Import/Hydrators/AttributeHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function hydrate(LdapModel $object, EloquentModel $eloquent): void
$handler = is_callable($ldapField) ? $ldapField : app($ldapField);

if (is_callable($handler)) {
rd($handler);
$handler($object, $eloquent);
continue;
}
Expand Down Expand Up @@ -50,7 +51,7 @@ protected function getSyncAttributes(): array
*/
protected function isAttributeHandler($handler): bool
{
if (is_callable($handler)) {
if (is_callable($handler) && !function_exists($handler)) {
return true;
}

Expand Down

0 comments on commit cac2b18

Please sign in to comment.