Skip to content

Commit af3c2cc

Browse files
committed
Suppress a Psalm InvalidArgument failure
I don't see this Psalm failure as an issue for the time being, so am ignoring it in this change, quite visibly so that it will be hard to miss, and attended to in the future.
1 parent 59c5c67 commit af3c2cc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/unit/Platform/SqliteTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ public function testGetQuoteValueSymbol(): void
7070
public function testQuoteValueRaisesNoticeWithoutPlatformSupport(): void
7171
{
7272
$raisedNotice = false;
73-
set_error_handler(function ($errno, $errstr) use (&$raisedNotice) {
73+
74+
/**
75+
* @psalm-suppress InvalidArgument
76+
*/
77+
set_error_handler(function (int $errno, string $errstr) use (&$raisedNotice) {
7478
$this->assertEquals(E_USER_NOTICE, $errno);
7579
$this->assertEquals(
7680
$errstr,
@@ -120,6 +124,10 @@ public function testQuoteTrustedValue(): void
120124
public function testQuoteValueList(): void
121125
{
122126
$raisedNotice = false;
127+
128+
/**
129+
* @psalm-suppress InvalidArgument
130+
*/
123131
set_error_handler(function ($errno, $errstr) use (&$raisedNotice) {
124132
$this->assertEquals(E_USER_NOTICE, $errno);
125133
$this->assertEquals(

0 commit comments

Comments
 (0)