v12.20.0

追加 26

Illuminate\Auth\Passwords\CacheTokenRepository

  • cacheKey
    変更後
    cacheKey(Illuminate\Contracts\Auth\CanResetPassword $user): string [@param \Illuminate\Contracts\Auth\CanResetPassword $user, @return string]

Illuminate\Config\Repository

  • collection
    変更後
    collection(string $key, $default = null): Illuminate\Support\Collection [@param string $key, @param (\Closure():(array<array-key, mixed>|null))|array<array-key, mixed>|null $default, @return Collection<array-key, mixed>]

Illuminate\Database\Eloquent\Concerns\HasAttributes

  • currentEncrypter
    変更後
    static currentEncrypter() [@return \Illuminate\Contracts\Encryption\Encrypter]

Illuminate\Http\Request

Illuminate\Log\Context\Repository

  • remember
    変更後
    remember($key, $value) [@param string $key, @param mixed $value, @return mixed]
  • rememberHidden
    変更後
    rememberHidden($key, $value) [@param string $key, @param mixed $value, @return mixed]

Illuminate\Queue\Middleware\ThrottlesExceptions

  • failWhen
    変更後
    failWhen(callable|string $callback) [@param callable|string $callback, @return $this]

Illuminate\Support\Facades\Config

  • collection
    変更後
    @method static collection(string $key, \Closure|array|null $default = null): \Illuminate\Support\Collection

Illuminate\Support\Facades\Context

  • remember
    変更後
    @method static remember(string $key, mixed $value): mixed
  • rememberHidden
    変更後
    @method static rememberHidden(string $key, mixed $value): mixed

Illuminate\Support\Facades\Queue

  • fakeExcept
    変更後
    static fakeExcept($jobsToAllow) [@param string[]|string $jobsToAllow, @return \Illuminate\Support\Testing\Fakes\QueueFake]
  • fakeExceptFor
    変更後
    static fakeExceptFor(callable $callable, array $jobsToAllow = []) [@param callable $callable, @param array $jobsToAllow, @return mixed]
  • fakeFor
    変更後
    static fakeFor(callable $callable, array $jobsToFake = []) [@param callable $callable, @param array $jobsToFake, @return mixed]

Illuminate\Support\Facades\Request

Illuminate\Support\Fluent

  • getIterator
    変更後
    getIterator(): Traversable [@return ArrayIterator<TKey, TValue>]

Illuminate\Support\Str

  • doesntEndWith
    変更後
    static doesntEndWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return bool]
  • doesntStartWith
    変更後
    static doesntStartWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return bool]

Illuminate\Support\Stringable

  • doesntEndWith
    変更後
    doesntEndWith($needles) [@param string|iterable<string> $needles, @return bool]
  • doesntStartWith
    変更後
    doesntStartWith($needles) [@param string|iterable<string> $needles, @return bool]
  • whenDoesntEndWith
    変更後
    whenDoesntEndWith($needles, $callback, $default = null) [@param string|iterable<string> $needles, @param callable $callback, @param callable|null $default, @return static]
  • whenDoesntStartWith
    変更後
    whenDoesntStartWith($needles, $callback, $default = null) [@param string|iterable<string> $needles, @param callable $callback, @param callable|null $default, @return static]

Illuminate\Support\Uri

  • jsonSerialize
    変更後
    jsonSerialize(): string [@return string]

シグネチャ変更 44

Illuminate\Auth\Passwords\CacheTokenRepository

  • __construct
    変更前
    __construct(Illuminate\Cache\Repository $cache, Illuminate\Contracts\Hashing\Hasher $hasher, string $hashKey, int $expires = 3600, int $throttle = 60, string $prefix = '')
    変更後
    __construct(Illuminate\Cache\Repository $cache, Illuminate\Contracts\Hashing\Hasher $hasher, string $hashKey, int $expires = 3600, int $throttle = 60)

Illuminate\Contracts\Database\Eloquent\Castable

  • castUsing
    変更前
    static castUsing(array $arguments) [@param array $arguments, @return class-string<CastsAttributes|CastsInboundAttributes>|CastsAttributes|CastsInboundAttributes]
    変更後
    static castUsing(array $arguments) [@param string[] $arguments, @return class-string<CastsAttributes|CastsInboundAttributes>|CastsAttributes|CastsInboundAttributes]

Illuminate\Database\Eloquent\Collection

  • pluck
    変更前
    pluck($value, $key = null) [@param string|array<array-key, string>|null $value, @param string|null $key, @return \Illuminate\Support\Collection<array-key, mixed>]
    変更後
    pluck($value, $key = null) [@param string|array<array-key, string>|Closure|null $value, @param string|Closure|null $key, @return \Illuminate\Support\Collection<array-key, mixed>]

