Enumerable

Illuminate\Support\Enumerable

interface src/Illuminate/Collections/Enumerable.php

__get

v11.0.0 以前から

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

__toString

v11.0.0 以前から

__toString()
@return string
  1. v11.0.0 追加
    変更後
    __toString() [@return string]

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]
  2. v13.7.0 シグネチャ変更
    変更前
    all() [@return array]
    変更後
    all() [@return array<TKey, TValue>]

average

v11.0.0 以前から

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

avg

v11.0.0 以前から

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

chunkBy

v13.30.0 から

chunkBy($key)
@param (callable(TValue, TKey): mixed)|string $key
@return static<int, static<TKey, TValue>>
  1. v13.30.0 追加
    変更後
    chunkBy($key) [@param (callable(TValue, TKey): mixed)|string $key, @return static<int, static<TKey, TValue>>]

chunkWhile

v11.0.0 以前から

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

collapse

v11.0.0 以前から

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

collect

v11.0.0 以前から

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

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 から

containsManyItems()
@return bool
  1. v12.46.0 追加
    変更後
    containsManyItems() [@return bool]

containsOneItem

v11.0.0 以前から

containsOneItem()
@return bool
  1. v11.0.0 追加
    変更後
    containsOneItem() [@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)
@param (callable(TValue, TKey): (array-key|\UnitEnum))|string|null $countBy
@return static<array-key, int>
  1. v11.0.0 追加
    変更後
    countBy($countBy = null) [@param (callable(TValue, TKey): array-key)|string|null $countBy, @return static<array-key, int>]
  2. v13.0.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>]

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

dd

v11.0.0 以前から

dd(...$args)
@param mixed ...$args
@return never
  1. v11.0.0 追加
    変更後
    dd(...$args) [@param mixed ...$args, @return never]

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]

dump

v11.0.0 以前から

dump(...$args)
@param mixed ...$args
@return $this
  1. v11.0.0 追加
    変更後
    dump(...$args) [@param mixed ...$args, @return $this]

duplicates

v11.0.0 以前から

duplicates($callback = null, $strict = false)
@param (callable(TValue): bool)|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]

duplicatesStrict

v11.0.0 以前から

duplicatesStrict($callback = null)
@param (callable(TValue): bool)|string|null $callback
@return static
  1. v11.0.0 追加
    変更後
    duplicatesStrict($callback = null) [@param (callable(TValue): bool)|string|null $callback, @return static]

each

v11.0.0 以前から

each(callable $callback)
@param callable(TValue, TKey): mixed $callback
@return $this
  1. v11.0.0 追加
    変更後
    each(callable $callback) [@param callable(TValue, TKey): mixed $callback, @return $this]

eachSpread

v11.0.0 以前から

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

empty

v11.0.0 以前から

static

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

escapeWhenCastingToString

v11.0.0 以前から

escapeWhenCastingToString($escape = true)
@param bool $escape
@return $this
  1. v11.0.0 追加
    変更後
    escapeWhenCastingToString($escape = true) [@param bool $escape, @return $this]

every

v11.0.0 以前から

every($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 追加
    変更後
    every($key, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|TValue|string $key, @param mixed $operator, @param mixed $value, @return bool]

except

v11.0.0 以前から

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

filter

v11.0.0 以前から

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

firstWhere

v11.0.0 以前から

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

flatMap

v11.0.0 以前から

flatMap(callable $callback)
@param callable(TValue, TKey): (\Illuminate\Support\Collection<TFlatMapKey, TFlatMapValue>|array<TFlatMapKey, TFlatMapValue>) $callback
@return static<TFlatMapKey, TFlatMapValue>
  1. v11.0.0 追加
    変更後
    flatMap(callable $callback) [@param callable(TValue, TKey): (\Illuminate\Support\Collection<TFlatMapKey, TFlatMapValue>|array<TFlatMapKey, TFlatMapValue>) $callback, @return static<TFlatMapKey, TFlatMapValue>]

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]
  2. v13.7.0 シグネチャ変更
    変更前
    flatten($depth = INF) [@param int $depth, @return static]
    変更後
    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>]

forPage

v11.0.0 以前から

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

get

v11.0.0 以前から

get($key, $default = null)
@param TKey $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]

getCachingIterator

v11.0.0 以前から

