v13.7.0

追加 24

Illuminate\Cache\Lock

  • isLocked
    変更後
    isLocked(): bool [@return bool]

Illuminate\Cache\MemoizedStore

Illuminate\Cache\NoLock

  • isLocked
    変更後
    isLocked(): bool [@return bool]

Illuminate\Cache\NullStore

Illuminate\Contracts\Debug\ExceptionHandler

Illuminate\Contracts\Queue\Interruptible

  • interrupted
    変更後
    interrupted(int $signal): void [@param int $signal, @return void]

Illuminate\Foundation\Vite

  • fonts
    変更後
    fonts($aliases = null) [@param list<string>|string|null $aliases, @return \Illuminate\Support\HtmlString]
  • useFontsManifestFilename
    変更後
    useFontsManifestFilename($filename) [@param string $filename, @return $this]

Illuminate\Foundation\ViteFonts

  • ensureValidFamilies
    変更後
    ensureValidFamilies(array $aliases, array $manifest) [@param list<string> $aliases, @param array<string, mixed> $manifest, @return void]
  • ensureValidManifest
    変更後
    ensureValidManifest(array $manifest) [@param array<string, mixed> $manifest, @return void]
  • ensureValidPreloads
    変更後
    ensureValidPreloads(array $preloads, bool $isHot) [@param list<array<string, string>> $preloads, @param bool $isHot, @return void]
  • flush
    変更後
    flush() [@return void]
  • manifest
    変更後
    manifest(bool $isHot, string $buildDirectory, string $manifestFilename, string $hotFile) [@param bool $isHot, @param string $buildDirectory, @param string $manifestFilename, @param string $hotFile, @return array<string, mixed>|null]
  • resolveStyleContent
    変更後
    resolveStyleContent(array $manifest, ?array $aliases, string $buildDirectory) [@param array<string, mixed> $manifest, @param list<string>|null $aliases, @param string $buildDirectory, @return string]

Illuminate\Http\Resources\JsonApi\JsonApiRequest

Illuminate\Queue\CallQueuedHandler

Illuminate\Queue\Events\WorkerInterrupted

  • __construct
    変更後
    __construct(int $signal, ?string $connectionName = null, ?string $queue = null) [@param int $signal, @param string|null $connectionName, @param string|null $queue]

Illuminate\Support\Facades\Vite

  • fonts
    変更後
    @method static fonts(array|string|null $aliases = null): \Illuminate\Support\HtmlString
  • useFontsManifestFilename
    変更後
    @method static useFontsManifestFilename(string $filename): \Illuminate\Foundation\Vite

Illuminate\Testing\TestResponse

シグネチャ変更 46

Illuminate\Bus\Batch

  • add
    変更前
    add($jobs) [@param \Illuminate\Support\Enumerable|object|array $jobs, @return self]
    変更後
    add($jobs) [@param \Illuminate\Support\Enumerable|object|array $jobs, @return self|null]
  • fresh
    変更前
    fresh() [@return self]
    変更後
    fresh() [@return self|null]

Illuminate\Cache\MemoizedStore

  • putMany
    変更前
    putMany(array $values, $seconds) [@param array $values, @param int $seconds, @return bool]
    変更後
    putMany(array $values, $seconds) [@param int $seconds, @return bool]

Illuminate\Cache\Repository

  • touch
    変更前
    touch($key, $ttl) [@param string $key, @param \DateTimeInterface|\DateInterval|int $ttl, @return bool]
    変更後
    touch($key, $ttl) [@param \UnitEnum|string $key, @param \DateTimeInterface|\DateInterval|int $ttl, @return bool]

Illuminate\Concurrency\ConcurrencyManager

  • driver
    変更前
    driver($name = null) [@param string|null $name, @return mixed]
    変更後
    driver($name = null) [@param \UnitEnum|string|null $name, @return mixed]

Illuminate\Contracts\Mail\Mailable

  • cc
    変更前
    cc($address, $name = null) [@param object|array|string $address, @param string|null $name, @return self]
    変更後
    cc($address, $name = null) [@param object|array|string $address, @param string|null $name, @return $this]

Illuminate\Contracts\Translation\Loader

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

Illuminate\Database\Eloquent\Scope

  • apply
    変更前
    apply(Illuminate\Database\Eloquent\Builder $builder, Illuminate\Database\Eloquent\Model $model) [@param \Illuminate\Database\Eloquent\Builder<TModel> $builder, @param TModel $model, @return void]
    変更後
    apply(Illuminate\Database\Eloquent\Builder $builder, Illuminate\Database\Eloquent\Model $model) [@param \Illuminate\Database\Eloquent\Builder<covariant TModel> $builder, @param TModel $model, @return void]

