create-prisma-php-app 3.5.2 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -76,14 +76,14 @@ class PHPX implements IPHPX
|
|
|
76
76
|
* Emit a client-side dispatch call.
|
|
77
77
|
*
|
|
78
78
|
* @param non-empty-string|null $name Reactive key (e.g. "myVar", "voucher.total", or "app.s9ggniz.myVar").
|
|
79
|
-
* @param
|
|
79
|
+
* @param string $value Raw JS inserted verbatim (variable, expression, or pre-JSON-encoded value).
|
|
80
80
|
* @param array{
|
|
81
81
|
* scope?: 'current'|'parent'|'root'|string[]
|
|
82
82
|
* } $options Dispatch options (defaults to ['scope' => 'current']).
|
|
83
83
|
*
|
|
84
84
|
* @return string JavaScript snippet like: pphp.dispatchEvent("myVar", 123, {"scope":"current"});
|
|
85
85
|
*/
|
|
86
|
-
protected function dispatchEvent(?string $name, $value, array $options = []): string
|
|
86
|
+
protected function dispatchEvent(?string $name, string $value, array $options = []): string
|
|
87
87
|
{
|
|
88
88
|
$name = trim((string) $name);
|
|
89
89
|
if ($name === '') {
|