Skip to content

Commit

Permalink
Merge pull request #101 from laminas/renovate/lock-file-maintenance
Browse files Browse the repository at this point in the history
Lock file maintenance
  • Loading branch information
gsteel committed Dec 14, 2022
2 parents ef38253 + 4b95e81 commit acc1827
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 29 deletions.
98 changes: 73 additions & 25 deletions composer.lock

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

8 changes: 6 additions & 2 deletions src/Aggregate/ExtractEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
/**
* Event triggered when the {@see AggregateHydrator} extracts
* data from an object
*
* @template TTarget of object
* @extends Event<TTarget, array<empty, empty>>
* @final
*/
class ExtractEvent extends Event
{
Expand All @@ -24,10 +28,10 @@ class ExtractEvent extends Event
/** @var mixed[] Data being extracted from the $extractionObject */
protected $extractedData = [];

/** @psalm-param TTarget $target */
public function __construct(object $target, protected object $extractionObject)
{
parent::__construct();
$this->target = $target;
parent::__construct(self::EVENT_EXTRACT, $target, []);
}

/**
Expand Down
7 changes: 5 additions & 2 deletions src/Aggregate/HydrateEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
* data into an object
*
* @template T of object
* @template TTarget of object
* @extends Event<TTarget, array<empty, empty>>
* @final
*/
class HydrateEvent extends Event
{
Expand All @@ -23,12 +26,12 @@ class HydrateEvent extends Event

/**
* @param mixed[] $hydrationData Data being used to hydrate the $hydratedObject
* @psalm-param TTarget $target
* @psalm-param T $hydratedObject
*/
public function __construct(object $target, protected object $hydratedObject, protected array $hydrationData)
{
parent::__construct();
$this->target = $target;
parent::__construct(self::EVENT_HYDRATE, $target, []);
}

/**
Expand Down

0 comments on commit acc1827

Please sign in to comment.