LazyCollection

Illuminate\Support\LazyCollection

class src/Illuminate/Collections/LazyCollection.php

__construct

v11.0.0 以前から

__construct($source = null)
@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue>|(Closure(): \Generator<TKey, TValue, mixed, void>)|self<TKey, TValue>|array<TKey, TValue>|null $source
  1. v11.0.0 追加
    変更後
    __construct($source = null) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue>|(Closure(): \Generator<TKey, TValue, mixed, void>)|self<TKey, TValue>|array<TKey, TValue>|null $source, @return void]
  2. v12.4.0 シグネチャ変更
    変更前
    __construct($source = null) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue>|(Closure(): \Generator<TKey, TValue, mixed, void>)|self<TKey, TValue>|array<TKey, TValue>|null $source, @return void]
    変更後
    __construct($source = null) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue>|(Closure(): \Generator<TKey, TValue, mixed, void>)|self<TKey, TValue>|array<TKey, TValue>|null $source]

after

v11.11.0 から

after($value, $strict = false)
@param TValue|(callable(TValue,TKey): bool) $value
@param bool $strict
@return TValue|null
  1. v11.11.0 追加
    変更後
    after($value, $strict = false) [@param TValue|(callable(TValue,TKey): bool) $value, @param bool $strict, @return TValue|null]

all

v11.0.0 以前から

all()
@return array<TKey, TValue>
  1. v11.0.0 追加
    変更後
    all() [@return array<TKey, TValue>]

avg

v11.0.0 以前から

v11.8.0 で削除

  1. v11.0.0 追加
    変更後
    avg($callback = null) [@param (callable(TValue): float|int)|string|null $callback, @return float|int|null]
  2. v11.8.0 削除
    変更前
    avg($callback = null) [@param (callable(TValue): float|int)|string|null $callback, @return float|int|null]

before

v11.11.0 から

before($value, $strict = false)
@param TValue|(callable(TValue,TKey): bool) $value
@param bool $strict
@return TValue|null
  1. v11.11.0 追加
    変更後
    before($value, $strict = false) [@param TValue|(callable(TValue,TKey): bool) $value, @param bool $strict, @return TValue|null]

chunk

v11.0.0 以前から

chunk($size, $preserveKeys = true)
@param int $size
@param bool $preserveKeys
@return ($preserveKeys is true ? static<int, static> : static<int, static<int, TValue>>)
  1. v11.0.0 追加
    変更後
    chunk($size) [@param int $size, @return static<int, static>]
  2. v12.2.0 シグネチャ変更
    変更前
    chunk($size) [@param int $size, @return static<int, static>]
    変更後
    chunk($size, $preserveKeys = true) [@param int $size, @param bool $preserveKeys, @return ($preserveKeys is true ? static<int, static> : static<int, static<int, TValue>>)]

chunkWhile

v11.0.0 以前から

chunkWhile(callable $callback)
@param callable(TValue, TKey, Collection<TKey, TValue>): bool $callback
@return static<int, static<TKey, TValue>>
  1. v11.0.0 追加
    変更後
    chunkWhile(callable $callback) [@param callable(TValue, TKey, Collection<TKey, TValue>): bool $callback, @return static<int, static<int, TValue>>]
  2. v12.8.0 シグネチャ変更
    変更前
    chunkWhile(callable $callback) [@param callable(TValue, TKey, Collection<TKey, TValue>): bool $callback, @return static<int, static<int, TValue>>]
    変更後
    chunkWhile(callable $callback) [@param callable(TValue, TKey, Collection<TKey, TValue>): bool $callback, @return static<int, static<TKey, TValue>>]

collapse

v11.0.0 以前から

collapse()
@return static<int, mixed>
  1. v11.0.0 追加
    変更後
    collapse() [@return static<int, mixed>]

collapseWithKeys

v11.20.0 から

collapseWithKeys()
@return static<mixed, mixed>
  1. v11.20.0 追加
    変更後
    collapseWithKeys() [@return static<mixed, mixed>]

combine

v11.0.0 以前から

combine($values)
@param \IteratorAggregate<array-key, TCombineValue>|array<array-key, TCombineValue>|(callable(): \Generator<array-key, TCombineValue>) $values
@return static<TValue, TCombineValue>
  1. v11.0.0 追加
    変更後
    combine($values) [@param \IteratorAggregate<array-key, TCombineValue>|array<array-key, TCombineValue>|(callable(): \Generator<array-key, TCombineValue>) $values, @return static<TValue, TCombineValue>]

concat

v11.0.0 以前から

concat($source)
@param iterable<TConcatKey, TConcatValue> $source
@return static<TKey|TConcatKey, TValue|TConcatValue>
  1. v11.0.0 追加
    変更後
    concat($source) [@param iterable<array-key, TValue> $source, @return static]
  2. v11.0.8 シグネチャ変更
    変更前
    concat($source) [@param iterable<array-key, TValue> $source, @return static]
    変更後
    concat($source) [@param iterable<TConcatKey, TConcatValue> $source, @return static<TKey|TConcatKey, TValue|TConcatValue>]

contains

v11.0.0 以前から

contains($key, $operator = null, $value = null)
@param (callable(TValue, TKey): bool)|TValue|string $key
@param mixed $operator
@param mixed $value
@return bool
  1. v11.0.0 追加
    変更後
    contains($key, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|TValue|string $key, @param mixed $operator, @param mixed $value, @return bool]

containsManyItems

v12.46.0 から

@deprecated

containsManyItems(): bool
@return bool
  1. v12.46.0 追加
    変更後
    containsManyItems(): bool [@return bool]
  2. v12.50.0 非推奨
    変更前
    containsManyItems(): bool [@return bool]
    変更後
    containsManyItems(): bool [@return bool]

containsOneItem

v11.0.0 以前から

@deprecated

containsOneItem(?callable $callback = null): bool
@param (callable(TValue, TKey): bool)|null $callback
@return bool
  1. v11.0.0 追加
    変更後
    containsOneItem() [@return bool]
  2. v12.49.0 シグネチャ変更
    変更前
    containsOneItem() [@return bool]
    変更後
    containsOneItem(?callable $callback = null): bool [@param (callable(TValue, TKey): bool)|null $callback, @return bool]
  3. v12.49.0 非推奨
    変更前
    containsOneItem() [@return bool]
    変更後
    containsOneItem(?callable $callback = null): bool [@param (callable(TValue, TKey): bool)|null $callback, @return bool]

