Skip to content

Commit 5a92639

Browse files
committed
CI: increase PHPStan level to 5
1 parent 5d6aa80 commit 5a92639

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 0
2+
level: 5
33
paths:
44
- src
55
- tests

src/Api/AbstractApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,6 @@ protected function delete($path, array $parameters = [], array $headers = [])
125125
*/
126126
protected function createJsonBody(array $parameters)
127127
{
128-
return (count($parameters) === 0) ? null : json_encode($parameters, empty($parameters) ? JSON_FORCE_OBJECT : 0);
128+
return (count($parameters) === 0) ? null : json_encode($parameters);
129129
}
130130
}

0 commit comments

Comments
 (0)