Skip to content

Commit

Permalink
upd version
Browse files Browse the repository at this point in the history
  • Loading branch information
Яценко Андрей committed Jun 10, 2022
1 parent 062356d commit e6b86b2
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 131 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yzen.dev/plain-to-class",
"version": "1.1.3",
"version": "1.2",
"description": "Class-transformer to transform your dataset into a structured object",
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
168 changes: 43 additions & 125 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/DTO/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

namespace ClassTransformer\DTO;

use ClassTransformer\Attributes\ConvertArray;
use ReflectionNamedType;
use ReflectionProperty;
use ReflectionType;
use ReflectionProperty;
use ReflectionNamedType;
use ReflectionUnionType;

/**
Expand Down Expand Up @@ -96,9 +95,9 @@ public function existsAttribute(?string $name = null): bool
/**
* @param string|null $name
*
* @return \ReflectionAttribute[]|null
* @return null|array<mixed>
*/
public function getAttributes(?string $name = null)
public function getAttributes(?string $name = null): ?array
{
$attr = $this->property->getAttributes($name);
if (!empty($attr)) {
Expand Down

0 comments on commit e6b86b2

Please sign in to comment.