containsStrict

v11.0.0 以前から

containsStrict($key, $value = null)
@param (callable(TValue): bool)|TValue|array-key $key
@param TValue|null $value
@return bool
  1. v11.0.0 追加
    変更後
    containsStrict($key, $value = null) [@param (callable(TValue): bool)|TValue|array-key $key, @param TValue|null $value, @return bool]

count

v11.0.0 以前から

count(): int
@return int
  1. v11.0.0 追加
    変更後
    count(): int [@return int]

countBy

v11.0.0 以前から

countBy($countBy = null)
  1. v11.0.0 追加
    変更後
    countBy($countBy = null) [@param (callable(TValue, TKey): array-key)|string|null $countBy, @return static<array-key, int>]
  2. v12.27.0 シグネチャ変更
    変更前
    countBy($countBy = null) [@param (callable(TValue, TKey): array-key)|string|null $countBy, @return static<array-key, int>]
    変更後
    countBy($countBy = null) [@param (callable(TValue, TKey): array-key|\UnitEnum)|string|null $countBy, @return static<array-key, int>]
  3. v12.44.0 シグネチャ変更
    変更前
    countBy($countBy = null) [@param (callable(TValue, TKey): array-key|\UnitEnum)|string|null $countBy, @return static<array-key, int>]
    変更後
    countBy($countBy = null) [@param (callable(TValue, TKey): (array-key|\UnitEnum))|string|null $countBy, @return static<array-key, int>]
  4. v13.0.0 シグネチャ変更
    変更前
    countBy($countBy = null) [@param (callable(TValue, TKey): (array-key|\UnitEnum))|string|null $countBy, @return static<array-key, int>]
    変更後
    countBy($countBy = null)

crossJoin

v11.0.0 以前から

crossJoin(...$arrays)
  1. v11.0.0 追加
    変更後
    crossJoin(...$arrays) [@param \Illuminate\Contracts\Support\Arrayable<TCrossJoinKey, TCrossJoinValue>|iterable<TCrossJoinKey, TCrossJoinValue> ...$arrays, @return static<int, array<int, TValue|TCrossJoinValue>>]
  2. v12.44.0 シグネチャ変更
    変更前
    crossJoin(...$arrays) [@param \Illuminate\Contracts\Support\Arrayable<TCrossJoinKey, TCrossJoinValue>|iterable<TCrossJoinKey, TCrossJoinValue> ...$arrays, @return static<int, array<int, TValue|TCrossJoinValue>>]
    変更後
    crossJoin(...$arrays)

diff

v11.0.0 以前から

diff($items)
  1. v11.0.0 追加
    変更後
    diff($items) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items, @return static]
  2. v12.9.0 シグネチャ変更
    変更前
    diff($items) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items, @return static]
    変更後
    diff($items) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items, @return static<TKey, TValue>]
  3. v12.44.0 シグネチャ変更
    変更前
    diff($items) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items, @return static<TKey, TValue>]
    変更後
    diff($items)

diffAssoc

v11.0.0 以前から

diffAssoc($items)
  1. v11.0.0 追加
    変更後
    diffAssoc($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    diffAssoc($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
    変更後
    diffAssoc($items)

diffAssocUsing

v11.0.0 以前から

diffAssocUsing($items, callable $callback)
  1. v11.0.0 追加
    変更後
    diffAssocUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @param callable(TKey, TKey): int $callback, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    diffAssocUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @param callable(TKey, TKey): int $callback, @return static]
    変更後
    diffAssocUsing($items, callable $callback)

diffKeys

v11.0.0 以前から

diffKeys($items)
  1. v11.0.0 追加
    変更後
    diffKeys($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
  2. v11.31.0 シグネチャ変更
    変更前
    diffKeys($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
    変更後
    diffKeys($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items, @return static]
  3. v12.44.0 シグネチャ変更
    変更前
    diffKeys($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items, @return static]
    変更後
    diffKeys($items)

diffKeysUsing

v11.0.0 以前から

diffKeysUsing($items, callable $callback)
  1. v11.0.0 追加
    変更後
    diffKeysUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @param callable(TKey, TKey): int $callback, @return static]
  2. v11.31.0 シグネチャ変更
    変更前
    diffKeysUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @param callable(TKey, TKey): int $callback, @return static]
    変更後
    diffKeysUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items, @param callable(TKey, TKey): int $callback, @return static]
  3. v12.44.0 シグネチャ変更
    変更前
    diffKeysUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items, @param callable(TKey, TKey): int $callback, @return static]
    変更後
    diffKeysUsing($items, callable $callback)

diffUsing

v11.0.0 以前から

diffUsing($items, callable $callback)
  1. v11.0.0 追加
    変更後
    diffUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items, @param callable(TValue, TValue): int $callback, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    diffUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items, @param callable(TValue, TValue): int $callback, @return static]
    変更後
    diffUsing($items, callable $callback)

doesntContain

v11.0.0 以前から

doesntContain($key, $operator = null, $value = null)
@param mixed $key
@param mixed $operator
@param mixed $value
@return bool
  1. v11.0.0 追加
    変更後
    doesntContain($key, $operator = null, $value = null) [@param mixed $key, @param mixed $operator, @param mixed $value, @return bool]

doesntContainStrict

v12.22.0 から

doesntContainStrict($key, $operator = null, $value = null)
@param mixed $key
@param mixed $operator
@param mixed $value
@return bool
  1. v12.22.0 追加
    変更後
    doesntContainStrict($key, $operator = null, $value = null) [@param mixed $key, @param mixed $operator, @param mixed $value, @return bool]

dot

v11.0.0 以前から

dot($depth = INF)
@param int $depth
@return static
  1. v11.0.0 追加
    変更後
    dot() [@return static]
  2. v12.55.0 シグネチャ変更
    変更前
    dot() [@return static]
    変更後
    dot($depth = INF) [@param int $depth, @return static]

duplicates

v11.0.0 以前から

