Collection

Illuminate\Support\Collection

class src/Illuminate/Collections/Collection.php

__construct

v11.0.0 以前から

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

add

v11.0.0 以前から

add($item)
@param TValue $item
@return $this
  1. v11.0.0 追加
    変更後
    add($item) [@param TValue $item, @return $this]

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, static<TKey, TValue>): bool $callback
@return static<int, static<TKey, TValue>>
  1. v11.0.0 追加
    変更後
    chunkWhile(callable $callback) [@param callable(TValue, TKey, static<int, TValue>): bool $callback, @return static<int, static<int, TValue>>]
  2. v12.8.0 シグネチャ変更
    変更前
    chunkWhile(callable $callback) [@param callable(TValue, TKey, static<int, TValue>): bool $callback, @return static<int, static<int, TValue>>]
    変更後
    chunkWhile(callable $callback) [@param callable(TValue, TKey, static<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 \Illuminate\Contracts\Support\Arrayable<array-key, TCombineValue>|iterable<array-key, TCombineValue> $values
@return static<TValue, TCombineValue>
  1. v11.0.0 追加
    変更後
    combine($values) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TCombineValue>|iterable<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(?callable $callback = null): bool
@param (callable(TValue, TKey): bool)|null $callback
@return bool
  1. v12.46.0 追加
    変更後
    containsManyItems(?callable $callback = null): bool [@param (callable(TValue, TKey): bool)|null $callback, @return bool]
  2. v12.50.0 非推奨
    変更前
    containsManyItems(?callable $callback = null): bool [@param (callable(TValue, TKey): bool)|null $callback, @return bool]
    変更後
    containsManyItems(?callable $callback = null): bool [@param (callable(TValue, TKey): bool)|null $callback, @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.13.0 シグネチャ変更
    変更前
    containsOneItem() [@return bool]
    変更後
    containsOneItem(?callable $callback = null): bool [@param (callable(TValue, TKey): bool)|null $callback, @return bool]
  3. v12.49.0 非推奨
    変更前
    containsOneItem(?callable $callback = null): bool [@param (callable(TValue, TKey): bool)|null $callback, @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<0, max>
  1. v11.0.0 追加
    変更後
    count(): int [@return int]
  2. v12.20.0 シグネチャ変更
    変更前
    count(): int [@return int]
    変更後
    count(): int [@return int<0, max>]

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(...$lists)
@param \Illuminate\Contracts\Support\Arrayable<TCrossJoinKey, TCrossJoinValue>|iterable<TCrossJoinKey, TCrossJoinValue> ...$lists
@return static<int, array<int, TValue|TCrossJoinValue>>
  1. v11.0.0 追加
    変更後
    crossJoin(...$lists) [@param \Illuminate\Contracts\Support\Arrayable<TCrossJoinKey, TCrossJoinValue>|iterable<TCrossJoinKey, TCrossJoinValue> ...$lists, @return static<int, array<int, TValue|TCrossJoinValue>>]

diff

v11.0.0 以前から

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

diffAssoc

v11.0.0 以前から

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

diffAssocUsing

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
  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]

diffKeys

v11.0.0 以前から

diffKeys($items)
@param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
@return static
  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]

diffKeysUsing

v11.0.0 以前から

diffKeysUsing($items, callable $callback)
@param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
@param callable(TKey, TKey): int $callback
@return static
  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]

diffUsing

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
  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]

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)
@param (callable(TValue): TMapValue)|string|null $callback
@param bool $strict
@return static
  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]

duplicatesStrict

v11.0.0 以前から

duplicatesStrict($callback = null)
@param (callable(TValue): TMapValue)|string|null $callback
@return static
  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]

except

v11.0.0 以前から

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

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

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>]

forget

v11.0.0 以前から

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

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 $key, @param TGetDefault|(\Closure(): TGetDefault) $default, @return TValue|TGetDefault]
  2. v12.32.0 シグネチャ変更
    変更前
    get($key, $default = null) [@param TKey $key, @param TGetDefault|(\Closure(): TGetDefault) $default, @return TValue|TGetDefault]
    変更後
    get($key, $default = null) [@param TKey|null $key, @param TGetDefault|(\Closure(): TGetDefault) $default, @return TValue|TGetDefault]

