Skip to content

Commit 1d69f82

Browse files
committed
compatibility with latest nette/http
1 parent 18d47c6 commit 1d69f82

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"require-dev": {
2222
"nette/di": "^2.4 || ^3.0",
23-
"nette/http": "^3.0",
23+
"nette/http": "^3.0.0-beta",
2424
"nette/tester": "^2.0",
2525
"tracy/tracy": "^2.4"
2626
},

src/Security/IUserStorage.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,10 @@ function setIdentity(?IIdentity $identity);
4646
function getIdentity(): ?IIdentity;
4747

4848
/**
49-
* Enables log out from the persistent storage after inactivity.
50-
* @param string|null like '20 minutes'
51-
* @param int flag IUserStorage::CLEAR_IDENTITY
49+
* Enables log out from the persistent storage after inactivity (like '20 minutes'). Accepts flag IUserStorage::CLEAR_IDENTITY.
5250
* @return static
5351
*/
54-
function setExpiration($time, int $flags = 0);
52+
function setExpiration(?string $expire, int $flags = 0);
5553

5654
/**
5755
* Why was user logged out?

tests/Security/MockUserStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getIdentity(): ?Nette\Security\IIdentity
3232
}
3333

3434

35-
public function setExpiration($time, int $flags = 0)
35+
public function setExpiration(?string $time, int $flags = 0)
3636
{
3737
}
3838

0 commit comments

Comments
 (0)