Skip to content

Commit fa8eeb7

Browse files
committed
fix tests
1 parent a6a5686 commit fa8eeb7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Config/SharpConfigBuilder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ public function declareEntity(string $entityClass): self
215215

216216
// prepend _internal to entities located in sharp's source (e.g. PasskeyEntity)
217217
// to avoid conflicts with project entities
218-
if (str($entityClass)->startsWith(str(static::class)->explode('\\')->take(2))) {
218+
if (str($entityClass)->startsWith('Code16\Sharp')
219+
&& ! str($entityClass)->startsWith('Code16\Sharp\Tests')) {
219220
$entityKey = "_internal_$entityKey";
220221
}
221222

0 commit comments

Comments
 (0)