v12.55.0

追加 39

Illuminate\Database\Eloquent\Relations\Concerns\InteractsWithPivotTable

  • attachOrFail
    変更後
    attachOrFail($ids, array $attributes = [], $touch = true) [@param mixed $ids, @param array $attributes, @param bool $touch, @return void]
  • detachOrFail
    変更後
    detachOrFail($ids = null, $touch = true) [@param mixed $ids, @param bool $touch, @return int]
  • syncOrFail
    変更後
    syncOrFail($ids, $detaching = true) [@param \Illuminate\Support\Collection|\Illuminate\Database\Eloquent\Model|array $ids, @param bool $detaching, @return array{attached: array, detached: array, updated: array}]
  • syncWithoutDetachingOrFail
    変更後
    syncWithoutDetachingOrFail($ids) [@param \Illuminate\Support\Collection|\Illuminate\Database\Eloquent\Model|array $ids, @return array{attached: array, detached: array, updated: array}]
  • syncWithPivotValuesOrFail
    変更後
    syncWithPivotValuesOrFail($ids, array $values, bool $detaching = true) [@param \Illuminate\Support\Collection|\Illuminate\Database\Eloquent\Model|array|int|string $ids, @param array $values, @param bool $detaching, @return array{attached: array, detached: array, updated: array}]
  • toggleOrFail
    変更後
    toggleOrFail($ids, $touch = true) [@param mixed $ids, @param bool $touch, @return array]
  • updateExistingPivotOrFail
    変更後
    updateExistingPivotOrFail($id, array $attributes, $touch = true) [@param mixed $id, @param array $attributes, @param bool $touch, @return int]

Illuminate\Database\Query\Builder

  • inOrderOf
    変更後
    inOrderOf($column, $values) [@param \Illuminate\Contracts\Database\Query\Expression|string $column, @param \Illuminate\Contracts\Support\Arrayable|array $values, @return $this]

Illuminate\Http\Concerns\InteractsWithContentTypes

Illuminate\Support\Facades\Request

Illuminate\Support\Str

  • initials
    変更後
    static initials($value, $capitalize = false) [@param string $value, @param bool $capitalize, @return string]

Illuminate\Support\Stringable

  • initials
    変更後
    initials() [@return static]

Illuminate\Validation\Rule

  • excludeUnless
    変更後
    static excludeUnless($callback) [@param (\Closure(): bool)|bool $callback, @return \Illuminate\Validation\Rules\ExcludeUnless]
  • prohibitedUnless
    変更後
    static prohibitedUnless($callback) [@param (\Closure(): bool)|bool $callback, @return \Illuminate\Validation\Rules\ProhibitedUnless]
  • requiredUnless
    変更後
    static requiredUnless($callback) [@param (\Closure(): bool)|bool $callback, @return \Illuminate\Validation\Rules\RequiredUnless]
  • string
    変更後
    static string() [@return \Illuminate\Validation\Rules\StringRule]

Illuminate\Validation\Rules\ExcludeUnless

  • __construct
    変更後
    __construct($condition) [@param (\Closure(): bool)|bool $condition]
  • __toString
    変更後
    __toString() [@return string]

Illuminate\Validation\Rules\ProhibitedUnless

  • __construct
    変更後
    __construct($condition) [@param (\Closure(): bool)|bool $condition]
  • __toString
    変更後
    __toString() [@return string]

Illuminate\Validation\Rules\RequiredUnless

  • __construct
    変更後
    __construct($condition) [@param (\Closure(): bool)|bool $condition]
  • __toString
    変更後
    __toString() [@return string]

Illuminate\Validation\Rules\StringRule

  • __toString
    変更後
    __toString(): string
  • alpha
    変更後
    alpha(bool $ascii = false): static [@param bool $ascii, @return $this]
  • alphaDash
    変更後
    alphaDash(bool $ascii = false): static [@param bool $ascii, @return $this]
  • alphaNumeric
    変更後
    alphaNumeric(bool $ascii = false): static [@param bool $ascii, @return $this]
  • ascii
    変更後
    ascii(): static [@return $this]
  • between
    変更後
    between(int $min, int $max): static [@param int $min, @param int $max, @return $this]
  • doesntEndWith
    変更後
    doesntEndWith(string ...$values): static [@param string ...$values, @return $this]
  • doesntStartWith
    変更後
    doesntStartWith(string ...$values): static [@param string ...$values, @return $this]
  • endsWith
    変更後
    endsWith(string ...$values): static [@param string ...$values, @return $this]
  • exactly
    変更後
    exactly(int $value): static [@param int $value, @return $this]
  • lowercase
    変更後
    lowercase(): static [@return $this]
  • max
    変更後
    max(int $value): static [@param int $value, @return $this]
  • min
    変更後
    min(int $value): static [@param int $value, @return $this]
  • startsWith
    変更後
    startsWith(string ...$values): static [@param string ...$values, @return $this]
  • uppercase
    変更後
    uppercase(): static [@return $this]

シグネチャ変更 8

Illuminate\Console\Concerns\InteractsWithIO

  • withProgressBar
    変更前
    withProgressBar($totalSteps, Closure $callback) [@param iterable<TKey, TValue>|int $totalSteps, @param \Closure(\Symfony\Component\Console\Helper\ProgressBar|TValue, \Symfony\Component\Console\Helper\ProgressBar|null, TKey|null): void $callback, @return mixed|void]
    変更後
    withProgressBar($totalSteps, Closure $callback) [@param TIterable|int $totalSteps, @param \Closure(\Symfony\Component\Console\Helper\ProgressBar): mixed|\Closure(TValue, \Symfony\Component\Console\Helper\ProgressBar, TKey): mixed $callback, @return ($totalSteps is iterable ? TIterable : void)]

Illuminate\Database\Eloquent\Builder

  • touch
    変更前
    touch($column = null) [@param string|null $column, @return int|false]
    変更後
    touch($column = null) [@param array|string|null $column, @return int|false]

Illuminate\Database\Eloquent\Concerns\HasTimestamps

  • touch
    変更前
    touch($attribute = null) [@param string|null $attribute, @return bool]
    変更後
    touch($attribute = null) [@param array|string|null $attribute, @return bool]
  • touchQuietly
    変更前
    touchQuietly($attribute = null) [@param string|null $attribute, @return bool]
    変更後
    touchQuietly($attribute = null) [@param array|string|null $attribute, @return bool]

Illuminate\Support\Arr

  • dot
    変更前
    static dot($array, $prepend = '') [@param iterable $array, @param string $prepend, @return array]
    変更後
    static dot($array, $prepend = '', $depth = INF) [@param iterable $array, @param string $prepend, @param int $depth, @return array]

Illuminate\Support\Collection

  • dot
    変更前
    dot() [@return static]
    変更後
    dot($depth = INF) [@param int $depth, @return static]

Illuminate\Support\LazyCollection

  • dot
    変更前
    dot() [@return static]
    変更後
    dot($depth = INF) [@param int $depth, @return static]

Illuminate\Validation\Rules\Numeric

  • integer
    変更前
    integer(): Illuminate\Validation\Rules\Numeric [@return $this]
    変更後
    integer(bool $strict = false): Illuminate\Validation\Rules\Numeric [@return $this]