Skip to content

Commit 250df35

Browse files
committed
Added phpstan-ignore to explicitly check for exception
1 parent b6430bf commit 250df35

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

tests/system/Cache/Handlers/ApcuHandlerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public function testRememberWithTTLCallableAndMultipleParameters(): void
132132
$this->expectException(InvalidArgumentException::class);
133133
$this->expectExceptionMessage('Argument #2 ($ttl) must accept 0 or 1 parameter, 2 given.');
134134

135+
/** @phpstan-ignore argument.type */
135136
$this->handler->remember(self::$key1, static fn ($a, $b): int => 2, static fn (): string => 'value');
136137
}
137138

tests/system/Cache/Handlers/FileHandlerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ public function testRememberWithTTLCallableAndMultipleParameters(): void
184184
$this->expectException(InvalidArgumentException::class);
185185
$this->expectExceptionMessage('Argument #2 ($ttl) must accept 0 or 1 parameter, 2 given.');
186186

187+
/** @phpstan-ignore argument.type */
187188
$this->handler->remember(self::$key1, static fn ($a, $b): int => 2, static fn (): string => 'value');
188189
}
189190

tests/system/Cache/Handlers/MemcachedHandlerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public function testRememberWithTTLCallableAndMultipleParameters(): void
139139
$this->expectException(InvalidArgumentException::class);
140140
$this->expectExceptionMessage('Argument #2 ($ttl) must accept 0 or 1 parameter, 2 given.');
141141

142+
/** @phpstan-ignore argument.type */
142143
$this->handler->remember(self::$key1, static fn ($a, $b): int => 2, static fn (): string => 'value');
143144
}
144145

tests/system/Cache/Handlers/PredisHandlerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ public function testRememberWithTTLCallableAndMultipleParameters(): void
149149
$this->expectException(InvalidArgumentException::class);
150150
$this->expectExceptionMessage('Argument #2 ($ttl) must accept 0 or 1 parameter, 2 given.');
151151

152+
/** @phpstan-ignore argument.type */
152153
$this->handler->remember(self::$key1, static fn ($a, $b): int => 2, static fn (): string => 'value');
153154
}
154155

tests/system/Cache/Handlers/RedisHandlerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public function testRememberWithTTLCallableAndMultipleParameters(): void
150150
$this->expectException(InvalidArgumentException::class);
151151
$this->expectExceptionMessage('Argument #2 ($ttl) must accept 0 or 1 parameter, 2 given.');
152152

153+
/** @phpstan-ignore argument.type */
153154
$this->handler->remember(self::$key1, static fn ($a, $b): int => 2, static fn (): string => 'value');
154155
}
155156

0 commit comments

Comments
 (0)