v11.24.0

追加 17

Illuminate\Database\Schema\ForeignKeyDefinition

Illuminate\Support\Defer\DeferredCallback

  • __construct
    変更後
    __construct($callback, ?string $name = null, bool $always = false) [@param callable $callback, @return void]
  • __invoke
    変更後
    __invoke(): void [@return void]
  • always
    変更後
    always(bool $always = true): self [@param bool $always, @return $this]
  • name
    変更後
    name(string $name): self [@param string $name, @return $this]

Illuminate\Support\Defer\DeferredCallbackCollection

  • count
    変更後
    count(): int [@return int]
  • first
    変更後
    first() [@return callable]
  • forget
    変更後
    forget(string $name): void [@param string $name, @return void]
  • invoke
    変更後
    invoke(): void [@return void]
  • invokeWhen
    変更後
    invokeWhen(?Closure $when = null): void [@param \Closure|null $when, @return void]
  • offsetExists
    変更後
    offsetExists(mixed $offset): bool [@param mixed $offset, @return bool]
  • offsetGet
    変更後
    offsetGet(mixed $offset): mixed [@param mixed $offset, @return mixed]
  • offsetSet
    変更後
    offsetSet(mixed $offset, mixed $value): void [@param mixed $offset, @param mixed $value, @return void]
  • offsetUnset
    変更後
    offsetUnset(mixed $offset): void [@param mixed $offset, @return void]

Illuminate\Support\Facades\View

  • prependLocation
    変更後
    @method static prependLocation(string $location): void

Illuminate\Support\Process\PhpExecutableFinder

  • find
    変更後
    find(bool $includeArgs = true): string|false

Illuminate\View\Factory

  • prependLocation
    変更後
    prependLocation($location) [@param string $location, @return void]

シグネチャ変更 16

Illuminate\Cache\Repository

  • flexible
    変更前
    flexible($key, $ttl, $callback, $lock = null) [@param string $key, @param array{ 0: int, 1: int } $ttl, @param (callable(): TCacheValue) $callback, @param array{ seconds?: int, owner?: string }|null $lock, @return TCacheValue]
    変更後
    flexible($key, $ttl, $callback, $lock = null) [@param string $key, @param array{ 0: \DateTimeInterface|\DateInterval|int, 1: \DateTimeInterface|\DateInterval|int } $ttl, @param (callable(): TCacheValue) $callback, @param array{ seconds?: int, owner?: string }|null $lock, @return TCacheValue]

Illuminate\Concurrency\ForkDriver

  • defer
    変更前
    defer(Closure|array $tasks): Illuminate\Foundation\Defer\DeferredCallback
    変更後
    defer(Closure|array $tasks): Illuminate\Support\Defer\DeferredCallback

Illuminate\Concurrency\ProcessDriver

  • defer
    変更前
    defer(Closure|array $tasks): Illuminate\Foundation\Defer\DeferredCallback
    変更後
    defer(Closure|array $tasks): Illuminate\Support\Defer\DeferredCallback

Illuminate\Concurrency\SyncDriver

  • defer
    変更前
    defer(Closure|array $tasks): Illuminate\Foundation\Defer\DeferredCallback
    変更後
    defer(Closure|array $tasks): Illuminate\Support\Defer\DeferredCallback

Illuminate\Contracts\Concurrency\Driver

  • defer
    変更前
    defer(Closure|array $tasks): Illuminate\Foundation\Defer\DeferredCallback
    変更後
    defer(Closure|array $tasks): Illuminate\Support\Defer\DeferredCallback

Illuminate\Contracts\Database\Eloquent\SerializesCastableAttributes

  • serialize
    変更前
    serialize(Illuminate\Database\Eloquent\Model $model, string $key, mixed $value, array $attributes) [@param \Illuminate\Database\Eloquent\Model $model, @param string $key, @param mixed $value, @param array $attributes, @return mixed]
    変更後
    serialize(Illuminate\Database\Eloquent\Model $model, string $key, mixed $value, array $attributes) [@param \Illuminate\Database\Eloquent\Model $model, @param string $key, @param mixed $value, @param array<string, mixed> $attributes, @return mixed]

Illuminate\Contracts\Validation\InvokableRule

  • __invoke
    変更前
    __invoke(string $attribute, mixed $value, Closure $fail) [@param string $attribute, @param mixed $value, @return void]
    変更後
    __invoke(string $attribute, mixed $value, Closure $fail) [@param string $attribute, @param mixed $value, @param \Closure(string, ?string=): \Illuminate\Translation\PotentiallyTranslatedString $fail, @return void]

Illuminate\Contracts\Validation\ValidationRule

  • validate
    変更前
    validate(string $attribute, mixed $value, Closure $fail): void [@param string $attribute, @param mixed $value, @return void]
    変更後
    validate(string $attribute, mixed $value, Closure $fail): void [@param string $attribute, @param mixed $value, @param \Closure(string, ?string=): \Illuminate\Translation\PotentiallyTranslatedString $fail, @return void]

Illuminate\Routing\Route

  • can
    変更前
    can($ability, $models = []) [@param string $ability, @param array|string $models, @return $this]
    変更後
    can($ability, $models = []) [@param \BackedEnum|string $ability, @param array|string $models, @return $this]

Illuminate\Support\Collection

  • groupBy
    変更前
    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>>]
  • keyBy
    変更前
    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>]

Illuminate\Support\Enumerable

  • groupBy
    変更前
    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>>]
  • keyBy
    変更前
    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>]

Illuminate\Support\Facades\Concurrency

  • defer
    変更前
    @method static defer(\Closure|array $tasks): \Illuminate\Foundation\Defer\DeferredCallback
    変更後
    @method static defer(\Closure|array $tasks): \Illuminate\Support\Defer\DeferredCallback

Illuminate\Support\LazyCollection

  • groupBy
    変更前
    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>>]
  • keyBy
    変更前
    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>]

削除 13

Illuminate\Foundation\Defer\DeferredCallback

  • __construct
    変更前
    __construct($callback, ?string $name = null, bool $always = false) [@param callable $callback, @return void]
  • __invoke
    変更前
    __invoke(): void [@return void]
  • always
    変更前
    always(bool $always = true): self [@param bool $always, @return $this]
  • name
    変更前
    name(string $name): self [@param string $name, @return $this]

Illuminate\Foundation\Defer\DeferredCallbackCollection

  • count
    変更前
    count(): int [@return int]
  • first
    変更前
    first() [@return callable]
  • forget
    変更前
    forget(string $name): void [@param string $name, @return void]
  • invoke
    変更前
    invoke(): void [@return void]
  • invokeWhen
    変更前
    invokeWhen(?Closure $when = null): void [@param \Closure $when, @return void]
  • offsetExists
    変更前
    offsetExists(mixed $offset): bool [@param mixed $offset, @return bool]
  • offsetGet
    変更前
    offsetGet(mixed $offset): mixed [@param mixed $offset, @return mixed]
  • offsetSet
    変更前
    offsetSet(mixed $offset, mixed $value): void [@param mixed $offset, @param mixed $value, @return void]
  • offsetUnset
    変更前
    offsetUnset(mixed $offset): void [@param mixed $offset, @return void]