Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandedeyne authored and actions-user committed Oct 2, 2023
1 parent b891874 commit 21e8cea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/AggregateRoots/AggregateRoot.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ protected function getPartialsState(): array
foreach ($this->resolvePartials() as $partial) {
$partials[$partial::class] = $partial->getState();
}

return $partials;
}

Expand All @@ -219,7 +220,7 @@ protected function restorePartialState(string $key, array $state): void
protected function useState(array $state): void
{
foreach ($state as $key => $value) {
if (class_exists($key)) {
if (class_exists($key)) {
$this->$key = $this->restorePartialState($key, $value);
} else {
$this->$key = $value;
Expand Down
1 change: 0 additions & 1 deletion tests/AggregateRootTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use function PHPUnit\Framework\assertEmpty;
use function PHPUnit\Framework\assertEquals;
use function PHPUnit\Framework\assertInstanceOf;
use function PHPUnit\Framework\assertNotEmpty;
use function PHPUnit\Framework\assertTrue;

use Spatie\EventSourcing\AggregateRoots\AggregateRoot;
Expand Down

0 comments on commit 21e8cea

Please sign in to comment.