intelephense

1.14.41.16.1
lib/stub/json/json.php
lib/stub/json/json.php
+4−3
Index: package/lib/stub/json/json.php
===================================================================
--- package/lib/stub/json/json.php
+++ package/lib/stub/json/json.php
@@ -2,8 +2,9 @@
 //modified by Mewburn Projects Pty Ltd
 // Start of json v.1.3.1
 use __IDE\TentativeType;
 use __IDE\Pure;
+use __IDE\Language;
 
 /**
  * Objects implementing JsonSerializable
  * can customize their JSON representation when encoded with
@@ -129,9 +130,9 @@
  * and <b>NULL</b> respectively. <b>NULL</b> is returned if the
  * <i>json</i> cannot be decoded or if the encoded
  * data is deeper than the recursion limit.
  */
-function json_decode(string $json, ?bool $associative = null, int $depth = 512, int $flags = 0): mixed {}
+function json_decode(#[Language("JSON")] string $json, ?bool $associative = null, int $depth = 512, int $flags = 0): mixed {}
 
 /**
  * Returns the last error occurred
  * @link https://php.net/manual/en/function.json-last-error.php
@@ -231,15 +232,15 @@
  * @link https://php.net/manual/en/function.json-last-error-msg.php
  * @return string Returns the error message on success, "No error" if no error has occurred.
  * @since 5.5
  */
-#[Pure]
+#[Pure(true)]
 function json_last_error_msg(): string {}
 
 /**
  * @since 8.3
  */
-function json_validate(string $json, int $depth = 512, int $flags = 0): bool {}
+function json_validate(#[Language("JSON")] string $json, int $depth = 512, int $flags = 0): bool {}
 
 /**
  * All &lt; and &gt; are converted to \u003C and \u003E.
  * @link https://php.net/manual/en/json.constants.php