v13.35.0

追加 18

Illuminate\Console\Scheduling\Schedule

  • alwaysOnOneServer
    変更後
    static alwaysOnOneServer($value = true) [@param bool $value, @return void]
  • hasBeenInterruptedSince
    変更後
    hasBeenInterruptedSince(DateTimeInterface $time) [@param \DateTimeInterface $time, @return bool]

Illuminate\Database\Eloquent\Relations\BelongsToMany

  • chunkMap
    変更後
    chunkMap(callable $callback, $count = 1000) [@param callable(TRelatedModel&object{pivot: TPivotModel}): TReturn $callback, @param int $count, @return \Illuminate\Support\Collection<int, TReturn>]
  • incrementOrCreate
    変更後
    incrementOrCreate(array $attributes, string $column = 'count', $default = 1, $step = 1, array $extra = []) [@param array $attributes, @param string $column, @param int|float $default, @param int|float $step, @param array $extra, @return TRelatedModel&object{pivot: TPivotModel}]

Illuminate\Database\Eloquent\Relations\HasOneOrMany

  • incrementOrCreate
    変更後
    incrementOrCreate(array $attributes, string $column = 'count', $default = 1, $step = 1, array $extra = []) [@param array $attributes, @param string $column, @param int|float $default, @param int|float $step, @param array $extra, @return TRelatedModel]

Illuminate\Database\Eloquent\Relations\HasOneOrManyThrough

  • chunkMap
    変更後
    chunkMap(callable $callback, $count = 1000) [@param callable(TRelatedModel): TReturn $callback, @param int $count, @return \Illuminate\Support\Collection<int, TReturn>]
  • findOrNew
    変更後
    findOrNew($id, $columns = ['*']) [@param mixed $id, @param array $columns, @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TRelatedModel> : TRelatedModel)]

Illuminate\Database\Eloquent\Relations\HasOneThrough

  • is
    変更後
    is($model)

Illuminate\Database\Eloquent\Relations\MorphTo

  • replayMacros
    変更後
    replayMacros(Illuminate\Database\Eloquent\Builder $query) [@param \Illuminate\Database\Eloquent\Builder<TRelatedModel> $query, @return \Illuminate\Database\Eloquent\Builder<TRelatedModel>]

Illuminate\Foundation\Cloud\ExceptionReporter

Illuminate\Routing\ResponseFactory

  • markdown
    変更後
    markdown($content = '', $status = 200, array $headers = []) [@param string $content, @param int $status, @param array $headers, @return \Illuminate\Http\Response]

Illuminate\Routing\RouteRegistrar

  • query
    変更後
    @method query(string $uri, \Closure|array|string|null $action = null): \Illuminate\Routing\Route

Illuminate\Routing\Router

  • query
    変更後
    query($uri, $action = null) [@param string $uri, @param array|string|callable|null $action, @return \Illuminate\Routing\Route]

Illuminate\Support\Facades\Response

  • markdown
    変更後
    @method static markdown(string $content = '', int $status = 200, array $headers = []): \Illuminate\Http\Response

Illuminate\Support\Facades\Route

  • query
    変更後
    @method static query(string $uri, array|string|callable|null $action = null): \Illuminate\Routing\Route

Illuminate\Support\Facades\Schedule

シグネチャ変更 52

Illuminate\Auth\GenericUser

  • getAuthPassword
    変更前
    getAuthPassword() [@return string]
    変更後
    getAuthPassword() [@return string|null]

Illuminate\Auth\SessionGuard

  • hashPasswordForCookie
    変更前
    hashPasswordForCookie($passwordHash) [@param string $passwordHash, @return string]
    変更後
    hashPasswordForCookie($passwordHash) [@param string|null $passwordHash, @return string]
  • logoutOtherDevices
    変更前
    logoutOtherDevices($password) [@param string $password, @return \Illuminate\Contracts\Auth\Authenticatable|null]
    変更後
    logoutOtherDevices($password) [@param string $password, @return void]

Illuminate\Database\DatabaseManager

  • setDefaultConnection
    変更前
    setDefaultConnection($name) [@param string $name, @return void]
    変更後
    setDefaultConnection($name) [@param \UnitEnum|string $name, @return void]

Illuminate\Database\Eloquent\Factories\BelongsToManyRelationship

  • recycle
    変更前
    recycle($recycle) [@param \Illuminate\Support\Collection $recycle, @return $this]
    変更後
    recycle($recycle) [@param \Illuminate\Support\Collection $recycle, @return static]

Illuminate\Database\Eloquent\Factories\Relationship

  • recycle
    変更前
    recycle($recycle) [@param \Illuminate\Support\Collection $recycle, @return $this]
    変更後
    recycle($recycle) [@param \Illuminate\Support\Collection $recycle, @return static]