getIterator

v11.0.0 以前から

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

getOrPut

v11.0.0 以前から

getOrPut($key, $value)
@param mixed $key
@param TGetOrPutValue|(\Closure(): TGetOrPutValue) $value
@return TValue|TGetOrPutValue
  1. v11.0.0 追加
    変更後
    getOrPut($key, $value) [@param mixed $key, @param TGetOrPutValue|(\Closure(): TGetOrPutValue) $value, @return TValue|TGetOrPutValue]

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, @param bool $preserveKeys, @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, @param bool $preserveKeys, @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 TKey|array<array-key, TKey> $key
@return bool
  1. v11.0.0 追加
    変更後
    has($key) [@param TKey|array<array-key, TKey> $key, @return bool]

hasAny

v11.0.0 以前から

hasAny($key)
@param TKey|array<array-key, TKey> $key
@return bool
  1. v11.0.0 追加
    変更後
    hasAny($key) [@param mixed $key, @return bool]
  2. v11.37.0 シグネチャ変更
    変更前
    hasAny($key) [@param mixed $key, @return bool]
    変更後
    hasAny($key) [@param TKey|array<array-key, TKey> $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|null $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.20.0 シグネチャ変更
    変更前
    implode($value, $glue = null) [@param callable|string $value, @param string|null $glue, @return string]
    変更後
    implode($value, $glue = null) [@param callable|string|null $value, @param string|null $glue, @return string]
  3. v11.26.0 シグネチャ変更
    変更前
    implode($value, $glue = null) [@param callable|string|null $value, @param string|null $glue, @return string]
    変更後
    implode($value, $glue = null) [@param (callable(TValue, TKey): mixed)|string|null $value, @param string|null $glue, @return string]

intersect

v11.0.0 以前から

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

intersectAssoc

v11.0.0 以前から

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

intersectAssocUsing

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
  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]

intersectByKeys

v11.0.0 以前から

intersectByKeys($items)
@param \Illuminate\Contracts\Support\Arrayable<TKey, mixed>|iterable<TKey, mixed> $items
@return static
  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]

intersectUsing

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
  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]

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 TValue|string
  1. v11.0.0 追加
    変更後
    join($glue, $finalGlue = '') [@param string $glue, @param string $finalGlue, @return string]
  2. v12.32.0 シグネチャ変更
    変更前
    join($glue, $finalGlue = '') [@param string $glue, @param string $finalGlue, @return string]
    変更後
    join($glue, $finalGlue = '') [@param string $glue, @param string $finalGlue, @return TValue|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]

lazy

v11.0.0 以前から

lazy()
@return \Illuminate\Support\LazyCollection<TKey, TValue>
  1. v11.0.0 追加
    変更後
    lazy() [@return \Illuminate\Support\LazyCollection<TKey, TValue>]

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)
@param callable(TValue, TKey): array<TMapToDictionaryKey, TMapToDictionaryValue> $callback
@return static<TMapToDictionaryKey, array<int, TMapToDictionaryValue>>
  1. v11.0.0 追加
    変更後
    mapToDictionary(callable $callback) [@param callable(TValue, TKey): array<TMapToDictionaryKey, TMapToDictionaryValue> $callback, @return static<TMapToDictionaryKey, array<int, TMapToDictionaryValue>>]

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

mergeRecursive

v11.0.0 以前から

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

mode

v11.0.0 以前から

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

offsetExists

v11.0.0 以前から

offsetExists($offset): bool
@param TKey $offset
@return bool
  1. v11.0.0 追加
    変更後
    offsetExists($key): bool [@param TKey $key, @return bool]
  2. v13.0.0 シグネチャ変更
    変更前
    offsetExists($key): bool [@param TKey $key, @return bool]
    変更後
    offsetExists($offset): bool [@param TKey $offset, @return bool]

offsetGet

v11.0.0 以前から

