v13.18.0

追加 2

Illuminate\Bus\DebounceLock

  • getCurrentOwner
    変更後
    getCurrentOwner($job) [@param mixed $job, @return string|null]

Illuminate\Foundation\DevCommand

  • priority
    変更後
    priority(): int [@return int]

シグネチャ変更 22

Illuminate\Config\Repository

  • all
    変更前
    all() [@return array]
    変更後
    all() [@return array<string, mixed>]

Illuminate\Console\Scheduling\ScheduleWorkCommand

  • handle
    変更前
    handle() [@return never]
    変更後
    handle() [@return int]

Illuminate\Contracts\Config\Repository

  • all
    変更前
    all() [@return array]
    変更後
    all() [@return array<string, mixed>]

Illuminate\Contracts\Pagination\CursorPaginator

  • fragment
    変更前
    fragment($fragment = null) [@param string|null $fragment, @return $this|string|null]
    変更後
    fragment($fragment = null) [@param string|null $fragment, @return ($fragment is null ? string|null : $this)]

Illuminate\Contracts\Pagination\Paginator

  • fragment
    変更前
    fragment($fragment = null) [@param string|null $fragment, @return $this|string|null]
    変更後
    fragment($fragment = null) [@param string|null $fragment, @return ($fragment is null ? string|null : $this)]

Illuminate\Database\Eloquent\Relations\BelongsToMany

  • getPivotColumns
    変更前
    getPivotColumns() [@return array]
    変更後
    getPivotColumns() [@return array<string|\Illuminate\Contracts\Database\Query\Expression>]

Illuminate\Events\Dispatcher

  • getRawListeners
    変更前
    getRawListeners() [@return array]
    変更後
    getRawListeners() [@return array<string, callable|array|class-string|null>]

Illuminate\Foundation\DevCommand

  • __construct
    変更前
    __construct(string $command, array $source, ?string $name = null) [@param string $command, @param array{'file': string, 'line': int, 'class'?: string, 'function'?: string} $source, @param string|null $name, @return void]
    変更後
    __construct(string $command, array $source, ?string $name = null, int $priority = self::PRIORITY_USERLAND) [@param string $command, @param array{'file': string, 'line': int, 'class'?: string, 'function'?: string} $source, @param string|null $name, @param self::PRIORITY_DEFAULT|self::PRIORITY_VENDOR|self::PRIORITY_USERLAND $priority, @return void]
  • toArray
    変更前
    toArray(): array [@return array{command: string, name: string, color: string|null, source: array{'file': string, 'line': int, 'class'?: string, 'function'?: string}}]
    変更後
    toArray(): array [@return array{command: string, name: string, color: string|null, source: array{'file': string, 'line': int, 'class'?: string, 'function'?: string}, priority: int}]

Illuminate\Foundation\Http\Kernel

  • getGlobalMiddleware
    変更前
    getGlobalMiddleware() [@return array]
    変更後
    getGlobalMiddleware() [@return array<int, class-string|string>]

Illuminate\Pagination\AbstractCursorPaginator

  • fragment
    変更前
    fragment($fragment = null) [@param string|null $fragment, @return $this|string|null]
    変更後
    fragment($fragment = null) [@param string|null $fragment, @return ($fragment is null ? string|null : $this)]

Illuminate\Pagination\AbstractPaginator

  • fragment
    変更前
    fragment($fragment = null) [@param string|null $fragment, @return $this|string|null]
    変更後
    fragment($fragment = null) [@param string|null $fragment, @return ($fragment is null ? string|null : $this)]

Illuminate\Queue\Events\WorkerStopping

  • __construct
    変更前
    __construct($status = 0, $workerOptions = null, $reason = null) [@param int $status, @param \Illuminate\Queue\WorkerOptions|null $workerOptions, @param \Illuminate\Queue\WorkerStopReason|null $reason]
    変更後
    __construct($status = 0, $workerOptions = null, $reason = null, $jobsProcessed = null, $lastJobProcessedAt = null) [@param int $status, @param \Illuminate\Queue\WorkerOptions|null $workerOptions, @param \Illuminate\Queue\WorkerStopReason|null $reason, @param int|null $jobsProcessed, @param int|float|null $lastJobProcessedAt]

Illuminate\Routing\Route

  • domain
    変更前
    domain($domain = null) [@param \BackedEnum|string|null $domain, @return $this|string|null]
    変更後
    domain($domain = null) [@param \BackedEnum|string|null $domain, @return ($domain is null ? string|null : $this)]
  • getMetadata
    変更前
    getMetadata($key = null, $default = null) [@param string|null $key, @param mixed $default, @return mixed]
    変更後
    getMetadata($key = null, $default = null) [@param string|null $key, @param mixed $default, @return ($key is null ? array<array-key, mixed> : mixed)]

Illuminate\Support\Arr

  • random
    変更前
    static random($array, $number = null, $preserveKeys = false) [@param array $array, @param int|null $number, @param bool $preserveKeys, @return mixed]
    変更後
    static random($array, $number = null, $preserveKeys = false) [@param array $array, @param int|null $number, @param bool $preserveKeys, @return ($number is null ? mixed : array)]

Illuminate\Support\Enumerable

  • random
    変更前
    random($number = null) [@param int|null $number, @return static<int, TValue>|TValue]
    変更後
    random($number = null) [@param int|null $number, @return ($number is null ? TValue : static<int, TValue>)]

Illuminate\Support\LazyCollection

  • random
    変更前
    random($number = null, $preserveKeys = false) [@param int|null $number, @param bool $preserveKeys, @return static<int, TValue>|TValue]
    変更後
    random($number = null, $preserveKeys = false) [@param int|null $number, @param bool $preserveKeys, @return ($number is null ? TValue : static<int, TValue>)]

Illuminate\Support\Lottery

  • choose
    変更前
    choose($times = null) [@param null|int $times, @return mixed]
    変更後
    choose($times = null) [@param null|int $times, @return ($times is null ? mixed : list<mixed>)]

Illuminate\Validation\Rules\Email

  • defaults
    変更前
    static defaults($callback = null) [@param static|callable|null $callback, @return static|void]
    変更後
    static defaults($callback = null) [@param static|callable|null $callback, @return ($callback is null ? static : void)]

Illuminate\Validation\Rules\File

  • defaults
    変更前
    static defaults($callback = null) [@param static|callable|null $callback, @return static|void]
    変更後
    static defaults($callback = null) [@param static|callable|null $callback, @return ($callback is null ? static : void)]

Illuminate\Validation\Rules\Password

  • defaults
    変更前
    static defaults($callback = null) [@param static|callable|null $callback, @return static|void]
    変更後
    static defaults($callback = null) [@param static|callable|null $callback, @return ($callback is null ? static : void)]

削除 2

Illuminate\Bus\DebounceLock

  • isCurrentOwner
    変更前
    isCurrentOwner($job, string $owner) [@param mixed $job, @param string $owner, @return bool]
  • lockExists
    変更前
    lockExists($job) [@param mixed $job, @return bool]