/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
php-8.5.0
ext/spl/spl_fixedarray.stub.php
62 строки
2 KB
Niels Dossche
Make SplFixedArray::jsonSerialize() an implementation alias of SplFixedArray::toArray() (#18191)
30 мар 2025, 19:09
Не верифицирован
30 мар 2025, 19:09
ce5d2f6
Код
Авторство
О чём код?
<?php /** @generate-class-entries */ class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable, JsonSerializable { public function __construct(int $size = 0) {} /** @tentative-return-type */ #[\Deprecated(since: '8.4', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')] public function __wakeup(): void {} public function __serialize(): array {} public function __unserialize(array $data): void {} /** @tentative-return-type */ public function count(): int {} /** @tentative-return-type */ public function toArray(): array {} /** @tentative-return-type */ public static function fromArray(array $array, bool $preserveKeys = true): SplFixedArray {} /** @tentative-return-type */ public function getSize(): int {} /** @tentative-return-type */ public function setSize(int $size): true {} /** * @param int $index * @tentative-return-type */ public function offsetExists($index): bool {} /** * @param int $index * @tentative-return-type */ public function offsetGet($index): mixed {} /** * @param int $index * @tentative-return-type */ public function offsetSet($index, mixed $value): void {} /** * @param int $index * @tentative-return-type */ public function offsetUnset($index): void {} public function getIterator(): Iterator {} /** * @implementation-alias SplFixedArray::toArray */ public function jsonSerialize(): array {} }