Skip to content

Commit

Permalink
No need to keep iterating after the first match.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperTey committed Mar 28, 2024
1 parent 91fe23f commit 89354b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ValueObjects/DomainObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public static function fromClass(string $fullyQualifiedClass, ?string $objectTyp
$objectNamespace = str(data_get($matches, 0))->beforeLast('\\')->toString();

$objectType = $type;

break;
}

// If there wasn't a recognized namespace, we'll assume it's a
Expand Down

0 comments on commit 89354b5

Please sign in to comment.