Illuminate\Database\Migrations\DatabaseMigrationRepository

  • getLast
    変更前
    getLast() [@return array{id: int, migration: string, batch: int}[]]
    変更後
    getLast() [@return object{id: int, migration: string, batch: int}[]]
  • getMigrationBatches
    変更前
    getMigrationBatches() [@return array<int, string>[]]
    変更後
    getMigrationBatches() [@return array<string, int>]
  • getMigrations
    変更前
    getMigrations($steps) [@param int $steps, @return array{id: int, migration: string, batch: int}[]]
    変更後
    getMigrations($steps) [@param int $steps, @return object{id: int, migration: string, batch: int}[]]
  • getMigrationsByBatch
    変更前
    getMigrationsByBatch($batch) [@param int $batch, @return array{id: int, migration: string, batch: int}[]]
    変更後
    getMigrationsByBatch($batch) [@param int $batch, @return object{id: int, migration: string, batch: int}[]]

Illuminate\Database\Migrations\MigrationRepositoryInterface

  • delete
    変更前
    delete($migration) [@return void]
    変更後
    delete($migration) [@param object{id?: int, migration: string, batch?: int} $migration, @return void]
  • getLast
    変更前
    getLast() [@return array{id: int, migration: string, batch: int}[]]
    変更後
    getLast() [@return object{id: int, migration: string, batch: int}[]]
  • getMigrationBatches
    変更前
    getMigrationBatches() [@return array<int, string>[]]
    変更後
    getMigrationBatches() [@return array<string, int>]
  • getMigrations
    変更前
    getMigrations($steps) [@param int $steps, @return array{id: int, migration: string, batch: int}[]]
    変更後
    getMigrations($steps) [@param int $steps, @return object{id: int, migration: string, batch: int}[]]
  • getMigrationsByBatch
    変更前
    getMigrationsByBatch($batch) [@param int $batch, @return array{id: int, migration: string, batch: int}[]]
    変更後
    getMigrationsByBatch($batch) [@param int $batch, @return object{id: int, migration: string, batch: int}[]]

Illuminate\Database\Query\Processors\Processor

  • processForeignKeys
    変更前
    processForeignKeys($results) [@param list<array<string, mixed>> $results, @return list<array{name: string, columns: list<string>, foreign_schema: string, foreign_table: string, foreign_columns: list<string>, on_update: string, on_delete: string}>]
    変更後
    processForeignKeys($results) [@param list<array<string, mixed>> $results, @return list<array{name: string|null, columns: list<string>, foreign_schema: string|null, foreign_table: string, foreign_columns: list<string>, on_update: string|null, on_delete: string|null}>]
  • processTypes
    変更前
    processTypes($results) [@param list<array<string, mixed>> $results, @return list<array{name: string, schema: string, type: string, type: string, category: string, implicit: bool}>]
    変更後
    processTypes($results) [@param list<array<string, mixed>> $results, @return list<array{name: string, schema: string, schema_qualified_name: string, type: string, category: string, implicit: bool}>]

Illuminate\Database\Schema\Builder

  • getForeignKeys
    変更前
    getForeignKeys($table) [@param string $table, @return array]
    変更後
    getForeignKeys($table) [@param string $table, @return list<array{name: string|null, columns: list<string>, foreign_schema: string|null, foreign_table: string, foreign_columns: list<string>, on_update: string|null, on_delete: string|null}>]
  • getTypes
    変更前
    getTypes($schema = null) [@param string|string[]|null $schema, @return list<array{name: string, schema: string, type: string, type: string, category: string, implicit: bool}>]
    変更後
    getTypes($schema = null) [@param string|string[]|null $schema, @return list<array{name: string, schema: string, schema_qualified_name: string, type: string, category: string, implicit: bool}>]

Illuminate\Log\LogManager

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

Illuminate\Queue\Middleware\RateLimitedWithRedis

  • __construct
    変更前
    __construct($limiterName, ?string $connection = null) [@param string $limiterName]
    変更後
    __construct($limiterName, ?string $connection = null) [@param \UnitEnum|string $limiterName]

Illuminate\Queue\QueueManager

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

Illuminate\Redis\RedisManager

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

Illuminate\Session\SessionManager

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