offsetGet($offset): mixed
@param TKey $offset
@return TValue
  1. v11.0.0 追加
    変更後
    offsetGet($key): mixed [@param TKey $key, @return TValue]
  2. v13.0.0 シグネチャ変更
    変更前
    offsetGet($key): mixed [@param TKey $key, @return TValue]
    変更後
    offsetGet($offset): mixed [@param TKey $offset, @return TValue]

offsetSet

v11.0.0 以前から

offsetSet($offset, $value): void
@param TKey|null $offset
@param TValue $value
@return void
  1. v11.0.0 追加
    変更後
    offsetSet($key, $value): void [@param TKey|null $key, @param TValue $value, @return void]
  2. v13.0.0 シグネチャ変更
    変更前
    offsetSet($key, $value): void [@param TKey|null $key, @param TValue $value, @return void]
    変更後
    offsetSet($offset, $value): void [@param TKey|null $offset, @param TValue $value, @return void]

offsetUnset

v11.0.0 以前から

offsetUnset($offset): void
@param TKey $offset
@return void
  1. v11.0.0 追加
    変更後
    offsetUnset($key): void [@param TKey $key, @return void]
  2. v13.0.0 シグネチャ変更
    変更前
    offsetUnset($key): void [@param TKey $key, @return void]
    変更後
    offsetUnset($offset): void [@param TKey $offset, @return void]

only

v11.0.0 以前から

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

pad

v11.0.0 以前から

pad($size, $value)
@param int $size
@param TPadValue $value
@return static<int, TValue|TPadValue>
  1. v11.0.0 追加
    変更後
    pad($size, $value) [@param int $size, @param TPadValue $value, @return static<int, TValue|TPadValue>]

pluck

v11.0.0 以前から

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

pop

v11.0.0 以前から

pop($count = 1)
@param int $count
@return ($count is 1 ? TValue|null : static<int, TValue>)
  1. v11.0.0 追加
    変更後
    pop($count = 1) [@param int $count, @return static<int, TValue>|TValue|null]
  2. v12.23.0 シグネチャ変更
    変更前
    pop($count = 1) [@param int $count, @return static<int, TValue>|TValue|null]
    変更後
    pop($count = 1) [@param int $count, @return ($count is 1 ? TValue|null : static<int, TValue>)]

prepend

v11.0.0 以前から

prepend($value, $key = null)
@param TValue $value
@param TKey|null $key
@return $this
  1. v11.0.0 追加
    変更後
    prepend($value, $key = null) [@param TValue $value, @param TKey $key, @return $this]
  2. v13.32.0 シグネチャ変更
    変更前
    prepend($value, $key = null) [@param TValue $value, @param TKey $key, @return $this]
    変更後
    prepend($value, $key = null) [@param TValue $value, @param TKey|null $key, @return $this]

pull

v11.0.0 以前から

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

push

v11.0.0 以前から

push(...$values)
@param TValue ...$values
@return $this
  1. v11.0.0 追加
    変更後
    push(...$values) [@param TValue ...$values, @return $this]

put

v11.0.0 以前から

put($key, $value)
@param TKey $key
@param TPutValue $value
@return $this
  1. v11.0.0 追加
    変更後
    put($key, $value) [@param TKey $key, @param TValue $value, @return $this]
  2. v13.33.0 シグネチャ変更
    変更前
    put($key, $value) [@param TKey $key, @param TValue $value, @return $this]
    変更後
    put($key, $value) [@param TKey $key, @param TPutValue $value, @return $this]

random

v11.0.0 以前から

random($number = null, $preserveKeys = false)
@param (callable(self<TKey, TValue>): int)|int|null $number
@param bool $preserveKeys
@return ($number is null ? TValue : static<int, TValue>)
  1. v11.0.0 追加
    変更後
    random($number = null, $preserveKeys = false) [@param (callable(self<TKey, TValue>): int)|int|null $number, @param bool $preserveKeys, @return static<int, TValue>|TValue]
  2. v12.23.0 シグネチャ変更
    変更前
    random($number = null, $preserveKeys = false) [@param (callable(self<TKey, TValue>): int)|int|null $number, @param bool $preserveKeys, @return static<int, TValue>|TValue]
    変更後
    random($number = null, $preserveKeys = false) [@param (callable(self<TKey, TValue>): int)|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 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. v13.3.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, ...$args) [@param int $from, @param int $to, @param int $step, @return static<int, int>]

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

