From aa14dcdb616d590eee08cbb44f753e173bb7412f Mon Sep 17 00:00:00 2001 From: Cerys Lewis Date: Tue, 12 Nov 2024 15:49:31 +0000 Subject: [PATCH] changed a hard coded class string to be dynamic --- src/SchemaBuilder/SchemaBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SchemaBuilder/SchemaBuilder.php b/src/SchemaBuilder/SchemaBuilder.php index 33d8258..fdb66f5 100644 --- a/src/SchemaBuilder/SchemaBuilder.php +++ b/src/SchemaBuilder/SchemaBuilder.php @@ -85,7 +85,7 @@ class SchemaBuilder foreach ($property->getAttributes() as $attribute) { - if($attribute->getName() != "Darksparrow\AuxiliumSchemaBuilder\Attributes\SchemaDocumentField") + if($attribute->getName() != SchemaDocumentField::class) continue; foreach($attribute->getArguments() as $key=>$value)