intelephense
1.14.41.16.1
lib/stub/SPL/SPL_c1.phplib/stub/SPL/SPL_c1.php+31−1
Index: package/lib/stub/SPL/SPL_c1.php
===================================================================
--- package/lib/stub/SPL/SPL_c1.php
+++ package/lib/stub/SPL/SPL_c1.php
@@ -790,8 +790,9 @@
* </p>
* @param int &$wouldBlock [optional] <p>
* Set to 1 if the lock would block (EWOULDBLOCK errno condition).
* </p>
+ * @param-out int $wouldBlock
* @return bool true on success or false on failure.
*/
#[TentativeType]
public function flock(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $operation, &$wouldBlock = null): bool {}
@@ -905,9 +906,9 @@
#[LanguageLevelTypeAware(['7.4' => 'int|false'], default: 'int')]
#[TentativeType]
public function fwrite(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $data,
- #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $length = 0
+ #[LanguageLevelTypeAware(['8.0' => 'int', '8.5' => 'int|null'], default: '')] $length = null
): int|false {}
/**
* Gets information about the file
@@ -1509,8 +1510,21 @@
* @since 7.4
*/
#[TentativeType]
public function __debugInfo(): array {}
+
+ /**
+ * @return array
+ * @since 8.5
+ */
+ #[TentativeType]
+ public function __serialize(): array {}
+
+ /**
+ * @since 8.5
+ */
+ #[TentativeType]
+ public function __unserialize(array $data): void {}
}
/**
* @template TValue
@@ -1811,8 +1825,21 @@
* @since 7.4
*/
#[TentativeType]
public function __debugInfo(): array {}
+
+ /**
+ * @return array
+ * @since 8.5
+ */
+ #[TentativeType]
+ public function __serialize(): array {}
+
+ /**
+ * @since 8.5
+ */
+ #[TentativeType]
+ public function __unserialize(array $data): void {}
}
/**
* @template TValue
@@ -2072,8 +2099,9 @@
* </p>
* @return void
*/
#[TentativeType]
+ #[Deprecated(since: '8.5')]
public function attach(
#[LanguageLevelTypeAware(['8.0' => 'object'], default: '')] $object,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $info = null
): void {}
@@ -2086,8 +2114,9 @@
* </p>
* @return void
*/
#[TentativeType]
+ #[Deprecated(since: '8.5')]
public function detach(#[LanguageLevelTypeAware(['8.0' => 'object'], default: '')] $object): void {}
/**
* Checks if the storage contains a specific object
@@ -2097,8 +2126,9 @@
* </p>
* @return bool true if the object is in the storage, false otherwise.
*/
#[TentativeType]
+ #[Deprecated(since: '8.5')]
public function contains(#[LanguageLevelTypeAware(['8.0' => 'object'], default: '')] $object): bool {}
/**
* Adds all objects from another storage