Illuminate\Filesystem\FilesystemAdapter

  • copyToDisk
    変更前
    copyToDisk($disk, $from, $to = null) [@param string|\Illuminate\Contracts\Filesystem\Filesystem $disk, @param string $from, @param string|null $to, @return bool]
    変更後
    copyToDisk($disk, $from, $to = null) [@param \UnitEnum|string|\Illuminate\Contracts\Filesystem\Filesystem $disk, @param string $from, @param string|null $to, @return bool]
  • moveToDisk
    変更前
    moveToDisk($disk, $from, $to = null) [@param string|\Illuminate\Contracts\Filesystem\Filesystem $disk, @param string $from, @param string|null $to, @return bool]
    変更後
    moveToDisk($disk, $from, $to = null) [@param \UnitEnum|string|\Illuminate\Contracts\Filesystem\Filesystem $disk, @param string $from, @param string|null $to, @return bool]

Illuminate\Filesystem\FilesystemManager

  • forgetDisk
    変更前
    forgetDisk($disk) [@param array|string $disk, @return $this]
    変更後
    forgetDisk($disk) [@param array<\UnitEnum|string>|\UnitEnum|string $disk, @return $this]
  • purge
    変更前
    purge($name = null) [@param string|null $name, @return void]
    変更後
    purge($name = null) [@param \UnitEnum|string|null $name, @return void]
  • set
    変更前
    set($name, $disk) [@param string $name, @param mixed $disk, @return $this]
    変更後
    set($name, $disk) [@param \UnitEnum|string $name, @param mixed $disk, @return $this]

Illuminate\Queue\Worker

  • memoryExceeded
    変更前
    memoryExceeded($memoryLimit) [@param int $memoryLimit, @return bool]
    変更後
    memoryExceeded($memoryLimit) [@param int|string $memoryLimit, @return bool]

Illuminate\Queue\WorkerOptions

  • __construct
    変更前
    __construct($name = 'default', $backoff = 0, $memory = 128, $timeout = 60, $sleep = 3, $maxTries = 1, $force = false, $stopWhenEmpty = false, $maxJobs = 0, $maxTime = 0, $rest = 0, $stopWhenEmptyFor = 0) [@param string $name, @param int|int[] $backoff, @param int $memory, @param int $timeout, @param int $sleep, @param int $maxTries, @param bool $force, @param bool $stopWhenEmpty, @param int $maxJobs, @param int $maxTime, @param int $rest, @param int $stopWhenEmptyFor]
    変更後
    __construct($name = 'default', $backoff = 0, $memory = 128, $timeout = 60, $sleep = 3, $maxTries = 1, $force = false, $stopWhenEmpty = false, $maxJobs = 0, $maxTime = 0, $rest = 0, $stopWhenEmptyFor = 0) [@param string $name, @param int|int[] $backoff, @param int|string $memory, @param int $timeout, @param int $sleep, @param int $maxTries, @param bool $force, @param bool $stopWhenEmpty, @param int $maxJobs, @param int $maxTime, @param int $rest, @param int $stopWhenEmptyFor]

Illuminate\Support\Facades\Auth

  • hashPasswordForCookie
    変更前
    @method static hashPasswordForCookie(string $passwordHash): string
    変更後
    @method static hashPasswordForCookie(string|null $passwordHash): string
  • logoutOtherDevices
    変更前
    @method static logoutOtherDevices(string $password): \Illuminate\Contracts\Auth\Authenticatable|null
    変更後
    @method static logoutOtherDevices(string $password): void

Illuminate\Support\Facades\Bus

  • assertDispatched
    変更前
    @method static assertDispatched(string|\Closure $command, callable|int|null $callback = null): void
    変更後
    @method static assertDispatched(string|\Closure $command, callable|array|int|null $callback = null): void
  • assertNotDispatched
    変更前
    @method static assertNotDispatched(string|\Closure $command, callable|null $callback = null): void
    変更後
    @method static assertNotDispatched(string|\Closure $command, callable|array|null $callback = null): void
  • dispatched
    変更前
    @method static dispatched(string $command, callable|null $callback = null): \Illuminate\Support\Collection
    変更後
    @method static dispatched(string $command, callable|array|null $callback = null): \Illuminate\Support\Collection
  • dispatchedAfterResponse
    変更前
    @method static dispatchedAfterResponse(string $command, callable|null $callback = null): \Illuminate\Support\Collection
    変更後
    @method static dispatchedAfterResponse(string $command, callable|array|null $callback = null): \Illuminate\Support\Collection
  • dispatchedSync
    変更前
    @method static dispatchedSync(string $command, callable|null $callback = null): \Illuminate\Support\Collection
    変更後
    @method static dispatchedSync(string $command, callable|array|null $callback = null): \Illuminate\Support\Collection