getCachingIterator($flags = \CachingIterator::CALL_TOSTRING)
@param int $flags
@return \CachingIterator
  1. v11.0.0 追加
    変更後
    getCachingIterator($flags = \CachingIterator::CALL_TOSTRING) [@param int $flags, @return \CachingIterator]

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)
@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)> >
  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. v13.0.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)> >]

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

hasMany

v13.0.0 から

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

hasSole

v13.0.0 から

hasSole($key = null, $operator = null, $value = null)
@param (callable(TValue, TKey): bool)|string|null $key
@param mixed $operator
@param mixed $value
@return bool
  1. v13.0.0 追加
    変更後
    hasSole($key = null, $operator = null, $value = null) [@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)
@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]

isNotEmpty

v11.0.0 以前から

isNotEmpty()
@return bool
  1. v11.0.0 追加
    変更後
    isNotEmpty() [@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]

jsonSerialize

v11.0.0 以前から

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

keyBy

v11.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>
  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. v13.0.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>]

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 = [])
@param \Illuminate\Contracts\Support\Arrayable<TMakeKey, TMakeValue>|iterable<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>|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>]

mapInto

v11.0.0 以前から

mapInto($class)
@param class-string<TMapIntoValue> $class
@return static<TKey, TMapIntoValue>
  1. v11.0.0 追加
    変更後
    mapInto($class) [@param class-string<TMapIntoValue> $class, @return static<TKey, TMapIntoValue>]

mapSpread

v11.0.0 以前から

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

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

mapToGroups

v11.0.0 以前から

mapToGroups(callable $callback)
@param callable(TValue, TKey): array<TMapToGroupsKey, TMapToGroupsValue> $callback
@return static<TMapToGroupsKey, static<int, TMapToGroupsValue>>
  1. v11.0.0 追加
    変更後
    mapToGroups(callable $callback) [@param callable(TValue, TKey): array<TMapToGroupsKey, TMapToGroupsValue> $callback, @return static<TMapToGroupsKey, static<int, TMapToGroupsValue>>]

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

max

v11.0.0 以前から

max($callback = null)
@param (callable(TValue): TMaxResult)|string|null $callback
@return ($callback is callable ? ?TMaxResult : ($callback is null ? ?TValue : mixed))
  1. v11.0.0 追加
    変更後
    max($callback = null) [@param (callable(TValue):mixed)|string|null $callback, @return mixed]
  2. v13.8.0 シグネチャ変更
    変更前
    max($callback = null) [@param (callable(TValue):mixed)|string|null $callback, @return mixed]
    変更後
    max($callback = null) [@param (callable(TValue): TMaxResult)|string|null $callback, @return ($callback is callable ? ?TMaxResult : ($callback is null ? ?TValue : mixed))]

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

min

v11.0.0 以前から

min($callback = null)
@param (callable(TValue): TMinResult)|string|null $callback
@return ($callback is callable ? ?TMinResult : ($callback is null ? ?TValue : mixed))
  1. v11.0.0 追加
    変更後
    min($callback = null) [@param (callable(TValue):mixed)|string|null $callback, @return mixed]
  2. v13.8.0 シグネチャ変更
    変更前
    min($callback = null) [@param (callable(TValue):mixed)|string|null $callback, @return mixed]
    変更後
    min($callback = null) [@param (callable(TValue): TMinResult)|string|null $callback, @return ($callback is callable ? ?TMinResult : ($callback is null ? ?TValue : mixed))]

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]

nth

v11.0.0 以前から

nth($step, $offset = 0)
@param int $step
@param int $offset
@return static
  1. v11.0.0 追加
    変更後
    nth($step, $offset = 0) [@param int $step, @param int $offset, @return static]

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

partition

v11.0.0 以前から

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

pipe

v11.0.0 以前から

pipe(callable $callback)
@param callable($this): TPipeReturnType $callback
@return TPipeReturnType
  1. v11.0.0 追加
    変更後
    pipe(callable $callback) [@param callable($this): TPipeReturnType $callback, @return TPipeReturnType]

pipeInto

v11.0.0 以前から

pipeInto($class)
@param class-string<TPipeIntoValue> $class
@return TPipeIntoValue
  1. v11.0.0 追加
    変更後
    pipeInto($class) [@param class-string<TPipeIntoValue> $class, @return TPipeIntoValue]