reverse

v11.0.0 以前から

reverse()
@return static
  1. v11.0.0 追加
    変更後
    reverse() [@return static]

select

v11.0.0 以前から

select($keys)
@param \Illuminate\Support\Enumerable<int, string>|list<string>|string|null $keys
@return static
  1. v11.0.0 追加
    変更後
    select($keys) [@param \Illuminate\Support\Enumerable<array-key, TKey>|array<array-key, TKey>|string|null $keys, @return static]
  2. v13.23.0 シグネチャ変更
    変更前
    select($keys) [@param \Illuminate\Support\Enumerable<array-key, TKey>|array<array-key, TKey>|string|null $keys, @return static]
    変更後
    select($keys) [@param \Illuminate\Support\Enumerable<int, string>|list<string>|string|null $keys, @return static]

shift

v11.0.0 以前から

shift($count = 1)
@param int<0, max> $count
@return ($count is 1 ? TValue|null : static<int, TValue>)
  1. v11.0.0 追加
    変更後
    shift($count = 1) [@param int $count, @return static<int, TValue>|TValue|null]
  2. v12.20.0 シグネチャ変更
    変更前
    shift($count = 1) [@param int $count, @return static<int, TValue>|TValue|null]
    変更後
    shift($count = 1) [@param int<0, max> $count, @return static<int, TValue>|TValue|null]
  3. v12.23.0 シグネチャ変更
    変更前
    shift($count = 1) [@param int<0, max> $count, @return static<int, TValue>|TValue|null]
    変更後
    shift($count = 1) [@param int<0, max> $count, @return ($count is 1 ? TValue|null : static<int, TValue>)]

shuffle

v11.0.0 以前から

shuffle()
@return static
  1. v11.0.0 追加
    変更後
    shuffle() [@return static]

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)
@param int $offset
@param int|null $length
@return static
  1. v11.0.0 追加
    変更後
    slice($offset, $length = null) [@param int $offset, @param int|null $length, @return static]

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)
@param (callable(TValue, TValue): int)|null|int $callback
@return static
  1. v11.0.0 追加
    変更後
    sort($callback = null) [@param (callable(TValue, TValue): int)|null|int $callback, @return static]

sortBy

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, SortDirection|'asc'|'desc'}>|(callable(TValue, TKey): mixed)|string|int $callback
@param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options
@param SortDirection|bool $descending
@return static
  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. v13.7.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) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string|int $callback, @param int $options, @param SortDirection|bool $descending, @return static]
  3. v13.8.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|int $callback, @param int $options, @param SortDirection|bool $descending, @return static]
    変更後
    sortBy($callback, $options = SORT_REGULAR, $descending = false) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, SortDirection|'asc'|'desc'}>|(callable(TValue, TKey): mixed)|string|int $callback, @param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options, @param SortDirection|bool $descending, @return static]

sortByDesc

v11.0.0 以前から

sortByDesc($callback, $options = SORT_REGULAR)
@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, SortDirection|'asc'|'desc'}>|(callable(TValue, TKey): mixed)|string|int $callback
@param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options
@return static
  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. v13.7.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) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string|int $callback, @param int $options, @return static]
  3. v13.8.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|int $callback, @param int $options, @return static]
    変更後
    sortByDesc($callback, $options = SORT_REGULAR) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, SortDirection|'asc'|'desc'}>|(callable(TValue, TKey): mixed)|string|int $callback, @param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options, @return static]

sortDesc

v11.0.0 以前から

sortDesc($options = SORT_REGULAR)
@param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options
@return static
  1. v11.0.0 追加
    変更後
    sortDesc($options = SORT_REGULAR) [@param int $options, @return static]
  2. v13.8.0 シグネチャ変更
    変更前
    sortDesc($options = SORT_REGULAR) [@param int $options, @return static]
    変更後
    sortDesc($options = SORT_REGULAR) [@param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options, @return static]