Illuminate\Support\Arr

  • sort
    変更前
    static sort($array, $callback = null) [@param iterable<TKey, TValue> $array, @param callable|string|null|array<int, (callable(TValue, TValue): -1|0|1)|array{string, 'asc'|'desc'}> $callback, @return array<TKey, TValue>]
    変更後
    static sort($array, $callback = null) [@param iterable<TKey, TValue> $array, @param callable|string|null|array<int, (callable(TValue, TValue): -1|0|1)|array{string, SortDirection|'asc'|'desc'}> $callback, @return array<TKey, TValue>]
  • sortRecursive
    変更前
    static sortRecursive($array, $options = SORT_REGULAR, $descending = false) [@param array<TKey, TValue> $array, @param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options, @param bool $descending, @return array<TKey, TValue>]
    変更後
    static sortRecursive($array, $options = SORT_REGULAR, $descending = false) [@param array<TKey, TValue> $array, @param int-mask-of<SORT_REGULAR|SORT_NUMERIC|SORT_STRING|SORT_LOCALE_STRING|SORT_NATURAL|SORT_FLAG_CASE> $options, @param SortDirection|bool $descending, @return array<TKey, TValue>]

Illuminate\Support\Collection

  • sortBy
    変更前
    sortBy($callback, $options = SORT_REGULAR, $descending = false) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string $callback, @param int $options, @param bool $descending, @return static]
    変更後
    sortBy($callback, $options = SORT_REGULAR, $descending = false) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string|int $callback, @param int $options, @param SortDirection|bool $descending, @return static]
  • sortByDesc
    変更前
    sortByDesc($callback, $options = SORT_REGULAR) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string $callback, @param int $options, @return static]
    変更後
    sortByDesc($callback, $options = SORT_REGULAR) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string|int $callback, @param int $options, @return static]
  • sortKeys
    変更前
    sortKeys($options = SORT_REGULAR, $descending = false) [@param int $options, @param bool $descending, @return static]
    変更後
    sortKeys($options = SORT_REGULAR, $descending = false) [@param int $options, @param SortDirection|bool $descending, @return static]

Illuminate\Support\Enumerable

  • all
    変更前
    all() [@return array]
    変更後
    all() [@return array<TKey, TValue>]
  • flatten
    変更前
    flatten($depth = INF) [@param int $depth, @return static]
    変更後
    flatten($depth = INF) [@param int $depth, @return static<int, mixed>]
  • range
    変更前
    static range($from, $to, $step = 1) [@param int $from, @param int $to, @param int $step, @return static]
    変更後
    static range($from, $to, $step = 1) [@param int $from, @param int $to, @param int $step, @return static<int, int>]
  • search
    変更前
    search($value, $strict = false) [@param TValue|callable(TValue,TKey): bool $value, @param bool $strict, @return TKey|bool]
    変更後
    search($value, $strict = false) [@param TValue|callable(TValue,TKey): bool $value, @param bool $strict, @return TKey|false]
  • sortBy
    変更前
    sortBy($callback, $options = SORT_REGULAR, $descending = false) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string $callback, @param int $options, @param bool $descending, @return static]
    変更後
    sortBy($callback, $options = SORT_REGULAR, $descending = false) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string|int $callback, @param int $options, @param bool $descending, @return static]
  • sortByDesc
    変更前
    sortByDesc($callback, $options = SORT_REGULAR) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string $callback, @param int $options, @return static]
    変更後
    sortByDesc($callback, $options = SORT_REGULAR) [@param array<array-key, (callable(TValue, TValue): mixed)|(callable(TValue, TKey): mixed)|string|array{string, string}>|(callable(TValue, TKey): mixed)|string|int $callback, @param int $options, @return static]
  • times
    変更前
    static times($number, ?callable $callback = null) [@param int $number, @param callable|null $callback, @return static]
    変更後
    static times($number, ?callable $callback = null) [@param int $number, @param (callable(int): TTimesValue)|null $callback, @return static<int, TTimesValue>]

Illuminate\Support\Facades\Cache

  • touch
    変更前
    @method static touch(string $key, \DateTimeInterface|\DateInterval|int $ttl): bool
    変更後
    @method static touch(\UnitEnum|string $key, \DateTimeInterface|\DateInterval|int $ttl): bool

Illuminate\Support\Facades\Concurrency

  • driver
    変更前
    @method static driver(string|null $name = null): mixed
    変更後
    @method static driver(\UnitEnum|string|null $name = null): mixed

Illuminate\Support\Facades\Log

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

Illuminate\Support\Facades\Queue

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

Illuminate\Support\Facades\Redis

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

Illuminate\Support\Facades\Session

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

Illuminate\Translation\ArrayLoader

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

Illuminate\Translation\FileLoader

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