pipeThrough

v11.0.0 以前から

pipeThrough($pipes)
@param array<callable> $pipes
@return mixed
  1. v11.0.0 追加
    変更後
    pipeThrough($pipes) [@param array<callable> $pipes, @return mixed]

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

proxy

v11.0.0 以前から

static

static proxy($method)
@param string $method
@return void
  1. v11.0.0 追加
    変更後
    static proxy($method) [@param string $method, @return void]

random

v11.0.0 以前から

random($number = null)
@param int|null $number
@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. v13.18.0 シグネチャ変更
    変更前
    random($number = null) [@param int|null $number, @return static<int, TValue>|TValue]
    変更後
    random($number = null) [@param int|null $number, @return ($number is null ? TValue : static<int, TValue>)]

range

v11.0.0 以前から

static

static range($from, $to, $step = 1)
@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]
  2. v12.0.0 シグネチャ変更
    変更前
    static range($from, $to) [@param int $from, @param int $to, @return static]
    変更後
    static range($from, $to, $step = 1) [@param int $from, @param int $to, @param int $step, @return static]
  3. v13.7.0 シグネチャ変更
    変更前
    static range($from, $to, $step = 1) [@param int $from, @param int $to, @param int $step, @return static]
    変更後
    static range($from, $to, $step = 1) [@param int $from, @param int $to, @param int $step, @return static<int, int>]

reduce

v11.0.0 以前から

reduce(callable $callback, $initial = null)
@param callable(TReduceInitial|TReduceReturnType, TValue, TKey): TReduceReturnType $callback
@param TReduceInitial $initial
@return TReduceInitial|TReduceReturnType
  1. v11.0.0 追加
    変更後
    reduce(callable $callback, $initial = null) [@param callable(TReduceInitial|TReduceReturnType, TValue, TKey): TReduceReturnType $callback, @param TReduceInitial $initial, @return TReduceReturnType]
  2. v11.35.0 シグネチャ変更
    変更前
    reduce(callable $callback, $initial = null) [@param callable(TReduceInitial|TReduceReturnType, TValue, TKey): TReduceReturnType $callback, @param TReduceInitial $initial, @return TReduceReturnType]
    変更後
    reduce(callable $callback, $initial = null) [@param callable(TReduceInitial|TReduceReturnType, TValue, TKey): TReduceReturnType $callback, @param TReduceInitial $initial, @return TReduceInitial|TReduceReturnType]

reduceInto

v13.19.0 から

reduceInto($initial, callable $callback)
@param TReduceIntoInitial $initial
@param callable(TReduceIntoInitial, TValue, TKey): void $callback
@return TReduceIntoInitial
  1. v13.19.0 追加
    変更後
    reduceInto($initial, callable $callback) [@param TReduceIntoInitial $initial, @param callable(TReduceIntoInitial, TValue, TKey): void $callback, @return TReduceIntoInitial]

reduceSpread

v11.0.0 以前から

reduceSpread(callable $callback, ...$initial)
@param callable $callback
@param mixed ...$initial
@return array
  1. v11.0.0 追加
    変更後
    reduceSpread(callable $callback, ...$initial) [@param callable $callback, @param mixed ...$initial, @return array]

reject

v11.0.0 以前から

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

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]

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 int $size
@param 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>]

sole

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

some

v11.0.0 以前から

some($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 追加
    変更後
    some($key, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|TValue|string $key, @param mixed $operator, @param mixed $value, @return bool]

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 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 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 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 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 bool $descending
@return static
  1. v11.0.0 追加
    変更後
    sortKeys($options = SORT_REGULAR, $descending = false) [@param int $options, @param bool $descending, @return static]
  2. v13.8.0 シグネチャ変更
    変更前
    sortKeys($options = SORT_REGULAR, $descending = false) [@param int $options, @param 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 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]

split

v11.0.0 以前から

split($numberOfGroups)
@param int $numberOfGroups
@return static<int, static>
  1. v11.0.0 追加
    変更後
    split($numberOfGroups) [@param int $numberOfGroups, @return static<int, static>]

splitIn

v11.0.0 以前から

splitIn($numberOfGroups)
@param int $numberOfGroups
@return static<int, static>
  1. v11.0.0 追加
    変更後
    splitIn($numberOfGroups) [@param int $numberOfGroups, @return static<int, static>]

sum

v11.0.0 以前から

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

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]

