Skip to content

Commit e07b336

Browse files
committed
Fix errors for PHPStan level 4 and 5
1 parent 7b628a7 commit e07b336

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
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 3
52+
run: vendor/bin/phpstan.phar analyze src --level 5
5353

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

src/V1/Document.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function get($key)
9999
/**
100100
* Parse the data value
101101
*
102-
* @param null|object $data Data value
102+
* @param null|object|array $data Data value
103103
*
104104
* @throws ValidationException If $data isn't null or an object
105105
*

src/V1/DocumentLink.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public function get($key)
130130
/**
131131
* Set a pagination link
132132
*
133-
* @param string $name The name of the link
134-
* @param string $value The link
133+
* @param string $name The name of the link
134+
* @param string|object|null|mixed $value The link
135135
*/
136136
private function setPaginationLink($name, $value)
137137
{
@@ -152,8 +152,8 @@ private function setPaginationLink($name, $value)
152152
/**
153153
* Set a link
154154
*
155-
* @param string $name The name of the link
156-
* @param string $link The link
155+
* @param string $name The name of the link
156+
* @param string|object|mixed $link The link
157157
*/
158158
private function setLink($name, $link)
159159
{

src/V1/ErrorLink.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public function get($key)
9090
/**
9191
* Set a link
9292
*
93-
* @param string $name The name of the link
94-
* @param string $link The link
93+
* @param string $name The name of the link
94+
* @param string|object|mixed $link The link
9595
*/
9696
private function setLink($name, $link)
9797
{

src/V1/RelationshipLink.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ public function get($key)
132132
/**
133133
* Set a pagination link
134134
*
135-
* @param string $name The name of the link
136-
* @param string $value The link
135+
* @param string $name The name of the link
136+
* @param string|null|mixed $value The link
137137
*/
138138
private function setPaginationLink($name, $value)
139139
{
@@ -150,8 +150,8 @@ private function setPaginationLink($name, $value)
150150
/**
151151
* Set a link
152152
*
153-
* @param string $name The name of the link
154-
* @param string $link The link
153+
* @param string $name The name of the link
154+
* @param string|object|mixed $link The link
155155
*/
156156
private function setLink($name, $link)
157157
{

src/V1/ResourceItemLink.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public function get($key)
6767
/**
6868
* Set a link
6969
*
70-
* @param string $name The Name
71-
* @param string|object $link The Link
70+
* @param string $name The Name
71+
* @param string|object|mixed $link The Link
7272
*/
7373
private function setLink($name, $link)
7474
{

0 commit comments

Comments
 (0)