Skip to content

Commit

Permalink
Remove casting
Browse files Browse the repository at this point in the history
  • Loading branch information
defunctl committed Oct 16, 2023
1 parent c447202 commit 95fe912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uplink/Auth/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private function register_nonce(): void {
* @param int $expiration Nonce expiration time in seconds.
*/
$expiration = apply_filters( 'stellarwp/uplink/' . Config::get_hook_prefix() . '/auth/nonce_expiration', 2100 );
$expiration = (int) absint( $expiration );
$expiration = absint( $expiration );

$this->container->singleton( Nonce::class, new Nonce( $expiration ) );
}
Expand Down

0 comments on commit 95fe912

Please sign in to comment.