Skip to content

Commit e6b86b2

Browse files
author
Яценко Андрей
committed
upd version
1 parent 062356d commit e6b86b2

File tree

3 files changed

+48
-131
lines changed

3 files changed

+48
-131
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yzen.dev/plain-to-class",
3-
"version": "1.1.3",
3+
"version": "1.2",
44
"description": "Class-transformer to transform your dataset into a structured object",
55
"minimum-stability": "dev",
66
"prefer-stable": true,

composer.lock

Lines changed: 43 additions & 125 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/DTO/Property.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
namespace ClassTransformer\DTO;
44

5-
use ClassTransformer\Attributes\ConvertArray;
6-
use ReflectionNamedType;
7-
use ReflectionProperty;
85
use ReflectionType;
6+
use ReflectionProperty;
7+
use ReflectionNamedType;
98
use ReflectionUnionType;
109

1110
/**
@@ -96,9 +95,9 @@ public function existsAttribute(?string $name = null): bool
9695
/**
9796
* @param string|null $name
9897
*
99-
* @return \ReflectionAttribute[]|null
98+
* @return null|array<mixed>
10099
*/
101-
public function getAttributes(?string $name = null)
100+
public function getAttributes(?string $name = null): ?array
102101
{
103102
$attr = $this->property->getAttributes($name);
104103
if (!empty($attr)) {

0 commit comments

Comments
 (0)