tap

v11.0.0 以前から

tap(callable $callback)
@param callable(TValue): mixed $callback
@return $this
  1. v11.0.0 追加
    変更後
    tap(callable $callback) [@param callable(TValue): mixed $callback, @return $this]

times

v11.0.0 以前から

static

static times($number, ?callable $callback = null)
@param int $number
@param (callable(int): TTimesValue)|null $callback
@return static<int, TTimesValue>
  1. v11.0.0 追加
    変更後
    static times($number, callable $callback = null) [@param int $number, @param callable|null $callback, @return static]
  2. v11.3.0 シグネチャ変更
    変更前
    static times($number, callable $callback = null) [@param int $number, @param callable|null $callback, @return static]
    変更後
    static times($number, ?callable $callback = null) [@param int $number, @param callable|null $callback, @return static]
  3. v13.7.0 シグネチャ変更
    変更前
    static times($number, ?callable $callback = null) [@param int $number, @param callable|null $callback, @return static]
    変更後
    static times($number, ?callable $callback = null) [@param int $number, @param (callable(int): TTimesValue)|null $callback, @return static<int, TTimesValue>]

toArray

v11.0.0 以前から

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

toJson

v11.0.0 以前から

toJson($options = 0)
@param int $options
@return string
  1. v11.0.0 追加
    変更後
    toJson($options = 0) [@param int $options, @return string]

toPrettyJson

v12.26.0 から

toPrettyJson(int $options = 0)
@param int $options
@return string
  1. v12.26.0 追加
    変更後
    toPrettyJson() [@return string]
  2. v12.27.0 シグネチャ変更
    変更前
    toPrettyJson() [@return string]
    変更後
    toPrettyJson(int $options = 0) [@param int $options, @return string]

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]

uniqueStrict

v11.0.0 以前から

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

unless

v11.0.0 以前から

unless($value, callable $callback, ?callable $default = null)
@param bool $value
@param (callable($this): TUnlessReturnType) $callback
@param (callable($this): TUnlessReturnType)|null $default
@return $this|TUnlessReturnType
  1. v11.0.0 追加
    変更後
    unless($value, callable $callback, callable $default = null) [@param bool $value, @param (callable($this): TUnlessReturnType) $callback, @param (callable($this): TUnlessReturnType)|null $default, @return $this|TUnlessReturnType]
  2. v11.3.0 シグネチャ変更
    変更前
    unless($value, callable $callback, callable $default = null) [@param bool $value, @param (callable($this): TUnlessReturnType) $callback, @param (callable($this): TUnlessReturnType)|null $default, @return $this|TUnlessReturnType]
    変更後
    unless($value, callable $callback, ?callable $default = null) [@param bool $value, @param (callable($this): TUnlessReturnType) $callback, @param (callable($this): TUnlessReturnType)|null $default, @return $this|TUnlessReturnType]

unlessEmpty

v11.0.0 以前から

unlessEmpty(callable $callback, ?callable $default = null)
@param callable($this): TUnlessEmptyReturnType $callback
@param (callable($this): TUnlessEmptyReturnType)|null $default
@return $this|TUnlessEmptyReturnType
  1. v11.0.0 追加
    変更後
    unlessEmpty(callable $callback, callable $default = null) [@param callable($this): TUnlessEmptyReturnType $callback, @param (callable($this): TUnlessEmptyReturnType)|null $default, @return $this|TUnlessEmptyReturnType]
  2. v11.3.0 シグネチャ変更
    変更前
    unlessEmpty(callable $callback, callable $default = null) [@param callable($this): TUnlessEmptyReturnType $callback, @param (callable($this): TUnlessEmptyReturnType)|null $default, @return $this|TUnlessEmptyReturnType]
    変更後
    unlessEmpty(callable $callback, ?callable $default = null) [@param callable($this): TUnlessEmptyReturnType $callback, @param (callable($this): TUnlessEmptyReturnType)|null $default, @return $this|TUnlessEmptyReturnType]

unlessNotEmpty

v11.0.0 以前から

