Skip to content

Commit

Permalink
Firewall: callbacks are marked as invoked later
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Jun 19, 2024
1 parent f75949b commit af9ef9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased](https://github.com/orisai/auth/compare/2.0.2...v2.x)

### Changed

- `Firewall`
- callbacks are marked as `@param-later-invoked-callable`

## [2.0.2](https://github.com/orisai/auth/compare/2.0.1...2.0.2) - 2024-03-08

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions src/Authentication/Firewall.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function login(Identity $identity): void;

/**
* @param Closure(): void $callback
* @param-later-invoked-callable $callback
*/
public function addLoginCallback(Closure $callback): void;

Expand All @@ -41,6 +42,7 @@ public function logout(): void;

/**
* @param Closure(): void $callback
* @param-later-invoked-callable $callback
*/
public function addLogoutCallback(Closure $callback): void;

Expand Down

0 comments on commit af9ef9a

Please sign in to comment.