mirror of
https://github.com/itflow-org/itflow
synced 2026-06-16 06:41:06 +00:00
Allow PHP-8.2 and up Compatibility instead of just PHP-8.4
This commit is contained in:
4
plugins/vendor/illuminate/support/Js.php
vendored
4
plugins/vendor/illuminate/support/Js.php
vendored
@@ -93,6 +93,8 @@ class Js implements Htmlable, Stringable
|
||||
/**
|
||||
* Encode the given data as JSON.
|
||||
*
|
||||
* Invalid UTF-8 sequences are replaced with <20> instead of throwing.
|
||||
*
|
||||
* @param mixed $data
|
||||
* @param int $flags
|
||||
* @param int $depth
|
||||
@@ -110,7 +112,7 @@ class Js implements Htmlable, Stringable
|
||||
$data = $data->toArray();
|
||||
}
|
||||
|
||||
return json_encode($data, $flags | static::REQUIRED_FLAGS, $depth);
|
||||
return json_encode($data, $flags | static::REQUIRED_FLAGS | JSON_INVALID_UTF8_SUBSTITUTE, $depth);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user