unlessNotEmpty(callable $callback, ?callable $default = null)
@param callable($this): TUnlessNotEmptyReturnType $callback
@param (callable($this): TUnlessNotEmptyReturnType)|null $default
@return $this|TUnlessNotEmptyReturnType
  1. v11.0.0 追加
    変更後
    unlessNotEmpty(callable $callback, callable $default = null) [@param callable($this): TUnlessNotEmptyReturnType $callback, @param (callable($this): TUnlessNotEmptyReturnType)|null $default, @return $this|TUnlessNotEmptyReturnType]
  2. v11.3.0 シグネチャ変更
    変更前
    unlessNotEmpty(callable $callback, callable $default = null) [@param callable($this): TUnlessNotEmptyReturnType $callback, @param (callable($this): TUnlessNotEmptyReturnType)|null $default, @return $this|TUnlessNotEmptyReturnType]
    変更後
    unlessNotEmpty(callable $callback, ?callable $default = null) [@param callable($this): TUnlessNotEmptyReturnType $callback, @param (callable($this): TUnlessNotEmptyReturnType)|null $default, @return $this|TUnlessNotEmptyReturnType]

unwrap

v11.0.0 以前から

static

static unwrap($value)
@param array<TUnwrapKey, TUnwrapValue>|static<TUnwrapKey, TUnwrapValue> $value
@return array<TUnwrapKey, TUnwrapValue>
  1. v11.0.0 追加
    変更後
    static unwrap($value) [@param array<TUnwrapKey, TUnwrapValue>|static<TUnwrapKey, TUnwrapValue> $value, @return array<TUnwrapKey, TUnwrapValue>]

values

v11.0.0 以前から

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

when

v11.0.0 以前から

when($value, ?callable $callback = null, ?callable $default = null)
@param bool $value
@param (callable($this): TWhenReturnType)|null $callback
@param (callable($this): TWhenReturnType)|null $default
@return $this|TWhenReturnType
  1. v11.0.0 追加
    変更後
    when($value, callable $callback = null, callable $default = null) [@param bool $value, @param (callable($this): TWhenReturnType)|null $callback, @param (callable($this): TWhenReturnType)|null $default, @return $this|TWhenReturnType]
  2. v11.3.0 シグネチャ変更
    変更前
    when($value, callable $callback = null, callable $default = null) [@param bool $value, @param (callable($this): TWhenReturnType)|null $callback, @param (callable($this): TWhenReturnType)|null $default, @return $this|TWhenReturnType]
    変更後
    when($value, ?callable $callback = null, ?callable $default = null) [@param bool $value, @param (callable($this): TWhenReturnType)|null $callback, @param (callable($this): TWhenReturnType)|null $default, @return $this|TWhenReturnType]

whenEmpty

v11.0.0 以前から

whenEmpty(callable $callback, ?callable $default = null)
@param (callable($this): TWhenEmptyReturnType) $callback
@param (callable($this): TWhenEmptyReturnType)|null $default
@return $this|TWhenEmptyReturnType
  1. v11.0.0 追加
    変更後
    whenEmpty(callable $callback, callable $default = null) [@param (callable($this): TWhenEmptyReturnType) $callback, @param (callable($this): TWhenEmptyReturnType)|null $default, @return $this|TWhenEmptyReturnType]
  2. v11.3.0 シグネチャ変更
    変更前
    whenEmpty(callable $callback, callable $default = null) [@param (callable($this): TWhenEmptyReturnType) $callback, @param (callable($this): TWhenEmptyReturnType)|null $default, @return $this|TWhenEmptyReturnType]
    変更後
    whenEmpty(callable $callback, ?callable $default = null) [@param (callable($this): TWhenEmptyReturnType) $callback, @param (callable($this): TWhenEmptyReturnType)|null $default, @return $this|TWhenEmptyReturnType]

whenNotEmpty

v11.0.0 以前から

whenNotEmpty(callable $callback, ?callable $default = null)
@param callable($this): TWhenNotEmptyReturnType $callback
@param (callable($this): TWhenNotEmptyReturnType)|null $default
@return $this|TWhenNotEmptyReturnType
  1. v11.0.0 追加
    変更後
    whenNotEmpty(callable $callback, callable $default = null) [@param callable($this): TWhenNotEmptyReturnType $callback, @param (callable($this): TWhenNotEmptyReturnType)|null $default, @return $this|TWhenNotEmptyReturnType]
  2. v11.3.0 シグネチャ変更
    変更前
    whenNotEmpty(callable $callback, callable $default = null) [@param callable($this): TWhenNotEmptyReturnType $callback, @param (callable($this): TWhenNotEmptyReturnType)|null $default, @return $this|TWhenNotEmptyReturnType]
    変更後
    whenNotEmpty(callable $callback, ?callable $default = null) [@param callable($this): TWhenNotEmptyReturnType $callback, @param (callable($this): TWhenNotEmptyReturnType)|null $default, @return $this|TWhenNotEmptyReturnType]