Illuminate\Database\Query\Builder

  • count
    変更前
    count($columns = '*') [@param \Illuminate\Contracts\Database\Query\Expression|string $columns, @return int]
    変更後
    count($columns = '*') [@param \Illuminate\Contracts\Database\Query\Expression|string $columns, @return int<0, max>]
  • decrement
    変更前
    decrement($column, $amount = 1, array $extra = []) [@param string $column, @param float|int $amount, @return int]
    変更後
    decrement($column, $amount = 1, array $extra = []) [@param string $column, @param float|int $amount, @return int<0, max>]
  • decrementEach
    変更前
    decrementEach(array $columns, array $extra = []) [@param array<string, float|int|numeric-string> $columns, @param array<string, mixed> $extra, @return int]
    変更後
    decrementEach(array $columns, array $extra = []) [@param array<string, float|int|numeric-string> $columns, @param array<string, mixed> $extra, @return int<0, max>]
  • getCountForPagination
    変更前
    getCountForPagination($columns = ['*']) [@param array<string|\Illuminate\Contracts\Database\Query\Expression> $columns, @return int]
    変更後
    getCountForPagination($columns = ['*']) [@param array<string|\Illuminate\Contracts\Database\Query\Expression> $columns, @return int<0, max>]
  • increment
    変更前
    increment($column, $amount = 1, array $extra = []) [@param string $column, @param float|int $amount, @return int]
    変更後
    increment($column, $amount = 1, array $extra = []) [@param string $column, @param float|int $amount, @return int<0, max>]
  • incrementEach
    変更前
    incrementEach(array $columns, array $extra = []) [@param array<string, float|int|numeric-string> $columns, @param array<string, mixed> $extra, @return int]
    変更後
    incrementEach(array $columns, array $extra = []) [@param array<string, float|int|numeric-string> $columns, @param array<string, mixed> $extra, @return int<0, max>]
  • insertOrIgnore
    変更前
    insertOrIgnore(array $values) [@return int]
    変更後
    insertOrIgnore(array $values) [@return int<0, max>]
  • update
    変更前
    update(array $values) [@return int]
    変更後
    update(array $values) [@return int<0, max>]

Illuminate\Pagination\AbstractPaginator

  • through
    変更前
    through(callable $callback) [@param callable $callback, @return $this]
    変更後
    through(callable $callback) [@param callable(TValue, TKey): TMapValue $callback]

Illuminate\Support\Arr

  • pluck
    変更前
    static pluck($array, $value, $key = null) [@param iterable $array, @param string|array|int|null $value, @param string|array|null $key, @return array]
    変更後
    static pluck($array, $value, $key = null) [@param iterable $array, @param string|array|int|Closure|null $value, @param string|array|Closure|null $key, @return array]
  • sole
    変更前
    static sole($array, ?callable $callback = null) [@param array $array, @param callable $callback]
    変更後
    static sole($array, ?callable $callback = null) [@param array $array, @param (callable(mixed, array-key): array)|null $callback]
  • toCssClasses
    変更前
    static toCssClasses($array) [@param array $array, @return string]
    変更後
    static toCssClasses($array) [@param array|string $array, @return string]
  • toCssStyles
    変更前
    static toCssStyles($array) [@param array $array, @return string]
    変更後
    static toCssStyles($array) [@param array|string $array, @return string]

Illuminate\Support\Collection

  • count
    変更前
    count(): int [@return int]
    変更後
    count(): int [@return int<0, max>]
  • shift
    変更前
    shift($count = 1) [@param int $count, @return static<int, TValue>|TValue|null]
    変更後
    shift($count = 1) [@param int<0, max> $count, @return static<int, TValue>|TValue|null]
  • transform
    変更前
    transform(callable $callback) [@param callable(TValue, TKey): TValue $callback, @return $this]
    変更後
    transform(callable $callback) [@param callable(TValue, TKey): TMapValue $callback]

Illuminate\Support\Defer\DeferredCallback

  • always
    変更前
    always(bool $always = true): self [@param bool $always, @return $this]
    変更後
    always(bool $always = true): static [@param bool $always, @return $this]
  • name
    変更前
    name(string $name): self [@param string $name, @return $this]
    変更後
    name(string $name): static [@param string $name, @return $this]

Illuminate\Support\Number

  • forHumans
    変更前
    static forHumans(int|float $number, int $precision = 0, ?int $maxPrecision = null, bool $abbreviate = false) [@param int|float $number, @param int $precision, @param int|null $maxPrecision, @param bool $abbreviate, @return false|string]
    変更後
    static forHumans(int|float $number, int $precision = 0, ?int $maxPrecision = null, bool $abbreviate = false) [@param int|float $number, @param int $precision, @param int|null $maxPrecision, @param bool $abbreviate, @return string|false]