duplicates($callback = null, $strict = false)
  1. v11.0.0 追加
    変更後
    duplicates($callback = null, $strict = false) [@param (callable(TValue): bool)|string|null $callback, @param bool $strict, @return static]
  2. v11.32.0 シグネチャ変更
    変更前
    duplicates($callback = null, $strict = false) [@param (callable(TValue): bool)|string|null $callback, @param bool $strict, @return static]
    変更後
    duplicates($callback = null, $strict = false) [@param (callable(TValue): TMapValue)|string|null $callback, @param bool $strict, @return static]
  3. v12.44.0 シグネチャ変更
    変更前
    duplicates($callback = null, $strict = false) [@param (callable(TValue): TMapValue)|string|null $callback, @param bool $strict, @return static]
    変更後
    duplicates($callback = null, $strict = false)

duplicatesStrict

v11.0.0 以前から

duplicatesStrict($callback = null)
  1. v11.0.0 追加
    変更後
    duplicatesStrict($callback = null) [@param (callable(TValue): bool)|string|null $callback, @return static]
  2. v11.32.0 シグネチャ変更
    変更前
    duplicatesStrict($callback = null) [@param (callable(TValue): bool)|string|null $callback, @return static]
    変更後
    duplicatesStrict($callback = null) [@param (callable(TValue): TMapValue)|string|null $callback, @return static]
  3. v12.44.0 シグネチャ変更
    変更前
    duplicatesStrict($callback = null) [@param (callable(TValue): TMapValue)|string|null $callback, @return static]
    変更後
    duplicatesStrict($callback = null)

eager

v11.0.0 以前から

eager()
@return static<TKey, TValue>
  1. v11.0.0 追加
    変更後
    eager() [@return static]
  2. v12.9.0 シグネチャ変更
    変更前
    eager() [@return static]
    変更後
    eager() [@return static<TKey, TValue>]

except

v11.0.0 以前から

except($keys)
  1. v11.0.0 追加
    変更後
    except($keys) [@param \Illuminate\Support\Enumerable<array-key, TKey>|array<array-key, TKey> $keys, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    except($keys) [@param \Illuminate\Support\Enumerable<array-key, TKey>|array<array-key, TKey> $keys, @return static]
    変更後
    except($keys)

filter

v11.0.0 以前から

filter(?callable $callback = null)
@param (callable(TValue, TKey): bool)|null $callback
@return static
  1. v11.0.0 追加
    変更後
    filter(callable $callback = null) [@param (callable(TValue, TKey): bool)|null $callback, @return static]
  2. v11.3.0 シグネチャ変更
    変更前
    filter(callable $callback = null) [@param (callable(TValue, TKey): bool)|null $callback, @return static]
    変更後
    filter(?callable $callback = null) [@param (callable(TValue, TKey): bool)|null $callback, @return static]

first

v11.0.0 以前から

first(?callable $callback = null, $default = null)
@param (callable(TValue): bool)|null $callback
@param TFirstDefault|(\Closure(): TFirstDefault) $default
@return TValue|TFirstDefault
  1. v11.0.0 追加
    変更後
    first(callable $callback = null, $default = null) [@param (callable(TValue): bool)|null $callback, @param TFirstDefault|(\Closure(): TFirstDefault) $default, @return TValue|TFirstDefault]
  2. v11.3.0 シグネチャ変更
    変更前
    first(callable $callback = null, $default = null) [@param (callable(TValue): bool)|null $callback, @param TFirstDefault|(\Closure(): TFirstDefault) $default, @return TValue|TFirstDefault]
    変更後
    first(?callable $callback = null, $default = null) [@param (callable(TValue): bool)|null $callback, @param TFirstDefault|(\Closure(): TFirstDefault) $default, @return TValue|TFirstDefault]

firstOrFail

v11.0.0 以前から

firstOrFail($key = null, $operator = null, $value = null)
@param (callable(TValue, TKey): bool)|string|null $key
@param mixed $operator
@param mixed $value
@return TValue
  1. v11.0.0 追加
    変更後
    firstOrFail($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string $key, @param mixed $operator, @param mixed $value, @return TValue]
  2. v12.29.0 シグネチャ変更
    変更前
    firstOrFail($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string $key, @param mixed $operator, @param mixed $value, @return TValue]
    変更後
    firstOrFail($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string|null $key, @param mixed $operator, @param mixed $value, @return TValue]

flatten

v11.0.0 以前から

flatten($depth = INF)
@param int $depth
@return static<int, mixed>
  1. v11.0.0 追加
    変更後
    flatten($depth = INF) [@param int $depth, @return static<int, mixed>]

flip

v11.0.0 以前から

flip()
@return static<TValue, TKey>
  1. v11.0.0 追加
    変更後
    flip() [@return static<TValue, TKey>]

get

v11.0.0 以前から

get($key, $default = null)
@param TKey|null $key
@param TGetDefault|(\Closure(): TGetDefault) $default
@return TValue|TGetDefault
  1. v11.0.0 追加
    変更後
    get($key, $default = null) [@param TKey|null $key, @param TGetDefault|(\Closure(): TGetDefault) $default, @return TValue|TGetDefault]

getIterator

v11.0.0 以前から

getIterator(): Traversable
@return \Traversable<TKey, TValue>
  1. v11.0.0 追加
    変更後
    getIterator(): Traversable [@return \Traversable<TKey, TValue>]

groupBy

v11.0.0 以前から

groupBy($groupBy, $preserveKeys = false)
  1. v11.0.0 追加
    変更後
    groupBy($groupBy, $preserveKeys = false) [@param (callable(TValue, TKey): array-key)|array|string $groupBy, @param bool $preserveKeys, @return static<array-key, static<array-key, TValue>>]
  2. v11.24.0 シグネチャ変更
    変更前
    groupBy($groupBy, $preserveKeys = false) [@param (callable(TValue, TKey): array-key)|array|string $groupBy, @param bool $preserveKeys, @return static<array-key, static<array-key, TValue>>]
    変更後
    groupBy($groupBy, $preserveKeys = false) [@param (callable(TValue, TKey): TGroupKey)|array|string $groupBy, @param bool $preserveKeys, @return static<TGroupKey, static<($preserveKeys is true ? TKey : int), TValue>>]
  3. v11.25.0 シグネチャ変更
    変更前
    groupBy($groupBy, $preserveKeys = false) [@param (callable(TValue, TKey): TGroupKey)|array|string $groupBy, @param bool $preserveKeys, @return static<TGroupKey, static<($preserveKeys is true ? TKey : int), TValue>>]
    変更後
    groupBy($groupBy, $preserveKeys = false) [@param (callable(TValue, TKey): TGroupKey)|array|string $groupBy, @param bool $preserveKeys, @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), TValue>>]
  4. v11.34.2 シグネチャ変更
    変更前
    groupBy($groupBy, $preserveKeys = false) [@param (callable(TValue, TKey): TGroupKey)|array|string $groupBy, @param bool $preserveKeys, @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), TValue>>]
    変更後
    groupBy($groupBy, $preserveKeys = false) [@param (callable(TValue, TKey): TGroupKey)|array|string $groupBy, @param bool $preserveKeys, @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), ($groupBy is array ? mixed : TValue)>>]
  5. v12.44.0 シグネチャ変更
    変更前
    groupBy($groupBy, $preserveKeys = false) [@param (callable(TValue, TKey): TGroupKey)|array|string $groupBy, @param bool $preserveKeys, @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), ($groupBy is array ? mixed : TValue)>>]
    変更後
    groupBy($groupBy, $preserveKeys = false) [@param (callable(TValue, TKey): TGroupKey)|array|string $groupBy, @return static< ($groupBy is (array|string) ? array-key : (TGroupKey is \UnitEnum ? array-key : (TGroupKey is \Stringable ? string : TGroupKey))), static<($preserveKeys is true ? TKey : int), ($groupBy is array ? mixed : TValue)> >]
  6. v13.0.0 シグネチャ変更
    変更前
    groupBy($groupBy, $preserveKeys = false) [@param (callable(TValue, TKey): TGroupKey)|array|string $groupBy, @return static< ($groupBy is (array|string) ? array-key : (TGroupKey is \UnitEnum ? array-key : (TGroupKey is \Stringable ? string : TGroupKey))), static<($preserveKeys is true ? TKey : int), ($groupBy is array ? mixed : TValue)> >]
    変更後
    groupBy($groupBy, $preserveKeys = false)