Illuminate\Support\Facades\DB

  • setDefaultConnection
    変更前
    @method static setDefaultConnection(string $name): void
    変更後
    @method static setDefaultConnection(\UnitEnum|string $name): void

Illuminate\Support\Facades\Event

  • assertDispatched
    変更前
    @method static assertDispatched(string|\Closure $event, callable|int|null $callback = null): void
    変更後
    @method static assertDispatched(string|\Closure $event, callable|array|int|null $callback = null): void
  • assertNotDispatched
    変更前
    @method static assertNotDispatched(string|\Closure $event, callable|null $callback = null): void
    変更後
    @method static assertNotDispatched(string|\Closure $event, callable|array|null $callback = null): void
  • dispatched
    変更前
    @method static dispatched(string $event, callable|null $callback = null): \Illuminate\Support\Collection
    変更後
    @method static dispatched(string $event, callable|array|null $callback = null): \Illuminate\Support\Collection

Illuminate\Support\Facades\Notification

  • assertNotSentTo
    変更前
    @method static assertNotSentTo(mixed $notifiable, string|\Closure $notification, callable|null $callback = null): void
    変更後
    @method static assertNotSentTo(mixed $notifiable, string|\Closure $notification, callable|array|null $callback = null): void
  • assertSentTo
    変更前
    @method static assertSentTo(mixed $notifiable, string|\Closure $notification, callable|null $callback = null): void
    変更後
    @method static assertSentTo(mixed $notifiable, string|\Closure $notification, callable|array|null $callback = null): void
  • sent
    変更前
    @method static sent(mixed $notifiable, string $notification, callable|null $callback = null): \Illuminate\Support\Collection
    変更後
    @method static sent(mixed $notifiable, string $notification, callable|array|null $callback = null): \Illuminate\Support\Collection

Illuminate\Support\Facades\Queue

  • assertNotPushed
    変更前
    @method static assertNotPushed(string|\Closure $job, callable|null $callback = null): void
    変更後
    @method static assertNotPushed(string|\Closure $job, callable|array|null $callback = null): void
  • assertPushed
    変更前
    @method static assertPushed(string|\Closure $job, callable|int|null $callback = null): void
    変更後
    @method static assertPushed(string|\Closure $job, callable|array|int|null $callback = null): void
  • assertPushedOn
    変更前
    @method static assertPushedOn(\UnitEnum|string $queue, string|\Closure $job, callable|null $callback = null): void
    変更後
    @method static assertPushedOn(\UnitEnum|string $queue, string|\Closure $job, callable|array|null $callback = null): void
  • pushed
    変更前
    @method static pushed(string $job, callable|null $callback = null): \Illuminate\Support\Collection
    変更後
    @method static pushed(string $job, callable|array|null $callback = null): \Illuminate\Support\Collection

Illuminate\Support\Facades\Storage

  • copyToDisk
    変更前
    @method static copyToDisk(string|\Illuminate\Contracts\Filesystem\Filesystem $disk, string $from, string|null $to = null): bool
    変更後
    @method static copyToDisk(\UnitEnum|string|\Illuminate\Contracts\Filesystem\Filesystem $disk, string $from, string|null $to = null): bool
  • forgetDisk
    変更前
    @method static forgetDisk(array|string $disk): \Illuminate\Filesystem\FilesystemManager
    変更後
    @method static forgetDisk(array|\UnitEnum|string $disk): \Illuminate\Filesystem\FilesystemManager
  • moveToDisk
    変更前
    @method static moveToDisk(string|\Illuminate\Contracts\Filesystem\Filesystem $disk, string $from, string|null $to = null): bool
    変更後
    @method static moveToDisk(\UnitEnum|string|\Illuminate\Contracts\Filesystem\Filesystem $disk, string $from, string|null $to = null): bool
  • purge
    変更前
    @method static purge(string|null $name = null): void
    変更後
    @method static purge(\UnitEnum|string|null $name = null): void
  • set
    変更前
    @method static set(string $name, mixed $disk): \Illuminate\Filesystem\FilesystemManager
    変更後
    @method static set(\UnitEnum|string $name, mixed $disk): \Illuminate\Filesystem\FilesystemManager

