We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e48218 commit c14d1e1Copy full SHA for c14d1e1
src/WebView/WebView.php
@@ -7,6 +7,7 @@
7
use Boson\Application;
8
use Boson\Component\Http\Request;
9
use Boson\Component\Saucer\SaucerInterface;
10
+use Boson\Component\Uri\Uri;
11
use Boson\Contracts\EventListener\EventListenerInterface;
12
use Boson\Contracts\Id\IdentifiableInterface;
13
use Boson\Contracts\Uri\UriInterface;
@@ -80,7 +81,13 @@ final class WebView implements
80
81
* ```
82
*/
83
get {
- $result = $this->saucer->saucer_webview_url($this->id->ptr);
84
+ $result = $this->saucer->saucer_webview_url($this->id->ptr, \FFI::addr(
85
+ $error = $this->saucer->new('int'),
86
+ ));
87
+
88
+ if ($error->cdata !== 0) {
89
+ return new Uri();
90
+ }
91
92
try {
93
return Request::castUrl(\FFI::string($result));
0 commit comments