File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,14 @@ public function getResponseStatusCode(): int
89
89
return $ this ->response ->getStatusCode ();
90
90
}
91
91
92
- public function getLastCalledUrl (): mixed
92
+ public function getLastCalledUrl (): string
93
93
{
94
- return $ this ->response ->getInfo ('url ' );
94
+ if (is_scalar ($ this ->response ->getInfo ('url ' ))) {
95
+ return strval ($ this ->response ->getInfo ('url ' ));
96
+ }
97
+
98
+ return "" ;
99
+
95
100
}
96
101
97
102
public function isOk (): bool
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public function toArray(): array;
36
36
37
37
public function data (): StoryblokDataInterface ;
38
38
39
- public function getLastCalledUrl (): mixed ;
39
+ public function getLastCalledUrl (): string ;
40
40
41
41
public function isOk (): bool ;
42
42
You can’t perform that action at this time.
0 commit comments