intelephense
1.14.41.16.1
lib/stub/Core/Core.phplib/stub/Core/Core.php+24−5
Index: package/lib/stub/Core/Core.php
===================================================================
--- package/lib/stub/Core/Core.php
+++ package/lib/stub/Core/Core.php
@@ -430,19 +430,18 @@
* </p>
* @param string $property <p>
* The name of the property
* </p>
- * @return bool true if the property exists, false if it doesn't exist or
- * null in case of an error.
+ * @return bool true if the property exists, false otherwise
*/
#[Pure]
function property_exists($object_or_class, string $property): bool {}
/**
* Checks if the trait exists
* @param string $trait Name of the trait to check
* @param bool $autoload [optional] Whether to autoload if not already loaded.
- * @return bool Returns TRUE if trait exists, FALSE if not, NULL in case of an error.
+ * @return bool Returns true if trait exists, false otherwise
* @link https://secure.php.net/manual/en/function.trait-exists.php
* @since 5.4
*/
function trait_exists(string $trait, bool $autoload = true): bool {}
@@ -604,9 +603,9 @@
* @return array an associative array of defined object accessible non-static properties
* for the specified <i>object</i> in scope. If a property have
* not been assigned a value, it will be returned with a null value.
*/
-#[Pure]
+#[Pure(true)]
function get_object_vars(object $object): array {}
/**
* Gets the class methods' names
@@ -708,8 +707,12 @@
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function restore_error_handler(): bool {}
/**
+ * @since 8.5
+ */
+function get_error_handler(): ?callable {}
+/**
* Sets a user-defined exception handler function
* @link https://php.net/manual/en/function.set-exception-handler.php
* @param callable|null $callback <p>
* Name of the function to be called when an uncaught exception occurs.
@@ -724,8 +727,13 @@
*/
function set_exception_handler(?callable $callback) {}
/**
+ * @since 8.5
+ */
+function get_exception_handler(): ?callable {}
+
+/**
* Restores the previously defined exception handler function
* @link https://php.net/manual/en/function.restore-exception-handler.php
* @return bool This function always returns true.
*/
@@ -812,8 +820,9 @@
* will return a string representing its type. If the type is not identified
* by this function, the return value will be the string
* Unknown.
*/
+#[Pure(true)]
function get_resource_type($resource): string {}
/**
* Returns an array with the names of all modules compiled and loaded
@@ -1033,8 +1042,9 @@
* </td>
* </tr>
* </table>
*/
+#[Pure(true)]
function debug_backtrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, int $limit = 0): array {}
/**
* Prints a backtrace
@@ -1140,5 +1150,14 @@
/**
* @since 8.4
*/
-function die(string|int $status = 0): never {}
\ No newline at end of file
+function die(string|int $status = 0): never {}
+
+/**
+ * @template TObject of object
+ * @param TObject $object
+ * @param array $withProperties [optional]
+ * @return TObject
+ * @since 8.5
+ */
+function clone(object $object, array $withProperties = []): object {}
\ No newline at end of file