sortKeys

v11.0.0 以前から

sortKeys($options = SORT_REGULAR, $descending = false)
@param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options
@param SortDirection|bool $descending
@return static
  1. v11.0.0 追加
    変更後
    sortKeys($options = SORT_REGULAR, $descending = false) [@param int $options, @param bool $descending, @return static]
  2. v13.7.0 シグネチャ変更
    変更前
    sortKeys($options = SORT_REGULAR, $descending = false) [@param int $options, @param bool $descending, @return static]
    変更後
    sortKeys($options = SORT_REGULAR, $descending = false) [@param int $options, @param SortDirection|bool $descending, @return static]
  3. v13.8.0 シグネチャ変更
    変更前
    sortKeys($options = SORT_REGULAR, $descending = false) [@param int $options, @param SortDirection|bool $descending, @return static]
    変更後
    sortKeys($options = SORT_REGULAR, $descending = false) [@param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options, @param SortDirection|bool $descending, @return static]

sortKeysDesc

v11.0.0 以前から

sortKeysDesc($options = SORT_REGULAR)
@param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options
@return static
  1. v11.0.0 追加
    変更後
    sortKeysDesc($options = SORT_REGULAR) [@param int $options, @return static]
  2. v13.8.0 シグネチャ変更
    変更前
    sortKeysDesc($options = SORT_REGULAR) [@param int $options, @return static]
    変更後
    sortKeysDesc($options = SORT_REGULAR) [@param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options, @return static]

sortKeysUsing

v11.0.0 以前から

sortKeysUsing(callable $callback)
@param callable(TKey, TKey): int $callback
@return static
  1. v11.0.0 追加
    変更後
    sortKeysUsing(callable $callback) [@param callable(TKey, TKey): int $callback, @return static]

splice

v11.0.0 以前から

splice($offset, $length = null, $replacement = [])
@param int $offset
@param int|null $length
@param array<array-key, TValue> $replacement
@return static
  1. v11.0.0 追加
    変更後
    splice($offset, $length = null, $replacement = []) [@param int $offset, @param int|null $length, @param array<array-key, TValue> $replacement, @return static]

split

v11.0.0 以前から

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

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
  1. v11.0.0 追加
    変更後
    take($limit) [@param int $limit, @return static]

takeUntil

v11.0.0 以前から

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

takeWhile

v11.0.0 以前から

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

toBase

v11.0.0 以前から

toBase()
@return \Illuminate\Support\Collection<TKey, TValue>
  1. v11.0.0 追加
    変更後
    toBase() [@return \Illuminate\Support\Collection<TKey, TValue>]

transform

v11.0.0 以前から

transform(callable $callback)
@param callable(TValue, TKey): TMapValue $callback
@return $this
  1. v11.0.0 追加
    変更後
    transform(callable $callback) [@param callable(TValue, TKey): TValue $callback, @return $this]
  2. v12.20.0 シグネチャ変更
    変更前
    transform(callable $callback) [@param callable(TValue, TKey): TValue $callback, @return $this]
    変更後
    transform(callable $callback) [@param callable(TValue, TKey): TMapValue $callback]
  3. v12.21.0 シグネチャ変更
    変更前
    transform(callable $callback) [@param callable(TValue, TKey): TMapValue $callback]
    変更後
    transform(callable $callback) [@param callable(TValue, TKey): TMapValue $callback, @return $this]

undot

v11.0.0 以前から

undot()
@return static
  1. v11.0.0 追加
    変更後
    undot() [@return static]

union

v11.0.0 以前から

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

unique

v11.0.0 以前から

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

unshift

v11.8.0 から

unshift(...$values)
@param TValue ...$values
@return $this
  1. v11.8.0 追加
    変更後
    unshift(...$values) [@param TValue ...$values, @return $this]

values

v11.0.0 以前から

values()
@return static<int, TValue>
  1. v11.0.0 追加
    変更後
    values() [@return static<int, 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>>]