Illuminate\Support\Testing\Fakes\BusFake

  • assertDispatched
    変更前
    assertDispatched($command, $callback = null) [@param string|\Closure $command, @param callable|int|null $callback, @return void]
    変更後
    assertDispatched($command, $callback = null) [@param string|\Closure $command, @param callable|array<string, mixed>|int|null $callback, @return void]
  • assertNotDispatched
    変更前
    assertNotDispatched($command, $callback = null) [@param string|\Closure $command, @param callable|null $callback, @return void]
    変更後
    assertNotDispatched($command, $callback = null) [@param string|\Closure $command, @param callable|array<string, mixed>|null $callback, @return void]
  • dispatched
    変更前
    dispatched($command, $callback = null) [@param string $command, @param callable|null $callback, @return \Illuminate\Support\Collection]
    変更後
    dispatched($command, $callback = null) [@param string $command, @param callable|array<string, mixed>|null $callback, @return \Illuminate\Support\Collection]
  • dispatchedAfterResponse
    変更前
    dispatchedAfterResponse(string $command, $callback = null) [@param string $command, @param callable|null $callback, @return \Illuminate\Support\Collection]
    変更後
    dispatchedAfterResponse(string $command, $callback = null) [@param string $command, @param callable|array<string, mixed>|null $callback, @return \Illuminate\Support\Collection]
  • dispatchedSync
    変更前
    dispatchedSync(string $command, $callback = null) [@param string $command, @param callable|null $callback, @return \Illuminate\Support\Collection]
    変更後
    dispatchedSync(string $command, $callback = null) [@param string $command, @param callable|array<string, mixed>|null $callback, @return \Illuminate\Support\Collection]

Illuminate\Support\Testing\Fakes\EventFake

  • assertDispatched
    変更前
    assertDispatched($event, $callback = null) [@param string|\Closure $event, @param callable|int|null $callback, @return void]
    変更後
    assertDispatched($event, $callback = null) [@param string|\Closure $event, @param callable|array<string, mixed>|int|null $callback, @return void]
  • assertNotDispatched
    変更前
    assertNotDispatched($event, $callback = null) [@param string|\Closure $event, @param callable|null $callback, @return void]
    変更後
    assertNotDispatched($event, $callback = null) [@param string|\Closure $event, @param callable|array<string, mixed>|null $callback, @return void]
  • dispatched
    変更前
    dispatched($event, $callback = null) [@param string $event, @param callable|null $callback, @return \Illuminate\Support\Collection]
    変更後
    dispatched($event, $callback = null) [@param string $event, @param callable|array<string, mixed>|null $callback, @return \Illuminate\Support\Collection]

Illuminate\Support\Testing\Fakes\NotificationFake

  • assertNotSentTo
    変更前
    assertNotSentTo($notifiable, $notification, $callback = null) [@param mixed $notifiable, @param string|\Closure $notification, @param callable|null $callback, @return void]
    変更後
    assertNotSentTo($notifiable, $notification, $callback = null) [@param mixed $notifiable, @param string|\Closure $notification, @param callable|array<string, mixed>|null $callback, @return void]
  • assertSentTo
    変更前
    assertSentTo($notifiable, $notification, $callback = null) [@param mixed $notifiable, @param string|\Closure $notification, @param callable|null $callback, @return void]
    変更後
    assertSentTo($notifiable, $notification, $callback = null) [@param mixed $notifiable, @param string|\Closure $notification, @param callable|array<string, mixed>|null $callback, @return void]
  • sent
    変更前
    sent($notifiable, $notification, $callback = null) [@param mixed $notifiable, @param string $notification, @param callable|null $callback, @return \Illuminate\Support\Collection]
    変更後
    sent($notifiable, $notification, $callback = null) [@param mixed $notifiable, @param string $notification, @param callable|array<string, mixed>|null $callback, @return \Illuminate\Support\Collection]

Illuminate\Support\Testing\Fakes\QueueFake

  • assertNotPushed
    変更前
    assertNotPushed($job, $callback = null) [@param string|\Closure $job, @param callable|null $callback, @return void]
    変更後
    assertNotPushed($job, $callback = null) [@param string|\Closure $job, @param callable|array<string, mixed>|null $callback, @return void]
  • assertPushed
    変更前
    assertPushed($job, $callback = null) [@param string|\Closure $job, @param callable|int|null $callback, @return void]
    変更後
    assertPushed($job, $callback = null) [@param string|\Closure $job, @param callable|array<string, mixed>|int|null $callback, @return void]
  • assertPushedOn
    変更前
    assertPushedOn($queue, $job, $callback = null) [@param \UnitEnum|string $queue, @param string|\Closure $job, @param callable|null $callback, @return void]
    変更後
    assertPushedOn($queue, $job, $callback = null) [@param \UnitEnum|string $queue, @param string|\Closure $job, @param callable|array<string, mixed>|null $callback, @return void]
  • pushed
    変更前
    pushed($job, $callback = null) [@param string $job, @param callable|null $callback, @return \Illuminate\Support\Collection]
    変更後
    pushed($job, $callback = null) [@param string $job, @param callable|array<string, mixed>|null $callback, @return \Illuminate\Support\Collection]

Illuminate\Validation\Rules\DatabaseRule

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

削除 2

Illuminate\Foundation\Cloud\ExceptionReporter