summaryrefslogtreecommitdiffstats
path: root/tests/lib/Security
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-14 11:47:00 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-14 21:08:23 +0100
commitcf0a3399970eb00621e822923f17d3d52845e0a6 (patch)
treec7d0603711f70b29341e802e98821ca9089fa25c /tests/lib/Security
parent60f38d37fe5ca505258510adc1e106da54426510 (diff)
downloadnextcloud-server-cf0a3399970eb00621e822923f17d3d52845e0a6.tar.gz
nextcloud-server-cf0a3399970eb00621e822923f17d3d52845e0a6.zip
Make OC\Security\RateLimiting strict
* Add return types * Add scalar argument types * Made strict * Cleaned up phpstorm inspections Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Security')
-rw-r--r--tests/lib/Security/RateLimiting/Backend/MemoryCacheTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Security/RateLimiting/Backend/MemoryCacheTest.php b/tests/lib/Security/RateLimiting/Backend/MemoryCacheTest.php
index bacd2b7bf6f..098c40ba0e8 100644
--- a/tests/lib/Security/RateLimiting/Backend/MemoryCacheTest.php
+++ b/tests/lib/Security/RateLimiting/Backend/MemoryCacheTest.php
@@ -61,7 +61,7 @@ class MemoryCacheTest extends TestCase {
->expects($this->once())
->method('get')
->with('eea460b8d756885099c7f0a4c083bf6a745069ee4a301984e726df58fd4510bffa2dac4b7fd5d835726a6753ffa8343ba31c7e902bbef78fc68c2e743667cb4b')
- ->willReturn(false);
+ ->willReturn(null);
$this->assertSame(0, $this->memoryCache->getAttempts('Method', 'User', 123));
}
@@ -97,7 +97,7 @@ class MemoryCacheTest extends TestCase {
->expects($this->once())
->method('get')
->with('eea460b8d756885099c7f0a4c083bf6a745069ee4a301984e726df58fd4510bffa2dac4b7fd5d835726a6753ffa8343ba31c7e902bbef78fc68c2e743667cb4b')
- ->willReturn(false);
+ ->willReturn(null);
$this->cache
->expects($this->once())
->method('set')