where

v11.0.0 以前から

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

whereBetween

v11.0.0 以前から

whereBetween($key, $values)
@param string $key
@param \Illuminate\Contracts\Support\Arrayable|iterable $values
@return static
  1. v11.0.0 追加
    変更後
    whereBetween($key, $values) [@param string $key, @param \Illuminate\Contracts\Support\Arrayable|iterable $values, @return static]

whereIn

v11.0.0 以前から

whereIn($key, $values, $strict = false)
@param string $key
@param \Illuminate\Contracts\Support\Arrayable|iterable $values
@param bool $strict
@return static
  1. v11.0.0 追加
    変更後
    whereIn($key, $values, $strict = false) [@param string $key, @param \Illuminate\Contracts\Support\Arrayable|iterable $values, @param bool $strict, @return static]

whereInstanceOf

v11.0.0 以前から

whereInstanceOf($type)
@param class-string<TWhereInstanceOf>|array<array-key, class-string<TWhereInstanceOf>> $type
@return static<TKey, TWhereInstanceOf>
  1. v11.0.0 追加
    変更後
    whereInstanceOf($type) [@param class-string<TWhereInstanceOf>|array<array-key, class-string<TWhereInstanceOf>> $type, @return static<TKey, TWhereInstanceOf>]

whereInStrict

v11.0.0 以前から

whereInStrict($key, $values)
@param string $key
@param \Illuminate\Contracts\Support\Arrayable|iterable $values
@return static
  1. v11.0.0 追加
    変更後
    whereInStrict($key, $values) [@param string $key, @param \Illuminate\Contracts\Support\Arrayable|iterable $values, @return static]

whereNotBetween

v11.0.0 以前から

whereNotBetween($key, $values)
@param string $key
@param \Illuminate\Contracts\Support\Arrayable|iterable $values
@return static
  1. v11.0.0 追加
    変更後
    whereNotBetween($key, $values) [@param string $key, @param \Illuminate\Contracts\Support\Arrayable|iterable $values, @return static]

whereNotIn

v11.0.0 以前から

whereNotIn($key, $values, $strict = false)
@param string $key
@param \Illuminate\Contracts\Support\Arrayable|iterable $values
@param bool $strict
@return static
  1. v11.0.0 追加
    変更後
    whereNotIn($key, $values, $strict = false) [@param string $key, @param \Illuminate\Contracts\Support\Arrayable|iterable $values, @param bool $strict, @return static]

whereNotInStrict

v11.0.0 以前から

whereNotInStrict($key, $values)
@param string $key
@param \Illuminate\Contracts\Support\Arrayable|iterable $values
@return static
  1. v11.0.0 追加
    変更後
    whereNotInStrict($key, $values) [@param string $key, @param \Illuminate\Contracts\Support\Arrayable|iterable $values, @return static]

whereNotNull

v11.0.0 以前から

whereNotNull($key = null)
@param string|null $key
@return static
  1. v11.0.0 追加
    変更後
    whereNotNull($key = null) [@param string|null $key, @return static]

whereNull

v11.0.0 以前から

whereNull($key = null)
@param string|null $key
@return static
  1. v11.0.0 追加
    変更後
    whereNull($key = null) [@param string|null $key, @return static]

whereStrict

v11.0.0 以前から

whereStrict($key, $value)
@param string $key
@param mixed $value
@return static
  1. v11.0.0 追加
    変更後
    whereStrict($key, $value) [@param string $key, @param mixed $value, @return static]

wrap

v11.0.0 以前から

static

static wrap($value)
@param iterable<array-key, TWrapValue>|TWrapValue $value
@return static<array-key, TWrapValue>
  1. v11.0.0 追加
    変更後
    static wrap($value) [@param iterable<array-key, TWrapValue>|TWrapValue $value, @return static<array-key, TWrapValue>]

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