Skip to content

Commit

Permalink
Merge pull request #31 from nutgram/analysis-jln072
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
sergix44 authored Dec 30, 2023
2 parents bc2a371 + 9a839d7 commit a7fda2e
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/Annotation/Alias.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

/**
* @Annotation
*
* @Target({"PROPERTY"})
*
* @NamedArgumentConstructor
*
* @Attributes({
Expand Down
2 changes: 0 additions & 2 deletions src/Annotation/ArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@

/**
* @Annotation
*
* @Target({"PROPERTY"})
*
* @NamedArgumentConstructor
*
* @Attributes({
Expand Down
1 change: 0 additions & 1 deletion src/Annotation/ConcreteResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

/**
* @Annotation
*
* @Target({"CLASS"})
*/
#[Attribute(Attribute::TARGET_CLASS)]
Expand Down
1 change: 0 additions & 1 deletion src/Annotation/Mutate.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

/**
* @Annotation
*
* @Target({"PROPERTY"})
*/
#[Attribute(Attribute::TARGET_PROPERTY)]
Expand Down
1 change: 0 additions & 1 deletion src/Annotation/SkipConstructor.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

/**
* @Annotation
*
* @Target({"CLASS"})
*/
#[Attribute(Attribute::TARGET_CLASS)]
Expand Down
1 change: 0 additions & 1 deletion src/Annotation/UnionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

/**
* @Annotation
*
* @Target({"PROPERTY"})
*/
#[Attribute(Attribute::TARGET_PROPERTY)]
Expand Down
2 changes: 2 additions & 0 deletions src/Hydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use SergiX44\Hydrator\Annotation\SkipConstructor;
use SergiX44\Hydrator\Annotation\UnionResolver;
use SergiX44\Hydrator\Exception\InvalidObjectException;

use function array_key_exists;
use function class_exists;
use function ctype_digit;
Expand All @@ -37,6 +38,7 @@
use function is_subclass_of;
use function sprintf;
use function strtotime;

use const FILTER_NULL_ON_FAILURE;
use const FILTER_VALIDATE_BOOLEAN;
use const FILTER_VALIDATE_FLOAT;
Expand Down
2 changes: 1 addition & 1 deletion tests/HydratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ public function testHydrateArrayAbstractProperty(): void
public function testHydrateArrayAbstractPropertyWithObject(): void
{
$o = (new Hydrator())->hydrate(new ObjectWithArrayOfAbstracts(), [
'value' => [(object)[
'value' => [(object) [
'type' => 'jack',
'sweetness' => null,
'category' => 'brandy',
Expand Down

0 comments on commit a7fda2e

Please sign in to comment.