Skip to content

Commit 0f5ea5d

Browse files
committed
chore: Suppress deprecation notices
1 parent a8a33fb commit 0f5ea5d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Claims/Claim.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public function matches($value, $strict = true)
138138
*
139139
* @return array
140140
*/
141+
#[\ReturnTypeWillChange]
141142
public function jsonSerialize()
142143
{
143144
return $this->toArray();

src/Payload.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ public function toArray()
160160
*
161161
* @return array
162162
*/
163+
#[\ReturnTypeWillChange]
163164
public function jsonSerialize()
164165
{
165166
return $this->toArray();
@@ -192,6 +193,7 @@ public function __toString()
192193
* @param mixed $key
193194
* @return bool
194195
*/
196+
#[\ReturnTypeWillChange]
195197
public function offsetExists($key)
196198
{
197199
return Arr::has($this->toArray(), $key);
@@ -216,6 +218,7 @@ public function offsetGet($key)
216218
*
217219
* @throws \Tymon\JWTAuth\Exceptions\PayloadException
218220
*/
221+
#[\ReturnTypeWillChange]
219222
public function offsetSet($key, $value)
220223
{
221224
throw new PayloadException('The payload is immutable');
@@ -229,6 +232,7 @@ public function offsetSet($key, $value)
229232
*
230233
* @throws \Tymon\JWTAuth\Exceptions\PayloadException
231234
*/
235+
#[\ReturnTypeWillChange]
232236
public function offsetUnset($key)
233237
{
234238
throw new PayloadException('The payload is immutable');
@@ -239,6 +243,7 @@ public function offsetUnset($key)
239243
*
240244
* @return int
241245
*/
246+
#[\ReturnTypeWillChange]
242247
public function count()
243248
{
244249
return count($this->toArray());

0 commit comments

Comments
 (0)