Skip to content

Commit 7b628a7

Browse files
committed
Fix errors for PHPStan level 3
1 parent 6d489c1 commit 7b628a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ jobs:
4949
run: composer install --no-progress --prefer-dist --optimize-autoloader
5050

5151
- name: Run PHPStan
52-
run: vendor/bin/phpstan.phar analyze src --level 2
52+
run: vendor/bin/phpstan.phar analyze src --level 3
5353

5454
- run: echo "🍏 This job's status is ${{ job.status }}."

src/Helper/AccessKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class AccessKey extends SplStack
3333
*
3434
* @param mixed $key
3535
*
36-
* @return string
36+
* @return AccessKey
3737
*/
3838
public static function create($key)
3939
{

src/Serializer/ArraySerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(array $params = [])
4747
*
4848
* @param \Art4\JsonApiClient\Accessable $data The data for serialization
4949
*
50-
* @return array
50+
* @return array|null
5151
*/
5252
public function serialize(Accessable $data)
5353
{

0 commit comments

Comments
 (0)