From cf0a3399970eb00621e822923f17d3d52845e0a6 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sun, 14 Jan 2018 11:47:00 +0100 Subject: Make OC\Security\RateLimiting strict * Add return types * Add scalar argument types * Made strict * Cleaned up phpstorm inspections Signed-off-by: Roeland Jago Douma --- tests/lib/Security/RateLimiting/Backend/MemoryCacheTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/lib/Security') 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') -- cgit v1.2.3