Skip to content

Commit 9b6bd9c

Browse files
author
B.J. Scharp
committed
fix: Corrected metadata & stub for SplHeap & SplFixedArray
1 parent 28f6ffe commit 9b6bd9c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

resources/functionMetadata.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -653,10 +653,10 @@
653653
'SplFileObject::fseek' => ['hasSideEffects' => true],
654654
'SplFileObject::ftruncate' => ['hasSideEffects' => true],
655655
'SplFileObject::fwrite' => ['hasSideEffects' => true],
656-
'SplFixedArray::extract' => ['hasSideEffects' => true],
657-
'SplHead::extract' => ['hasSideEffects' => true],
658-
'SplHead::insert' => ['hasSideEffects' => true],
659-
'SplHead::recoverFromCorruption' => ['hasSideEffects' => true],
656+
'SplFixedArray::setSize' => ['hasSideEffects' => true],
657+
'SplHeap::extract' => ['hasSideEffects' => true],
658+
'SplHeap::insert' => ['hasSideEffects' => true],
659+
'SplHeap::recoverFromCorruption' => ['hasSideEffects' => true],
660660
'SplObjectStorage::addAll' => ['hasSideEffects' => true],
661661
'SplObjectStorage::attach' => ['hasSideEffects' => true],
662662
'SplObjectStorage::detach' => ['hasSideEffects' => true],

stubs/ArrayObject.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class SplFixedArray implements Iterator, IteratorAggregate, ArrayAccess, Countab
9999
* @param array<int, TInput> $array
100100
* @return SplFixedArray<TInput>
101101
*/
102-
public static function fromArray(array $array, bool $save_indexes = true): SplFixedArray { }
102+
public static function fromArray(array $array, bool $preserveKeys = true): SplFixedArray { }
103103

104104
/**
105105
* @return array<int, TValue|null>

0 commit comments

Comments
 (0)