Skip to content

Commit 1a281ec

Browse files
committed
cs
1 parent cc1972e commit 1a281ec

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Security/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ class User
3838
/** @var string default role for authenticated user without own identity */
3939
public $authenticatedRole = 'authenticated';
4040

41-
/** @var callable[] function (User $sender); Occurs when the user is successfully logged in */
41+
/** @var callable[] function (User $sender): void; Occurs when the user is successfully logged in */
4242
public $onLoggedIn;
4343

44-
/** @var callable[] function (User $sender); Occurs when the user is logged out */
44+
/** @var callable[] function (User $sender): void; Occurs when the user is logged out */
4545
public $onLoggedOut;
4646

4747
/** @var IUserStorage Session storage for current user */

tests/Security/MockUserStorage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
class MockUserStorage implements Nette\Security\IUserStorage

tests/bootstrap.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
// The Nette Tester command-line runner can be
@@ -14,7 +15,7 @@
1415
date_default_timezone_set('Europe/Prague');
1516

1617

17-
function test(\Closure $function)
18+
function test(\Closure $function): void
1819
{
1920
$function();
2021
}

0 commit comments

Comments
 (0)