Illuminate\Testing\Fluent\AssertableJson

  • each
    変更前
    each(Closure $callback): self [@param \Closure $callback, @return $this]
    変更後
    each(Closure $callback): static [@param \Closure $callback, @return $this]
  • first
    変更前
    first(Closure $callback): self [@param \Closure $callback, @return $this]
    変更後
    first(Closure $callback): static [@param \Closure $callback, @return $this]
  • fromArray
    変更前
    static fromArray(array $data): self [@param array $data, @return static]
    変更後
    static fromArray(array $data): static [@param array $data, @return static]
  • fromAssertableJsonString
    変更前
    static fromAssertableJsonString(Illuminate\Testing\AssertableJsonString $json): self [@param \Illuminate\Testing\AssertableJsonString $json, @return static]
    変更後
    static fromAssertableJsonString(Illuminate\Testing\AssertableJsonString $json): static [@param \Illuminate\Testing\AssertableJsonString $json, @return static]

Illuminate\Testing\Fluent\Concerns\Debugging

  • dump
    変更前
    dump(?string $prop = null): self [@param string|null $prop, @return $this]
    変更後
    dump(?string $prop = null): static [@param string|null $prop, @return $this]

Illuminate\Testing\Fluent\Concerns\Has

  • count
    変更前
    count($key, ?int $length = null): self [@param string|int $key, @param int|null $length, @return $this]
    変更後
    count($key, ?int $length = null): static [@param string|int $key, @param int|null $length, @return $this]
  • countBetween
    変更前
    countBetween(int|string $min, int|string $max): self [@param int|string $min, @param int|string $max, @return $this]
    変更後
    countBetween(int|string $min, int|string $max): static [@param int|string $min, @param int|string $max, @return $this]
  • has
    変更前
    has($key, $length = null, ?Closure $callback = null): self [@param string|int $key, @param int|\Closure|null $length, @param \Closure|null $callback, @return $this]
    変更後
    has($key, $length = null, ?Closure $callback = null): static [@param string|int $key, @param int|\Closure|null $length, @param \Closure|null $callback, @return $this]
  • hasAll
    変更前
    hasAll($key): self [@param array|string $key, @return $this]
    変更後
    hasAll($key): static [@param array|string $key, @return $this]
  • hasAny
    変更前
    hasAny($key): self [@param array|string $key, @return $this]
    変更後
    hasAny($key): static [@param array|string $key, @return $this]
  • missing
    変更前
    missing(string $key): self [@param string $key, @return $this]
    変更後
    missing(string $key): static [@param string $key, @return $this]
  • missingAll
    変更前
    missingAll($key): self [@param array|string $key, @return $this]
    変更後
    missingAll($key): static [@param array|string $key, @return $this]

Illuminate\Testing\Fluent\Concerns\Interaction

  • etc
    変更前
    etc(): self [@return $this]
    変更後
    etc(): static [@return $this]

Illuminate\Testing\Fluent\Concerns\Matching

  • where
    変更前
    where(string $key, $expected): self [@param string $key, @param mixed|\Closure $expected, @return $this]
    変更後
    where(string $key, $expected): static [@param string $key, @param mixed|\Closure $expected, @return $this]
  • whereAll
    変更前
    whereAll(array $bindings): self [@param array $bindings, @return $this]
    変更後
    whereAll(array $bindings): static [@param array $bindings, @return $this]
  • whereAllType
    変更前
    whereAllType(array $bindings): self [@param array $bindings, @return $this]
    変更後
    whereAllType(array $bindings): static [@param array $bindings, @return $this]
  • whereNot
    変更前
    whereNot(string $key, $expected): self [@param string $key, @param mixed|\Closure $expected, @return $this]
    変更後
    whereNot(string $key, $expected): static [@param string $key, @param mixed|\Closure $expected, @return $this]
  • whereNotNull
    変更前
    whereNotNull(string $key): self [@param string $key, @return $this]
    変更後
    whereNotNull(string $key): static [@param string $key, @return $this]
  • whereNull
    変更前
    whereNull(string $key): self [@param string $key, @return $this]
    変更後
    whereNull(string $key): static [@param string $key, @return $this]
  • whereType
    変更前
    whereType(string $key, $expected): self [@param string $key, @param string|array $expected, @return $this]
    変更後
    whereType(string $key, $expected): static [@param string $key, @param string|array $expected, @return $this]

Illuminate\Testing\TestResponseAssert

  • withResponse
    変更前
    static withResponse(Illuminate\Testing\TestResponse $response): self
    変更後
    static withResponse(Illuminate\Testing\TestResponse $response): static

Illuminate\Validation\Rules\DatabaseRule

  • whereNot
    変更前
    whereNot($column, $value) [@param string $column, @param \Illuminate\Contracts\Support\Arrayable|\UnitEnum|array|string $value, @return $this]
    変更後
    whereNot($column, $value) [@param string $column, @param \Illuminate\Contracts\Support\Arrayable|\UnitEnum|array|string|int $value, @return $this]