EnumeratesValues
Illuminate\Support\Traits\EnumeratesValues
trait src/Illuminate/Collections/Traits/EnumeratesValues.php
__get
v11.0.0 以前から
__get($key)
@param string $key
@return mixed
-
v11.0.0
追加
- 変更後
__get($key) [@param string $key, @return mixed]
__toString
v11.0.0 以前から
__toString()
@return string
-
v11.0.0
追加
- 変更後
__toString() [@return string]
average
v11.0.0 以前から
average($callback = null)
@param (callable(TValue): float|int)|string|null $callback
@return float|int|null
-
v11.0.0
追加
- 変更後
average($callback = null) [@param (callable(TValue): float|int)|string|null $callback, @return float|int|null]
avg
v11.8.0 から
avg($callback = null)
@param (callable(TValue): float|int)|string|null $callback
@return float|int|null
-
v11.8.0
追加
- 変更後
avg($callback = null) [@param (callable(TValue): float|int)|string|null $callback, @return float|int|null]
chunkBy
v13.30.0 から
chunkBy($key)
@param (callable(TValue, TKey): mixed)|string $key
@return static<int, static<TKey, TValue>>
-
v13.30.0
追加
- 変更後
chunkBy($key) [@param (callable(TValue, TKey): mixed)|string $key, @return static<int, static<TKey, TValue>>]
collect
v11.0.0 以前から
collect()
@return \Illuminate\Support\Collection<TKey, TValue>
-
v11.0.0
追加
- 変更後
collect() [@return \Illuminate\Support\Collection<TKey, TValue>]
dd
v11.0.0 以前から
dd(...$args)
@param mixed ...$args
@return never
-
v11.0.0
追加
- 変更後
dd(...$args) [@param mixed ...$args, @return never]
dump
v11.0.0 以前から
dump(...$args)
@param mixed ...$args
@return $this
-
v11.0.0
追加
- 変更後
dump(...$args) [@param mixed ...$args, @return $this]
each
v11.0.0 以前から
each(callable $callback)
@param callable(TValue, TKey): mixed $callback
@return $this
-
v11.0.0
追加
- 変更後
each(callable $callback) [@param callable(TValue, TKey): mixed $callback, @return $this]
eachSpread
v11.0.0 以前から
eachSpread(callable $callback)
@return static
-
v11.0.0
追加
- 変更後
eachSpread(callable $callback) [@return static]
empty
v11.0.0 以前から
static
static empty(...$args)
@return static
ensure
v11.0.0 以前から
ensure($type)
@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>>|'string'|'int'|'float'|'bool'|'array'|'null' $type
@return static<TKey, TEnsureOfType>
-
v11.0.0
追加
- 変更後
ensure($type) [@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>> $type, @return static<TKey, TEnsureOfType>]
-
v11.44.1
シグネチャ変更
- 変更前
ensure($type) [@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>> $type, @return static<TKey, TEnsureOfType>]- 変更後
ensure($type) [@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>>|scalar|'array'|'null' $type, @return static<TKey, TEnsureOfType>]
-
v11.44.2
シグネチャ変更
- 変更前
ensure($type) [@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>>|scalar|'array'|'null' $type, @return static<TKey, TEnsureOfType>]- 変更後
ensure($type) [@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>>|'string'|'int'|'float'|'bool'|'array'|'null' $type, @return static<TKey, TEnsureOfType>]
-
v12.0.0
シグネチャ変更
- 変更前
ensure($type) [@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>>|'string'|'int'|'float'|'bool'|'array'|'null' $type, @return static<TKey, TEnsureOfType>]- 変更後
ensure($type) [@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>> $type, @return static<TKey, TEnsureOfType>]
-
v12.1.1
シグネチャ変更
- 変更前
ensure($type) [@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>> $type, @return static<TKey, TEnsureOfType>]- 変更後
ensure($type) [@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>>|scalar|'array'|'null' $type, @return static<TKey, TEnsureOfType>]
-
v12.2.0
シグネチャ変更
- 変更前
ensure($type) [@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>>|scalar|'array'|'null' $type, @return static<TKey, TEnsureOfType>]- 変更後
ensure($type) [@param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>>|'string'|'int'|'float'|'bool'|'array'|'null' $type, @return static<TKey, TEnsureOfType>]
escapeWhenCastingToString
v11.0.0 以前から
escapeWhenCastingToString($escape = true)
@param bool $escape
@return $this
-
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
-
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]
firstWhere
v11.0.0 以前から
firstWhere($key, $operator = null, $value = null)
@param callable|string $key
@param mixed $operator
@param mixed $value
@return TValue|null
-
v11.0.0
追加
- 変更後
firstWhere($key, $operator = null, $value = null) [@param callable|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>
-
v11.0.0
追加
- 変更後
flatMap(callable $callback) [@param callable(TValue, TKey): (\Illuminate\Support\Collection<TFlatMapKey, TFlatMapValue>|array<TFlatMapKey, TFlatMapValue>) $callback, @return static<TFlatMapKey, TFlatMapValue>]
forPage
v11.0.0 以前から
forPage($page, $perPage)
@param int $page
@param int $perPage
@return static
-
v11.0.0
追加
- 変更後
forPage($page, $perPage) [@param int $page, @param int $perPage, @return static]
fromJson
v12.8.0 から
static
static fromJson($json, $depth = 512, $flags = 0, ...$args)
@param string $json
@param int $depth
@param int $flags
@return static<TKey, TValue>
-
v12.8.0
追加
- 変更後
static fromJson($json, $depth = 512, $flags = 0) [@param string $json, @param int $depth, @param int $flags, @return static<TKey, TValue>]
-
v13.3.0
シグネチャ変更
- 変更前
static fromJson($json, $depth = 512, $flags = 0) [@param string $json, @param int $depth, @param int $flags, @return static<TKey, TValue>]- 変更後
static fromJson($json, $depth = 512, $flags = 0, ...$args) [@param string $json, @param int $depth, @param int $flags, @return static<TKey, TValue>]
getCachingIterator
v11.0.0 以前から
getCachingIterator($flags = \CachingIterator::CALL_TOSTRING)
@param int $flags
@return \CachingIterator
-
v11.0.0
追加
- 変更後
getCachingIterator($flags = \CachingIterator::CALL_TOSTRING) [@param int $flags, @return \CachingIterator]
hasMany
v12.50.0 から
hasMany($key = null, $operator = null, $value = null): bool
@param (callable(TValue, TKey): bool)|string|null $key
@param mixed $operator
@param mixed $value
@return bool
-
v12.50.0
追加
- 変更後
hasMany($key = null, $operator = null, $value = null): bool [@param (callable(TValue, TKey): bool)|string|null $key, @param mixed $operator, @param mixed $value, @return bool]
isNotEmpty
v11.0.0 以前から
isNotEmpty()
@return bool
-
v11.0.0
追加
- 変更後
isNotEmpty() [@return bool]
jsonSerialize
v11.0.0 以前から
jsonSerialize(): array
@return array<TKey, mixed>
-
v11.0.0
追加
- 変更後
jsonSerialize(): array [@return array<TKey, mixed>]
make
v11.0.0 以前から
static
static make($items = [], ...$args)
@param \Illuminate\Contracts\Support\Arrayable<TMakeKey, TMakeValue>|iterable<TMakeKey, TMakeValue>|null $items
@return static<TMakeKey, TMakeValue>
-
v11.0.0
追加
- 変更後
static make($items = []) [@param \Illuminate\Contracts\Support\Arrayable<TMakeKey, TMakeValue>|iterable<TMakeKey, TMakeValue>|null $items, @return static<TMakeKey, TMakeValue>]
-
v13.3.0
シグネチャ変更
- 変更前
static make($items = []) [@param \Illuminate\Contracts\Support\Arrayable<TMakeKey, TMakeValue>|iterable<TMakeKey, TMakeValue>|null $items, @return static<TMakeKey, TMakeValue>]- 変更後
static make($items = [], ...$args) [@param \Illuminate\Contracts\Support\Arrayable<TMakeKey, TMakeValue>|iterable<TMakeKey, TMakeValue>|null $items, @return static<TMakeKey, TMakeValue>]
mapInto
v11.0.0 以前から
mapInto($class)
@param class-string<TMapIntoValue> $class
@return static<TKey, TMapIntoValue>
-
v11.0.0
追加
- 変更後
mapInto($class) [@param class-string<TMapIntoValue> $class, @return static<TKey, TMapIntoValue>]
mapSpread
v11.0.0 以前から
mapSpread(callable $callback)
@param callable(mixed...): TMapSpreadValue $callback
@return static<TKey, TMapSpreadValue>
-
v11.0.0
追加
- 変更後
mapSpread(callable $callback) [@param callable(mixed...): TMapSpreadValue $callback, @return static<TKey, TMapSpreadValue>]
mapToGroups
v11.0.0 以前から
mapToGroups(callable $callback)
@param callable(TValue, TKey): array<TMapToGroupsKey, TMapToGroupsValue> $callback
@return static<TMapToGroupsKey, static<int, TMapToGroupsValue>>
-
v11.0.0
追加
- 変更後
mapToGroups(callable $callback) [@param callable(TValue, TKey): array<TMapToGroupsKey, TMapToGroupsValue> $callback, @return static<TMapToGroupsKey, static<int, TMapToGroupsValue>>]
max
v11.0.0 以前から
max($callback = null)
@param (callable(TValue): TMaxResult)|string|null $callback
@return ($callback is callable ? ?TMaxResult : ($callback is null ? ?TValue : mixed))
-
v11.0.0
追加
- 変更後
max($callback = null) [@param (callable(TValue):mixed)|string|null $callback, @return mixed]
-
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))]
min
v11.0.0 以前から
min($callback = null)
@param (callable(TValue): TMinResult)|string|null $callback
@return ($callback is callable ? ?TMinResult : ($callback is null ? ?TValue : mixed))
-
v11.0.0
追加
- 変更後
min($callback = null) [@param (callable(TValue):mixed)|string|null $callback, @return mixed]
-
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))]
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>>
-
v11.0.0
追加
- 変更後
partition($key, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|TValue|string $key, @param TValue|string|null $operator, @param TValue|null $value, @return static<int<0, 1>, static<TKey, TValue>>]
-
v12.22.0
シグネチャ変更
- 変更前
partition($key, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|TValue|string $key, @param TValue|string|null $operator, @param TValue|null $value, @return static<int<0, 1>, static<TKey, TValue>>]- 変更後
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>>]
percentage
v11.0.0 以前から
percentage(callable $callback, int $precision = 2)
@param (callable(TValue, TKey): bool) $callback
@param int $precision
@return float|null
-
v11.0.0
追加
- 変更後
percentage(callable $callback, int $precision = 2) [@param (callable(TValue, TKey): bool) $callback, @param int $precision, @return float|null]
pipe
v11.0.0 以前から
pipe(callable $callback)
@param callable($this): TPipeReturnType $callback
@return TPipeReturnType
-
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
-
v11.0.0
追加
- 変更後
pipeInto($class) [@param class-string<TPipeIntoValue> $class, @return TPipeIntoValue]
pipeThrough
v11.0.0 以前から
pipeThrough($callbacks)
@param array<callable> $callbacks
@return mixed
-
v11.0.0
追加
- 変更後
pipeThrough($callbacks) [@param array<callable> $callbacks, @return mixed]
proxy
v11.0.0 以前から
static
static proxy($method)
@param string $method
@return void
-
v11.0.0
追加
- 変更後
static proxy($method) [@param string $method, @return void]
reduce
v11.0.0 以前から
reduce(callable $callback, $initial = null)
@param callable(TReduceInitial|TReduceReturnType, TValue, TKey): TReduceReturnType $callback
@param TReduceInitial $initial
@return TReduceInitial|TReduceReturnType
-
v11.0.0
追加
- 変更後
reduce(callable $callback, $initial = null) [@param callable(TReduceInitial|TReduceReturnType, TValue, TKey): TReduceReturnType $callback, @param TReduceInitial $initial, @return TReduceReturnType]
-
v13.10.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
-
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
-
v11.0.0
追加
- 変更後
reduceSpread(callable $callback, ...$initial) [@param callable $callback, @param mixed ...$initial, @return array]
reduceWithKeys
v11.0.0 以前から
reduceWithKeys(callable $callback, $initial = null)
@param callable(TReduceWithKeysInitial|TReduceWithKeysReturnType, TValue, TKey): TReduceWithKeysReturnType $callback
@param TReduceWithKeysInitial $initial
@return TReduceWithKeysInitial|TReduceWithKeysReturnType
-
v11.0.0
追加
- 変更後
reduceWithKeys(callable $callback, $initial = null) [@param callable(TReduceWithKeysInitial|TReduceWithKeysReturnType, TValue, TKey): TReduceWithKeysReturnType $callback, @param TReduceWithKeysInitial $initial, @return TReduceWithKeysReturnType]
-
v13.10.0
シグネチャ変更
- 変更前
reduceWithKeys(callable $callback, $initial = null) [@param callable(TReduceWithKeysInitial|TReduceWithKeysReturnType, TValue, TKey): TReduceWithKeysReturnType $callback, @param TReduceWithKeysInitial $initial, @return TReduceWithKeysReturnType]- 変更後
reduceWithKeys(callable $callback, $initial = null) [@param callable(TReduceWithKeysInitial|TReduceWithKeysReturnType, TValue, TKey): TReduceWithKeysReturnType $callback, @param TReduceWithKeysInitial $initial, @return TReduceWithKeysInitial|TReduceWithKeysReturnType]
reject
v11.0.0 以前から
reject($callback = true)
@param (callable(TValue, TKey): bool)|bool|TValue $callback
@return static
-
v11.0.0
追加
- 変更後
reject($callback = true) [@param (callable(TValue, TKey): bool)|bool|TValue $callback, @return static]
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
-
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]
sum
v11.0.0 以前から
sum($callback = null)
@param (callable(TValue, TKey): TReturnType)|string|null $callback
@return ($callback is string ? mixed : ($callback is callable ? TReturnType : mixed))
-
v11.0.0
追加
- 変更後
sum($callback = null) [@param (callable(TValue): mixed)|string|null $callback, @return mixed]
-
v12.3.0
シグネチャ変更
- 変更前
sum($callback = null) [@param (callable(TValue): mixed)|string|null $callback, @return mixed]- 変更後
sum($callback = null) [@param (callable(TValue): TReturnType)|string|null $callback, @return ($callback is callable ? TReturnType : mixed)]
-
v13.3.0
シグネチャ変更
- 変更前
sum($callback = null) [@param (callable(TValue): TReturnType)|string|null $callback, @return ($callback is callable ? TReturnType : mixed)]- 変更後
sum($callback = null) [@param (callable(TValue, TKey): TReturnType)|string|null $callback, @return ($callback is callable ? TReturnType : mixed)]
-
v13.32.0
シグネチャ変更
- 変更前
sum($callback = null) [@param (callable(TValue, TKey): TReturnType)|string|null $callback, @return ($callback is callable ? TReturnType : mixed)]- 変更後
sum($callback = null) [@param (callable(TValue, TKey): TReturnType)|string|null $callback, @return ($callback is string ? mixed : ($callback is callable ? TReturnType : mixed))]
tap
v11.0.0 以前から
tap(callable $callback)
@param callable($this): mixed $callback
@return $this
-
v11.0.0
追加
- 変更後
tap(callable $callback) [@param callable($this): mixed $callback, @return $this]
times
v11.0.0 以前から
static
static times($number, ?callable $callback = null, ...$args)
@param int $number
@param (callable(int): TTimesValue)|null $callback
@return static<int, TTimesValue>
-
v11.0.0
追加
- 変更後
static times($number, callable $callback = null) [@param int $number, @param (callable(int): TTimesValue)|null $callback, @return static<int, TTimesValue>]
-
v11.3.0
シグネチャ変更
- 変更前
static times($number, callable $callback = null) [@param int $number, @param (callable(int): TTimesValue)|null $callback, @return static<int, TTimesValue>]- 変更後
static times($number, ?callable $callback = null) [@param int $number, @param (callable(int): TTimesValue)|null $callback, @return static<int, TTimesValue>]
-
v13.3.0
シグネチャ変更
- 変更前
static times($number, ?callable $callback = null) [@param int $number, @param (callable(int): TTimesValue)|null $callback, @return static<int, TTimesValue>]- 変更後
static times($number, ?callable $callback = null, ...$args) [@param int $number, @param (callable(int): TTimesValue)|null $callback, @return static<int, TTimesValue>]
toArray
v11.0.0 以前から
toArray()
@return array<TKey, mixed>
-
v11.0.0
追加
- 変更後
toArray() [@return array<TKey, mixed>]
toJson
v11.0.0 以前から
toJson($options = 0)
@param int $options
@return string
-
v11.0.0
追加
- 変更後
toJson($options = 0) [@param int $options, @return string]
toPrettyJson
v12.26.0 から
toPrettyJson(int $options = 0)
@param int $options
@return string
unique
v11.0.0 以前から
unique($key = null, $strict = false)
@param (callable(TValue, TKey): mixed)|string|null $key
@param bool $strict
@return static
-
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
-
v11.0.0
追加
- 変更後
uniqueStrict($key = null) [@param (callable(TValue, TKey): mixed)|string|null $key, @return static]
unlessEmpty
v11.0.0 以前から
unlessEmpty(callable $callback, ?callable $default = null)
@param callable($this): TUnlessEmptyReturnType $callback
@param (callable($this): TUnlessEmptyReturnType)|null $default
@return $this|TUnlessEmptyReturnType
-
v11.0.0
追加
- 変更後
unlessEmpty(callable $callback, callable $default = null) [@param callable($this): TUnlessEmptyReturnType $callback, @param (callable($this): TUnlessEmptyReturnType)|null $default, @return $this|TUnlessEmptyReturnType]
-
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
-
v11.0.0
追加
- 変更後
unlessNotEmpty(callable $callback, callable $default = null) [@param callable($this): TUnlessNotEmptyReturnType $callback, @param (callable($this): TUnlessNotEmptyReturnType)|null $default, @return $this|TUnlessNotEmptyReturnType]
-
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>
-
v11.0.0
追加
- 変更後
static unwrap($value) [@param array<TUnwrapKey, TUnwrapValue>|static<TUnwrapKey, TUnwrapValue> $value, @return array<TUnwrapKey, TUnwrapValue>]
value
v11.0.0 以前から
value($key, $default = null)
@param string $key
@param TValueDefault|(\Closure(): TValueDefault) $default
@return TValue|TValueDefault
-
v11.0.0
追加
- 変更後
value($key, $default = null) [@param string $key, @param TValueDefault|(\Closure(): TValueDefault) $default, @return TValue|TValueDefault]
whenEmpty
v11.0.0 以前から
whenEmpty(callable $callback, ?callable $default = null)
@param (callable($this): TWhenEmptyReturnType) $callback
@param (callable($this): TWhenEmptyReturnType)|null $default
@return $this|TWhenEmptyReturnType
-
v11.0.0
追加
- 変更後
whenEmpty(callable $callback, callable $default = null) [@param (callable($this): TWhenEmptyReturnType) $callback, @param (callable($this): TWhenEmptyReturnType)|null $default, @return $this|TWhenEmptyReturnType]
-
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
-
v11.0.0
追加
- 変更後
whenNotEmpty(callable $callback, callable $default = null) [@param callable($this): TWhenNotEmptyReturnType $callback, @param (callable($this): TWhenNotEmptyReturnType)|null $default, @return $this|TWhenNotEmptyReturnType]
-
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 callable|string $key
@param mixed $operator
@param mixed $value
@return static
-
v11.0.0
追加
- 変更後
where($key, $operator = null, $value = null) [@param callable|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
-
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
-
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>
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
v11.0.0
追加
- 変更後
whereStrict($key, $value) [@param string $key, @param mixed $value, @return static]
wrap
v11.0.0 以前から
static
static wrap($value, ...$args)
@param iterable<array-key, TWrapValue>|TWrapValue $value
@return static<array-key, TWrapValue>
-
v11.0.0
追加
- 変更後
static wrap($value) [@param iterable<array-key, TWrapValue>|TWrapValue $value, @return static<array-key, TWrapValue>]
-
v13.3.0
シグネチャ変更
- 変更前
static wrap($value) [@param iterable<array-key, TWrapValue>|TWrapValue $value, @return static<array-key, TWrapValue>]- 変更後
static wrap($value, ...$args) [@param iterable<array-key, TWrapValue>|TWrapValue $value, @return static<array-key, TWrapValue>]