has

v11.0.0 以前から

has($key)
@param mixed $key
@return bool
  1. v11.0.0 追加
    変更後
    has($key) [@param mixed $key, @return bool]

hasAny

v11.0.0 以前から

hasAny($key)
@param mixed $key
@return bool
  1. v11.0.0 追加
    変更後
    hasAny($key) [@param mixed $key, @return bool]

hasSole

v12.49.0 から

hasSole($key = null, $operator = null, $value = null): bool
@param (callable(TValue, TKey): bool)|string|null $key
@param mixed $operator
@param mixed $value
@return bool
  1. v12.49.0 追加
    変更後
    hasSole($key = null, $operator = null, $value = null): bool [@param (callable(TValue, TKey): bool)|string|null $key, @param mixed $operator, @param mixed $value, @return bool]

implode

v11.0.0 以前から

implode($value, $glue = null)
@param (callable(TValue, TKey): mixed)|string $value
@param string|null $glue
@return string
  1. v11.0.0 追加
    変更後
    implode($value, $glue = null) [@param callable|string $value, @param string|null $glue, @return string]
  2. v11.26.0 シグネチャ変更
    変更前
    implode($value, $glue = null) [@param callable|string $value, @param string|null $glue, @return string]
    変更後
    implode($value, $glue = null) [@param (callable(TValue, TKey): mixed)|string $value, @param string|null $glue, @return string]

intersect

v11.0.0 以前から

