Skip to content

Commit

Permalink
fix: Fix a few bugs with the cookie identity resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
ollieread committed Jan 27, 2025
1 parent 4ab8837 commit c82761f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sprout.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ final class Sprout
/**
* @var \Sprout\Support\ResolutionHook|null
*/
private ?ResolutionHook $currentHook;
private ?ResolutionHook $currentHook = null;

/**
* Create a new instance
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Http/Resolvers/CookieIdentityResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ public function canResolveFromRequest(): void
->once();
});

$resolver->setSprout($this->getSprout($this->mockApp()));

$this->assertSame('my-identifier', $resolver->resolveFromRequest($request, $tenancy));
}

Expand Down

0 comments on commit c82761f

Please sign in to comment.