Skip to content

Commit 4d08616

Browse files
committed
suppress warnings on fringe test cases #11
1 parent 19c91b8 commit 4d08616

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/Api/ApiValueTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public static function provideIncompleteJsonObjects(): array
123123
$return[] = ['{"type":"int","name":"TRD2cpKy"}'];
124124
$return[] = ['{"type":true,"name":"H5vNFNkl","optional":true}'];
125125
$return[] = ['{"type":"int","name":711,"direction":"output"}'];
126+
/** @noinspection PhpObjectFieldsAreOnlyWrittenInspection */
126127
$obj = new stdClass();
127128
$obj->type = Value::TYPE_BOOLEAN;
128129
$obj->name = '9vQWkdZF';

tests/Util/JsonSerializableTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ public function testSetInvalidData()
176176
$store = new PublicJsonSerializable();
177177
$this->expectException(InvalidArgumentException::class);
178178
$this->expectExceptionMessage('Invalid value!');
179+
/** @noinspection PhpParamsInspection */
179180
$store->set('AxiBKNAu', new stdClass());
180181
}
181182

0 commit comments

Comments
 (0)