20250615
* Исправлена ошибка Class "GetOnly" not found.
This commit is contained in:
		| @@ -5,7 +5,7 @@ namespace goodboyalex\php_components_pack\classes; | ||||
| use DateTimeImmutable; | ||||
| use DateTimeInterface; | ||||
| use Exception; | ||||
| use ReflectionAttribute; | ||||
| use goodboyalex\php_components_pack\attributes\GetOnly; | ||||
| use ReflectionClass; | ||||
| use ReflectionException; | ||||
| use ReflectionProperty; | ||||
| @@ -98,7 +98,7 @@ final class ClassMapper | ||||
|         } | ||||
|  | ||||
|         // Получаем список атрибутов у данного свойства | ||||
|         $attributes = $reflectionProperty->getAttributes('GetOnly', ReflectionAttribute::IS_INSTANCEOF); | ||||
|         $attributes = $reflectionProperty->getAttributes(GetOnly::class); | ||||
|  | ||||
|         // Возвращаем true, если атрибут найден, иначе false | ||||
|         return !empty($attributes); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user