intersect($items)
  1. v11.0.0 追加
    変更後
    intersect($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    intersect($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
    変更後
    intersect($items)

intersectAssoc

v11.0.0 以前から

intersectAssoc($items)
  1. v11.0.0 追加
    変更後
    intersectAssoc($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    intersectAssoc($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
    変更後
    intersectAssoc($items)

intersectAssocUsing

v11.0.0 以前から

intersectAssocUsing($items, callable $callback)
  1. v11.0.0 追加
    変更後
    intersectAssocUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items, @param callable(TValue, TValue): int $callback, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    intersectAssocUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items, @param callable(TValue, TValue): int $callback, @return static]
    変更後
    intersectAssocUsing($items, callable $callback)

intersectByKeys

v11.0.0 以前から

intersectByKeys($items)
  1. v11.0.0 追加
    変更後
    intersectByKeys($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
  2. v11.31.0 シグネチャ変更
    変更前
    intersectByKeys($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
    変更後
    intersectByKeys($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items, @return static]
  3. v12.44.0 シグネチャ変更
    変更前
    intersectByKeys($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items, @return static]
    変更後
    intersectByKeys($items)

intersectUsing

v11.0.0 以前から

intersectUsing($items, callable $callback)
  1. v11.0.0 追加
    変更後
    intersectUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items, @param callable(TValue, TValue): int $callback, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    intersectUsing($items, callable $callback) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TValue>|iterable<array-key, TValue> $items, @param callable(TValue, TValue): int $callback, @return static]
    変更後
    intersectUsing($items, callable $callback)

isEmpty

v11.0.0 以前から

isEmpty()
@return bool
  1. v11.0.0 追加
    変更後
    isEmpty() [@return bool]

join

v11.0.0 以前から

join($glue, $finalGlue = '')
@param string $glue
@param string $finalGlue
@return string
  1. v11.0.0 追加
    変更後
    join($glue, $finalGlue = '') [@param string $glue, @param string $finalGlue, @return string]

keyBy

v11.0.0 以前から

keyBy($keyBy)
  1. v11.0.0 追加
    変更後
    keyBy($keyBy) [@param (callable(TValue, TKey): array-key)|array|string $keyBy, @return static<array-key, TValue>]
  2. v11.24.0 シグネチャ変更
    変更前
    keyBy($keyBy) [@param (callable(TValue, TKey): array-key)|array|string $keyBy, @return static<array-key, TValue>]
    変更後
    keyBy($keyBy) [@param (callable(TValue, TKey): TNewKey)|array|string $keyBy, @return static<TNewKey, TValue>]
  3. v11.25.0 シグネチャ変更
    変更前
    keyBy($keyBy) [@param (callable(TValue, TKey): TNewKey)|array|string $keyBy, @return static<TNewKey, TValue>]
    変更後
    keyBy($keyBy) [@param (callable(TValue, TKey): TNewKey)|array|string $keyBy, @return static<($keyBy is string ? array-key : ($keyBy is array ? array-key : TNewKey)), TValue>]
  4. v12.44.0 シグネチャ変更
    変更前
    keyBy($keyBy) [@param (callable(TValue, TKey): TNewKey)|array|string $keyBy, @return static<($keyBy is string ? array-key : ($keyBy is array ? array-key : TNewKey)), TValue>]
    変更後
    keyBy($keyBy) [@param (callable(TValue, TKey): TNewKey)|array|string $keyBy, @return static<($keyBy is (array|string) ? array-key : (TNewKey is \UnitEnum ? array-key : TNewKey)), TValue>]
  5. v13.0.0 シグネチャ変更
    変更前
    keyBy($keyBy) [@param (callable(TValue, TKey): TNewKey)|array|string $keyBy, @return static<($keyBy is (array|string) ? array-key : (TNewKey is \UnitEnum ? array-key : TNewKey)), TValue>]
    変更後
    keyBy($keyBy)

keys

v11.0.0 以前から

keys()
@return static<int, TKey>
  1. v11.0.0 追加
    変更後
    keys() [@return static<int, TKey>]

last

v11.0.0 以前から

last(?callable $callback = null, $default = null)
@param (callable(TValue, TKey): bool)|null $callback
@param TLastDefault|(\Closure(): TLastDefault) $default
@return TValue|TLastDefault
  1. v11.0.0 追加
    変更後
    last(callable $callback = null, $default = null) [@param (callable(TValue, TKey): bool)|null $callback, @param TLastDefault|(\Closure(): TLastDefault) $default, @return TValue|TLastDefault]
  2. v11.3.0 シグネチャ変更
    変更前
    last(callable $callback = null, $default = null) [@param (callable(TValue, TKey): bool)|null $callback, @param TLastDefault|(\Closure(): TLastDefault) $default, @return TValue|TLastDefault]
    変更後
    last(?callable $callback = null, $default = null) [@param (callable(TValue, TKey): bool)|null $callback, @param TLastDefault|(\Closure(): TLastDefault) $default, @return TValue|TLastDefault]

make

v11.0.0 以前から

static

static make($items = [], ...$args)
@param \Illuminate\Contracts\Support\Arrayable<TMakeKey, TMakeValue>|iterable<TMakeKey, TMakeValue>|(Closure(): \Generator<TMakeKey, TMakeValue, mixed, void>)|self<TMakeKey, TMakeValue>|array<TMakeKey, TMakeValue>|null $items
@return static<TMakeKey, TMakeValue>
  1. v11.0.0 追加
    変更後
    static make($items = []) [@param \Illuminate\Contracts\Support\Arrayable<TMakeKey, TMakeValue>|iterable<TMakeKey, TMakeValue>|(Closure(): \Generator<TMakeKey, TMakeValue, mixed, void>)|self<TMakeKey, TMakeValue>|array<TMakeKey, TMakeValue>|null $items, @return static<TMakeKey, TMakeValue>]
  2. v13.3.0 シグネチャ変更
    変更前
    static make($items = []) [@param \Illuminate\Contracts\Support\Arrayable<TMakeKey, TMakeValue>|iterable<TMakeKey, TMakeValue>|(Closure(): \Generator<TMakeKey, TMakeValue, mixed, void>)|self<TMakeKey, TMakeValue>|array<TMakeKey, TMakeValue>|null $items, @return static<TMakeKey, TMakeValue>]
    変更後
    static make($items = [], ...$args) [@param \Illuminate\Contracts\Support\Arrayable<TMakeKey, TMakeValue>|iterable<TMakeKey, TMakeValue>|(Closure(): \Generator<TMakeKey, TMakeValue, mixed, void>)|self<TMakeKey, TMakeValue>|array<TMakeKey, TMakeValue>|null $items, @return static<TMakeKey, TMakeValue>]

map

v11.0.0 以前から

map(callable $callback)
@param callable(TValue, TKey): TMapValue $callback
@return static<TKey, TMapValue>
  1. v11.0.0 追加
    変更後
    map(callable $callback) [@param callable(TValue, TKey): TMapValue $callback, @return static<TKey, TMapValue>]

mapToDictionary

v11.0.0 以前から

mapToDictionary(callable $callback)
  1. v11.0.0 追加
    変更後
    mapToDictionary(callable $callback) [@param callable(TValue, TKey): array<TMapToDictionaryKey, TMapToDictionaryValue> $callback, @return static<TMapToDictionaryKey, array<int, TMapToDictionaryValue>>]
  2. v12.44.0 シグネチャ変更
    変更前
    mapToDictionary(callable $callback) [@param callable(TValue, TKey): array<TMapToDictionaryKey, TMapToDictionaryValue> $callback, @return static<TMapToDictionaryKey, array<int, TMapToDictionaryValue>>]
    変更後
    mapToDictionary(callable $callback)

mapWithKeys

v11.0.0 以前から

mapWithKeys(callable $callback)
@param callable(TValue, TKey): array<TMapWithKeysKey, TMapWithKeysValue> $callback
@return static<TMapWithKeysKey, TMapWithKeysValue>
  1. v11.0.0 追加
    変更後
    mapWithKeys(callable $callback) [@param callable(TValue, TKey): array<TMapWithKeysKey, TMapWithKeysValue> $callback, @return static<TMapWithKeysKey, TMapWithKeysValue>]

median

v11.0.0 以前から

median($key = null)
@param string|array<array-key, string>|null $key
@return float|int|null
  1. v11.0.0 追加
    変更後
    median($key = null) [@param string|array<array-key, string>|null $key, @return float|int|null]

merge

v11.0.0 以前から

merge($items)
  1. v11.0.0 追加
    変更後
    merge($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    merge($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
    変更後
    merge($items)

mergeRecursive

v11.0.0 以前から

mergeRecursive($items)
  1. v11.0.0 追加
    変更後
    mergeRecursive($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TMergeRecursiveValue>|iterable<TKey, TMergeRecursiveValue> $items, @return static<TKey, TValue|TMergeRecursiveValue>]
  2. v12.44.0 シグネチャ変更
    変更前
    mergeRecursive($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TMergeRecursiveValue>|iterable<TKey, TMergeRecursiveValue> $items, @return static<TKey, TValue|TMergeRecursiveValue>]
    変更後
    mergeRecursive($items)

mode

v11.0.0 以前から

mode($key = null)
@param string|array<string>|null $key
@return array<int, float|int>|null
  1. v11.0.0 追加
    変更後
    mode($key = null) [@param string|array<string>|null $key, @return array<int, float|int>|null]

multiply

v11.12.0 から

multiply(int $multiplier)
@param int $multiplier
@return static
  1. v11.12.0 追加
    変更後
    multiply(int $multiplier) [@param int $multiplier, @return static]

nth

v11.0.0 以前から

nth($step, $offset = 0)
@param int $step
@param int $offset
@return ($step is positive-int ? static : never)
  1. v11.0.0 追加
    変更後
    nth($step, $offset = 0) [@param int $step, @param int $offset, @return static]
  2. v12.51.0 シグネチャ変更
    変更前
    nth($step, $offset = 0) [@param int $step, @param int $offset, @return static]
    変更後
    nth($step, $offset = 0) [@param int $step, @param int $offset, @return ($step is positive-int ? static : never)]

only

v11.0.0 以前から

only($keys)
@param \Illuminate\Support\Enumerable<array-key, TKey>|array<array-key, TKey>|string $keys
@return static
  1. v11.0.0 追加
    変更後
    only($keys) [@param \Illuminate\Support\Enumerable<array-key, TKey>|array<array-key, TKey>|string $keys, @return static]

pad

v11.0.0 以前から

pad($size, $value)
  1. v11.0.0 追加
    変更後
    pad($size, $value) [@param int $size, @param TPadValue $value, @return static<int, TValue|TPadValue>]
  2. v12.44.0 シグネチャ変更
    変更前
    pad($size, $value) [@param int $size, @param TPadValue $value, @return static<int, TValue|TPadValue>]
    変更後
    pad($size, $value)

pluck

v11.0.0 以前から

pluck($value, $key = null)
@param string|array<array-key, string> $value
@param string|null $key
@return static<array-key, mixed>
  1. v11.0.0 追加
    変更後
    pluck($value, $key = null) [@param string|array<array-key, string> $value, @param string|null $key, @return static<int, mixed>]
  2. v11.16.0 シグネチャ変更
    変更前
    pluck($value, $key = null) [@param string|array<array-key, string> $value, @param string|null $key, @return static<int, mixed>]
    変更後
    pluck($value, $key = null) [@param string|array<array-key, string> $value, @param string|null $key, @return static<array-key, mixed>]

random

v11.0.0 以前から

random($number = null, $preserveKeys = false)
@param int|null $number
@param bool $preserveKeys
@return ($number is null ? TValue : static<int, TValue>)
  1. v11.0.0 追加
    変更後
    random($number = null) [@param int|null $number, @return static<int, TValue>|TValue]
  2. v12.52.0 シグネチャ変更
    変更前
    random($number = null) [@param int|null $number, @return static<int, TValue>|TValue]
    変更後
    random($number = null, $preserveKeys = false) [@param int|null $number, @param bool $preserveKeys, @return static<int, TValue>|TValue]
  3. v13.18.0 シグネチャ変更
    変更前
    random($number = null, $preserveKeys = false) [@param int|null $number, @param bool $preserveKeys, @return static<int, TValue>|TValue]
    変更後
    random($number = null, $preserveKeys = false) [@param int|null $number, @param bool $preserveKeys, @return ($number is null ? TValue : static<int, TValue>)]

range

v11.0.0 以前から

static

static range($from, $to, $step = 1, ...$args)
@param int $from
@param int $to
@param int $step
@return ($step is 0 ? never : static<int, int>)
  1. v11.0.0 追加
    変更後
    static range($from, $to) [@param int $from, @param int $to, @return static<int, int>]
  2. v12.0.0 シグネチャ変更
    変更前
    static range($from, $to) [@param int $from, @param int $to, @return static<int, int>]
    変更後
    static range($from, $to, $step = 1) [@param int $from, @param int $to, @param int $step, @return static<int, int>]
  3. v12.51.0 シグネチャ変更
    変更前
    static range($from, $to, $step = 1) [@param int $from, @param int $to, @param int $step, @return static<int, int>]
    変更後
    static range($from, $to, $step = 1) [@param int $from, @param int $to, @param int $step, @return ($step is zero ? never : static<int, int>)]
  4. v13.3.0 シグネチャ変更
    変更前
    static range($from, $to, $step = 1) [@param int $from, @param int $to, @param int $step, @return ($step is zero ? never : static<int, int>)]
    変更後
    static range($from, $to, $step = 1, ...$args) [@param int $from, @param int $to, @param int $step, @return ($step is zero ? never : static<int, int>)]
  5. v13.21.0 シグネチャ変更
    変更前
    static range($from, $to, $step = 1, ...$args) [@param int $from, @param int $to, @param int $step, @return ($step is zero ? never : static<int, int>)]
    変更後
    static range($from, $to, $step = 1, ...$args) [@param int $from, @param int $to, @param int $step, @return ($step is 0 ? never : static<int, int>)]

remember

v11.0.0 以前から

remember()
@return static<TKey, TValue>
  1. v11.0.0 追加
    変更後
    remember() [@return static]
  2. v12.9.0 シグネチャ変更
    変更前
    remember() [@return static]
    変更後
    remember() [@return static<TKey, TValue>]

replace

v11.0.0 以前から

replace($items)
@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items
@return static
  1. v11.0.0 追加
    変更後
    replace($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]

replaceRecursive

v11.0.0 以前から

replaceRecursive($items)
  1. v11.0.0 追加
    変更後
    replaceRecursive($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    replaceRecursive($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
    変更後
    replaceRecursive($items)

reverse

v11.0.0 以前から

reverse()
  1. v11.0.0 追加
    変更後
    reverse() [@return static]
  2. v12.9.0 シグネチャ変更
    変更前
    reverse() [@return static]
    変更後
    reverse() [@return static<TKey, TValue>]
  3. v12.44.0 シグネチャ変更
    変更前
    reverse() [@return static<TKey, TValue>]
    変更後
    reverse()

select

v11.0.0 以前から

select($keys)
@param \Illuminate\Support\Enumerable<array-key, TKey>|array<array-key, TKey>|string $keys
@return static
  1. v11.0.0 追加
    変更後
    select($keys) [@param \Illuminate\Support\Enumerable<array-key, TKey>|array<array-key, TKey>|string $keys, @return static]

shuffle

v11.0.0 以前から

shuffle()
  1. v11.0.0 追加
    変更後
    shuffle() [@return static]
  2. v12.9.0 シグネチャ変更
    変更前
    shuffle() [@return static]
    変更後
    shuffle() [@return static<TKey, TValue>]
  3. v12.44.0 シグネチャ変更
    変更前
    shuffle() [@return static<TKey, TValue>]
    変更後
    shuffle()

skip

v11.0.0 以前から

skip($count)
@param int $count
@return static
  1. v11.0.0 追加
    変更後
    skip($count) [@param int $count, @return static]

skipUntil

v11.0.0 以前から

skipUntil($value)
@param TValue|callable(TValue,TKey): bool $value
@return static
  1. v11.0.0 追加
    変更後
    skipUntil($value) [@param TValue|callable(TValue,TKey): bool $value, @return static]

skipWhile

v11.0.0 以前から

skipWhile($value)
@param TValue|callable(TValue,TKey): bool $value
@return static
  1. v11.0.0 追加
    変更後
    skipWhile($value) [@param TValue|callable(TValue,TKey): bool $value, @return static]

slice

v11.0.0 以前から

slice($offset, $length = null)
  1. v11.0.0 追加
    変更後
    slice($offset, $length = null) [@param int $offset, @param int|null $length, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    slice($offset, $length = null) [@param int $offset, @param int|null $length, @return static]
    変更後
    slice($offset, $length = null)

sliding

v11.0.0 以前から

sliding($size = 2, $step = 1)
@param positive-int $size
@param positive-int $step
@return static<int, static>
  1. v11.0.0 追加
    変更後
    sliding($size = 2, $step = 1) [@param int $size, @param int $step, @return static<int, static>]
  2. v12.40.0 シグネチャ変更
    変更前
    sliding($size = 2, $step = 1) [@param int $size, @param int $step, @return static<int, static>]
    変更後
    sliding($size = 2, $step = 1) [@param positive-int $size, @param positive-int $step, @return static<int, static>]

sole

v11.0.0 以前から

sole($key = null, $operator = null, $value = null)
@param (callable(TValue, TKey): bool)|string|null $key
@param mixed $operator
@param mixed $value
@return TValue
  1. v11.0.0 追加
    変更後
    sole($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string $key, @param mixed $operator, @param mixed $value, @return TValue]
  2. v12.29.0 シグネチャ変更
    変更前
    sole($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string $key, @param mixed $operator, @param mixed $value, @return TValue]
    変更後
    sole($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string|null $key, @param mixed $operator, @param mixed $value, @return TValue]

sort

v11.0.0 以前から

sort($callback = null)
  1. v11.0.0 追加
    変更後
    sort($callback = null) [@param (callable(TValue, TValue): int)|null|int $callback, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    sort($callback = null) [@param (callable(TValue, TValue): int)|null|int $callback, @return static]
    変更後
    sort($callback = null)

sortBy

v11.0.0 以前から

sortBy($callback, $options = SORT_REGULAR, $descending = false)
  1. v11.0.0 追加
    変更後
    sortBy($callback, $options = SORT_REGULAR, $descending = false) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string $callback, @param int $options, @param bool $descending, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    sortBy($callback, $options = SORT_REGULAR, $descending = false) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string $callback, @param int $options, @param bool $descending, @return static]
    変更後
    sortBy($callback, $options = SORT_REGULAR, $descending = false)

sortByDesc

v11.0.0 以前から

sortByDesc($callback, $options = SORT_REGULAR)
  1. v11.0.0 追加
    変更後
    sortByDesc($callback, $options = SORT_REGULAR) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string $callback, @param int $options, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    sortByDesc($callback, $options = SORT_REGULAR) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string $callback, @param int $options, @return static]
    変更後
    sortByDesc($callback, $options = SORT_REGULAR)

sortDesc

v11.0.0 以前から

sortDesc($options = SORT_REGULAR)
  1. v11.0.0 追加
    変更後
    sortDesc($options = SORT_REGULAR) [@param int $options, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    sortDesc($options = SORT_REGULAR) [@param int $options, @return static]
    変更後
    sortDesc($options = SORT_REGULAR)

sortKeys

v11.0.0 以前から

sortKeys($options = SORT_REGULAR, $descending = false)
  1. v11.0.0 追加
    変更後
    sortKeys($options = SORT_REGULAR, $descending = false) [@param int $options, @param bool $descending, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    sortKeys($options = SORT_REGULAR, $descending = false) [@param int $options, @param bool $descending, @return static]
    変更後
    sortKeys($options = SORT_REGULAR, $descending = false)

sortKeysDesc

v11.0.0 以前から

sortKeysDesc($options = SORT_REGULAR)
  1. v11.0.0 追加
    変更後
    sortKeysDesc($options = SORT_REGULAR) [@param int $options, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    sortKeysDesc($options = SORT_REGULAR) [@param int $options, @return static]
    変更後
    sortKeysDesc($options = SORT_REGULAR)

sortKeysUsing

v11.0.0 以前から

sortKeysUsing(callable $callback)
  1. v11.0.0 追加
    変更後
    sortKeysUsing(callable $callback) [@param callable(TKey, TKey): int $callback, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    sortKeysUsing(callable $callback) [@param callable(TKey, TKey): int $callback, @return static]
    変更後
    sortKeysUsing(callable $callback)

split

v11.0.0 以前から

split($numberOfGroups)
  1. v11.0.0 追加
    変更後
    split($numberOfGroups) [@param int $numberOfGroups, @return static<int, static>]
  2. v12.44.0 シグネチャ変更
    変更前
    split($numberOfGroups) [@param int $numberOfGroups, @return static<int, static>]
    変更後
    split($numberOfGroups)

splitIn

v11.0.0 以前から

splitIn($numberOfGroups)
@param int $numberOfGroups
@return ($numberOfGroups is positive-int ? static<int, static> : never)
  1. v11.0.0 追加
    変更後
    splitIn($numberOfGroups) [@param int $numberOfGroups, @return static<int, static>]
  2. v12.51.0 シグネチャ変更
    変更前
    splitIn($numberOfGroups) [@param int $numberOfGroups, @return static<int, static>]
    変更後
    splitIn($numberOfGroups) [@param int $numberOfGroups, @return ($numberOfGroups is positive-int ? static<int, static> : never)]

take

v11.0.0 以前から

take($limit)
@param int $limit
@return static<TKey, TValue>
  1. v11.0.0 追加
    変更後
    take($limit) [@param int $limit, @return static]
  2. v12.9.0 シグネチャ変更
    変更前
    take($limit) [@param int $limit, @return static]
    変更後
    take($limit) [@param int $limit, @return static<TKey, TValue>]

takeUntil

v11.0.0 以前から

takeUntil($value)
@param TValue|callable(TValue,TKey): bool $value
@return static<TKey, TValue>
  1. v11.0.0 追加
    変更後
    takeUntil($value) [@param TValue|callable(TValue,TKey): bool $value, @return static]
  2. v12.9.0 シグネチャ変更
    変更前
    takeUntil($value) [@param TValue|callable(TValue,TKey): bool $value, @return static]
    変更後
    takeUntil($value) [@param TValue|callable(TValue,TKey): bool $value, @return static<TKey, TValue>]

takeUntilTimeout

v11.0.0 以前から

takeUntilTimeout(DateTimeInterface $timeout, ?callable $callback = null)
@param \DateTimeInterface $timeout
@param callable(TValue|null, TKey|null): mixed|null $callback
@return static<TKey, TValue>
  1. v11.0.0 追加
    変更後
    takeUntilTimeout(DateTimeInterface $timeout) [@param \DateTimeInterface $timeout, @return static]
  2. v12.9.0 シグネチャ変更
    変更前
    takeUntilTimeout(DateTimeInterface $timeout) [@param \DateTimeInterface $timeout, @return static]
    変更後
    takeUntilTimeout(DateTimeInterface $timeout) [@param \DateTimeInterface $timeout, @return static<TKey, TValue>]
  3. v12.29.0 シグネチャ変更
    変更前
    takeUntilTimeout(DateTimeInterface $timeout) [@param \DateTimeInterface $timeout, @return static<TKey, TValue>]
    変更後
    takeUntilTimeout(DateTimeInterface $timeout, ?callable $callback = null) [@param \DateTimeInterface $timeout, @param callable(TValue|null, TKey|null): mixed|null $callback, @return static<TKey, TValue>]

takeWhile

v11.0.0 以前から

takeWhile($value)
@param TValue|callable(TValue,TKey): bool $value
@return static<TKey, TValue>
  1. v11.0.0 追加
    変更後
    takeWhile($value) [@param TValue|callable(TValue,TKey): bool $value, @return static]
  2. v12.9.0 シグネチャ変更
    変更前
    takeWhile($value) [@param TValue|callable(TValue,TKey): bool $value, @return static]
    変更後
    takeWhile($value) [@param TValue|callable(TValue,TKey): bool $value, @return static<TKey, TValue>]

tapEach

v11.0.0 以前から

tapEach(callable $callback)
@param callable(TValue, TKey): mixed $callback
@return static<TKey, TValue>
  1. v11.0.0 追加
    変更後
    tapEach(callable $callback) [@param callable(TValue, TKey): mixed $callback, @return static]
  2. v12.9.0 シグネチャ変更
    変更前
    tapEach(callable $callback) [@param callable(TValue, TKey): mixed $callback, @return static]
    変更後
    tapEach(callable $callback) [@param callable(TValue, TKey): mixed $callback, @return static<TKey, TValue>]

throttle

v11.4.0 から

throttle(float $seconds)
@return static<TKey, TValue>
  1. v11.4.0 追加
    変更後
    throttle(float $seconds) [@return static<TKey, TValue>]

undot

v11.0.0 以前から

undot()
  1. v11.0.0 追加
    変更後
    undot() [@return static]
  2. v12.44.0 シグネチャ変更
    変更前
    undot() [@return static]
    変更後
    undot()

union

v11.0.0 以前から

union($items)
  1. v11.0.0 追加
    変更後
    union($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
  2. v12.44.0 シグネチャ変更
    変更前
    union($items) [@param \Illuminate\Contracts\Support\Arrayable<TKey, TValue>|iterable<TKey, TValue> $items, @return static]
    変更後
    union($items)

unique

v11.0.0 以前から

unique($key = null, $strict = false)
@param (callable(TValue, TKey): mixed)|string|null $key
@param bool $strict
@return static<TKey, TValue>
  1. v11.0.0 追加
    変更後
    unique($key = null, $strict = false) [@param (callable(TValue, TKey): mixed)|string|null $key, @param bool $strict, @return static]
  2. v12.9.0 シグネチャ変更
    変更前
    unique($key = null, $strict = false) [@param (callable(TValue, TKey): mixed)|string|null $key, @param bool $strict, @return static]
    変更後
    unique($key = null, $strict = false) [@param (callable(TValue, TKey): mixed)|string|null $key, @param bool $strict, @return static<TKey, TValue>]

values

v11.0.0 以前から

values()
@return static<int, TValue>
  1. v11.0.0 追加
    変更後
    values() [@return static<int, TValue>]

withHeartbeat

v12.26.0 から

withHeartbeat(DateInterval|int $interval, callable $callback)
@return static<TKey, TValue>
  1. v12.26.0 追加
    変更後
    withHeartbeat(DateInterval|int $interval, callable $callback) [@return static<TKey, TValue>]

zip

v11.0.0 以前から

zip($items)
@param \Illuminate\Contracts\Support\Arrayable<array-key, TZipValue>|iterable<array-key, TZipValue> $items
@return static<int, static<int, TValue|TZipValue>>
  1. v11.0.0 追加
    変更後
    zip($items) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TZipValue>|iterable<array-key, TZipValue> $items, @return static<int, static<int, TValue|TZipValue>>]