File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,8 @@ abstract class AbstractModel
13
13
{
14
14
/**
15
15
* Gets the string presentation of the object.
16
- *
17
- * @return string
18
16
*/
19
- public function __toString ()
17
+ public function __toString (): string
20
18
{
21
19
return json_encode (
22
20
ObjectSerializer::sanitizeForSerialization ($ this ),
@@ -32,17 +30,15 @@ public function __toString()
32
30
* @return mixed returns data which can be serialized by json_encode(), which is a value
33
31
* of any type other than a resource
34
32
*/
35
- public function jsonSerialize ()
33
+ public function jsonSerialize (): mixed
36
34
{
37
35
return ObjectSerializer::sanitizeForSerialization ($ this );
38
36
}
39
37
40
38
/**
41
39
* Gets a header-safe presentation of the object.
42
- *
43
- * @return string
44
40
*/
45
- public function toHeaderValue ()
41
+ public function toHeaderValue (): string
46
42
{
47
43
return json_encode (ObjectSerializer::sanitizeForSerialization ($ this ));
48
44
}
You can’t perform that action at this time.
0 commit comments