v12.29.0

追加 23

Illuminate\Cache\SessionStore

  • __construct
    変更後
    __construct($session, $key = '_cache') [@param \Illuminate\Contracts\Session\Session $session, @param string $key]
  • all
    変更後
    all() [@return array<string, array{value: mixed, expiresAt: float}>]
  • decrement
    変更後
    decrement($key, $value = 1) [@param string $key, @param mixed $value, @return int]
  • flush
    変更後
    flush() [@return bool]
  • forever
    変更後
    forever($key, $value) [@param string $key, @param mixed $value, @return bool]
  • forget
    変更後
    forget($key) [@param string $key, @return bool]
  • get
    変更後
    get($key) [@param string $key, @return mixed]
  • getPrefix
    変更後
    getPrefix() [@return string]
  • increment
    変更後
    increment($key, $value = 1) [@param string $key, @param mixed $value, @return int]
  • itemKey
    変更後
    itemKey($key) [@return string]
  • put
    変更後
    put($key, $value, $seconds) [@param string $key, @param mixed $value, @param int $seconds, @return bool]

Illuminate\Database\Eloquent\Attributes\UseResource

  • __construct
    変更後
    __construct(string $class) [@param class-string<*> $class]

Illuminate\Database\Eloquent\Attributes\UseResourceCollection

  • __construct
    変更後
    __construct(string $class) [@param class-string<*> $class]

Illuminate\Database\Eloquent\Builder

Illuminate\Foundation\Exceptions\Renderer\Exception

  • code
    変更後
    code() [@return int|string]
  • frameGroups
    変更後
    frameGroups() [@return array<int, array{is_vendor: bool, frames: array<int, Frame>}>]

Illuminate\Foundation\Exceptions\Renderer\Frame

  • args
    変更後
    args() [@return array]
  • isMain
    変更後
    isMain() [@return bool]
  • markAsMain
    変更後
    markAsMain() [@return void]
  • operator
    変更後
    operator() [@return '::'|'->'|'']
  • previous
    変更後
    previous() [@return \Illuminate\Foundation\Exceptions\Renderer\Frame|null]

Illuminate\Session\Store

  • cache
    変更後
    cache() [@return \Illuminate\Contracts\Cache\Repository]

Illuminate\Support\Facades\Session

  • cache
    変更後
    @method static cache(): \Illuminate\Contracts\Cache\Repository

シグネチャ変更 52

Illuminate\Broadcasting\BroadcastEvent

  • failed
    変更前
    failed(?Throwable $e = null): void [@param \Throwable $e, @return void]
    変更後
    failed(?Throwable $e = null): void [@param \Throwable|null $e, @return void]

Illuminate\Cache\ApcStore

  • decrement
    変更前
    decrement($key, $value = 1) [@param string $key, @param mixed $value, @return int|bool]
    変更後
    decrement($key, $value = 1) [@param string $key, @param int $value, @return int|false]
  • get
    変更前
    get($key) [@param string $key, @return mixed]
    変更後
    get($key) [@param string $key, @return mixed|null]
  • increment
    変更前
    increment($key, $value = 1) [@param string $key, @param mixed $value, @return int|bool]
    変更後
    increment($key, $value = 1) [@param string $key, @param int $value, @return int|false]

Illuminate\Cache\ApcWrapper

  • decrement
    変更前
    decrement($key, $value) [@param string $key, @param mixed $value, @return int|bool]
    変更後
    decrement($key, $value) [@param string $key, @param int $value, @return int|false]
  • get
    変更前
    get($key) [@param string $key, @return mixed]
    変更後
    get($key) [@param string $key, @return mixed|null]
  • increment
    変更前
    increment($key, $value) [@param string $key, @param mixed $value, @return int|bool]
    変更後
    increment($key, $value) [@param string $key, @param int $value, @return int|false]
  • put
    変更前
    put($key, $value, $seconds) [@param string $key, @param mixed $value, @param int $seconds, @return array|bool]
    変更後
    put($key, $value, $seconds) [@param string $key, @param mixed $value, @param int $seconds, @return bool]

Illuminate\Cache\RedisTagSet

  • addEntry
    変更前
    addEntry(string $key, ?int $ttl = null, $updateWhen = null) [@param string $key, @param int|null $ttl, @param string $updateWhen, @return void]
    変更後
    addEntry(string $key, ?int $ttl = null, $updateWhen = null) [@param string $key, @param int|null $ttl, @param string|null $updateWhen, @return void]

Illuminate\Console\View\Components\Ask

  • render
    変更前
    render($question, $default = null, $multiline = false) [@param string $question, @param string $default, @param bool $multiline, @return mixed]
    変更後
    render($question, $default = null, $multiline = false) [@param string $question, @param string|null $default, @param bool $multiline, @return mixed]

Illuminate\Console\View\Components\AskWithCompletion

  • render
    変更前
    render($question, $choices, $default = null) [@param string $question, @param array|callable $choices, @param string $default, @return mixed]
    変更後
    render($question, $choices, $default = null) [@param string $question, @param array|callable $choices, @param string|null $default, @return mixed]

Illuminate\Console\View\Components\Choice

  • render
    変更前
    render($question, $choices, $default = null, $attempts = null, $multiple = false) [@param string $question, @param array<array-key, string> $choices, @param mixed $default, @param int $attempts, @param bool $multiple, @return mixed]
    変更後
    render($question, $choices, $default = null, $attempts = null, $multiple = false) [@param string $question, @param array<array-key, string> $choices, @param mixed $default, @param int|null $attempts, @param bool $multiple, @return mixed]

Illuminate\Container\ContextualBindingBuilder

  • give
    変更前
    give($implementation) [@param \Closure|string|array $implementation, @return void]
    変更後
    give($implementation) [@param \Closure|string|array $implementation, @return $this]
  • giveConfig
    変更前
    giveConfig($key, $default = null) [@param string $key, @param mixed $default, @return void]
    変更後
    giveConfig($key, $default = null) [@param string $key, @param mixed $default, @return $this]
  • giveTagged
    変更前
    giveTagged($tag) [@param string $tag, @return void]
    変更後
    giveTagged($tag) [@param string $tag, @return $this]

Illuminate\Contracts\Container\ContextualBindingBuilder

  • give
    変更前
    give($implementation) [@param \Closure|string|array $implementation, @return void]
    変更後
    give($implementation) [@param \Closure|string|array $implementation, @return $this]
  • giveConfig
    変更前
    giveConfig($key, $default = null) [@param string $key, @param mixed $default, @return void]
    変更後
    giveConfig($key, $default = null) [@param string $key, @param mixed $default, @return $this]
  • giveTagged
    変更前
    giveTagged($tag) [@param string $tag, @return void]
    変更後
    giveTagged($tag) [@param string $tag, @return $this]

Illuminate\Contracts\Database\Eloquent\SupportsPartialRelations

  • ofMany
    変更前
    ofMany($column = 'id', $aggregate = 'MAX', $relation = null) [@param string|null $column, @param string|\Closure|null $aggregate, @param string $relation, @return $this]
    変更後
    ofMany($column = 'id', $aggregate = 'MAX', $relation = null) [@param string|null $column, @param string|\Closure|null $aggregate, @param string|null $relation, @return $this]

Illuminate\Database\Connection

  • whenQueryingForLongerThan
    変更前
    whenQueryingForLongerThan($threshold, $handler) [@param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold, @param (callable(\Illuminate\Database\Connection, class-string<\Illuminate\Database\Events\QueryExecuted>): mixed) $handler, @return void]
    変更後
    whenQueryingForLongerThan($threshold, $handler) [@param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold, @param (callable(\Illuminate\Database\Connection, \Illuminate\Database\Events\QueryExecuted): mixed) $handler, @return void]

Illuminate\Database\Eloquent\Casts\AsCollection

  • using
    変更前
    static using($class, $map = null) [@param class-string $class, @param array{class-string, string}|class-string $map, @return string]
    変更後
    static using($class, $map = null) [@param class-string $class, @param array{class-string, string}|class-string|null $map, @return string]

Illuminate\Database\Eloquent\Casts\AsEncryptedCollection

  • using
    変更前
    static using($class, $map = null) [@param class-string $class, @param array{class-string, string}|class-string $map, @return string]
    変更後
    static using($class, $map = null) [@param class-string $class, @param array{class-string, string}|class-string|null $map, @return string]

Illuminate\Database\Eloquent\Concerns\QueriesRelationships

  • withAggregate
    変更前
    withAggregate($relations, $column, $function = null) [@param mixed $relations, @param \Illuminate\Contracts\Database\Query\Expression|string $column, @param string $function, @return $this]
    変更後
    withAggregate($relations, $column, $function = null) [@param mixed $relations, @param \Illuminate\Contracts\Database\Query\Expression|string $column, @param string|null $function, @return $this]

Illuminate\Database\Eloquent\Concerns\TransformsToResource

  • guessResourceName
    変更前
    static guessResourceName(): array [@return array<class-string<\Illuminate\Http\Resources\Json\JsonResource>>]
    変更後
    static guessResourceName(): array [@return array{class-string<\Illuminate\Http\Resources\Json\JsonResource>, class-string<\Illuminate\Http\Resources\Json\JsonResource>}]

Illuminate\Database\Eloquent\Factories\Sequence

  • __invoke
    変更前
    __invoke() [@return mixed]
    変更後
    __invoke($attributes = [], $parent = null) [@param array<string, mixed> $attributes, @param \Illuminate\Database\Eloquent\Model|null $parent, @return mixed]

Illuminate\Database\Eloquent\Relations\HasOneOrManyThrough

  • paginate
    変更前
    paginate($perPage = null, $columns = ['*'], $pageName = 'page', $page = null) [@param int|null $perPage, @param array $columns, @param string $pageName, @param int $page, @return \Illuminate\Pagination\LengthAwarePaginator]
    変更後
    paginate($perPage = null, $columns = ['*'], $pageName = 'page', $page = null) [@param int|null $perPage, @param array $columns, @param string $pageName, @param int|null $page, @return \Illuminate\Pagination\LengthAwarePaginator]

Illuminate\Database\Schema\ForeignIdColumnDefinition

  • references
    変更前
    references($column, $indexName = null) [@param string $column, @param string $indexName, @return \Illuminate\Database\Schema\ForeignKeyDefinition]
    変更後
    references($column, $indexName = null) [@param string $column, @param string|null $indexName, @return \Illuminate\Database\Schema\ForeignKeyDefinition]

Illuminate\Foundation\Configuration\Middleware

  • redirectTo
    変更前
    redirectTo(callable|string|null $guests = null, callable|string|null $users = null) [@param callable|string $guests, @param callable|string $users, @return $this]
    変更後
    redirectTo(callable|string|null $guests = null, callable|string|null $users = null) [@param callable|string|null $guests, @param callable|string|null $users, @return $this]

Illuminate\Foundation\Exceptions\Renderer\Frame

  • __construct
    変更前
    __construct(Symfony\Component\ErrorHandler\Exception\FlattenException $exception, array $classMap, array $frame, string $basePath) [@param \Symfony\Component\ErrorHandler\Exception\FlattenException $exception, @param array<string, string> $classMap, @param array{file: string, line: int, class?: string, type?: string, function?: string} $frame, @param string $basePath]
    変更後
    __construct(Symfony\Component\ErrorHandler\Exception\FlattenException $exception, array $classMap, array $frame, string $basePath, ?Illuminate\Foundation\Exceptions\Renderer\Frame $previous = null) [@param \Symfony\Component\ErrorHandler\Exception\FlattenException $exception, @param array<string, string> $classMap, @param array{file: string, line: int, class?: string, type?: string, function?: string, args?: array} $frame, @param string $basePath, @param \Illuminate\Foundation\Exceptions\Renderer\Frame|null $previous]

Illuminate\Http\Exceptions\HttpResponseException

  • __construct
    変更前
    __construct(Symfony\Component\HttpFoundation\Response $response, ?Throwable $previous = null) [@param \Symfony\Component\HttpFoundation\Response $response, @param \Throwable $previous]
    変更後
    __construct(Symfony\Component\HttpFoundation\Response $response, ?Throwable $previous = null) [@param \Symfony\Component\HttpFoundation\Response $response, @param \Throwable|null $previous]

Illuminate\Http\Middleware\AddLinkHeadersForPreloadedAssets

  • handle
    変更前
    handle($request, $next, $limit = null) [@param \Illuminate\Http\Request $request, @param \Closure $next, @param int $limit, @return \Illuminate\Http\Response]
    変更後
    handle($request, $next, $limit = null) [@param \Illuminate\Http\Request $request, @param \Closure $next, @param int|null $limit, @return \Illuminate\Http\Response]

Illuminate\Log\Events\MessageLogged

  • __construct
    変更前
    __construct($level, $message, array $context = []) [@param string $level, @param string $message, @param array $context]
    変更後
    __construct($level, $message, array $context = []) [@param "emergency"|"alert"|"critical"|"error"|"warning"|"notice"|"info"|"debug" $level, @param string $message, @param array $context]

Illuminate\Queue\InteractsWithQueue

  • assertReleased
    変更前
    assertReleased($delay = null) [@param \DateTimeInterface|\DateInterval|int $delay, @return $this]
    変更後
    assertReleased($delay = null) [@param \DateTimeInterface|\DateInterval|int|null $delay, @return $this]

Illuminate\Routing\PendingResourceRegistration

  • withoutMiddleware
    変更前
    withoutMiddleware($middleware) [@param array|string $middleware, @return $this|array]
    変更後
    withoutMiddleware($middleware) [@param array|string $middleware, @return $this]

Illuminate\Routing\PendingSingletonResourceRegistration

  • withoutMiddleware
    変更前
    withoutMiddleware($middleware) [@param array|string $middleware, @return $this|array]
    変更後
    withoutMiddleware($middleware) [@param array|string $middleware, @return $this]

Illuminate\Session\SessionManager

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

Illuminate\Support\AggregateServiceProvider

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

Illuminate\Support\Arr

  • array
    変更前
    static array(ArrayAccess|array $array, string|int|null $key, ?array $default = null): array
    変更後
    static array(ArrayAccess|array $array, string|int|null $key, ?array $default = null) [@return array|null]

Illuminate\Support\Collection

  • sole
    変更前
    sole($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string $key, @param mixed $operator, @param mixed $value, @return TValue]
    変更後
    sole($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string|null $key, @param mixed $operator, @param mixed $value, @return TValue]

Illuminate\Support\Enumerable

  • firstOrFail
    変更前
    firstOrFail($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string $key, @param mixed $operator, @param mixed $value, @return TValue]
    変更後
    firstOrFail($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string|null $key, @param mixed $operator, @param mixed $value, @return TValue]

Illuminate\Support\Facades\Http

  • fake
    変更前
    static fake($callback = null) [@param \Closure|array $callback, @return \Illuminate\Http\Client\Factory]
    変更後
    static fake($callback = null) [@param \Closure|array|null $callback, @return \Illuminate\Http\Client\Factory]

Illuminate\Support\Facades\Session

  • getDefaultDriver
    変更前
    @method static getDefaultDriver(): string
    変更後
    @method static getDefaultDriver(): string|null

Illuminate\Support\LazyCollection

  • firstOrFail
    変更前
    firstOrFail($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string $key, @param mixed $operator, @param mixed $value, @return TValue]
    変更後
    firstOrFail($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string|null $key, @param mixed $operator, @param mixed $value, @return TValue]
  • sole
    変更前
    sole($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string $key, @param mixed $operator, @param mixed $value, @return TValue]
    変更後
    sole($key = null, $operator = null, $value = null) [@param (callable(TValue, TKey): bool)|string|null $key, @param mixed $operator, @param mixed $value, @return TValue]
  • takeUntilTimeout
    変更前
    takeUntilTimeout(DateTimeInterface $timeout) [@param \DateTimeInterface $timeout, @return static<TKey, TValue>]
    変更後
    takeUntilTimeout(DateTimeInterface $timeout, ?callable $callback = null) [@param \DateTimeInterface $timeout, @param callable(TValue|null, TKey|null): mixed|null $callback, @return static<TKey, TValue>]

Illuminate\Support\Manager

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

Illuminate\Support\ServiceProvider

  • addProviderToBootstrapFile
    変更前
    static addProviderToBootstrapFile(string $provider, ?string $path = null) [@param string $provider, @param string $path, @return bool]
    変更後
    static addProviderToBootstrapFile(string $provider, ?string $path = null) [@param string $provider, @param string|null $path, @return bool]

Illuminate\Support\Stringable

  • ltrim
    変更前
    ltrim($characters = null) [@param string $characters, @return static]
    変更後
    ltrim($characters = null) [@param string|null $characters, @return static]
  • rtrim
    変更前
    rtrim($characters = null) [@param string $characters, @return static]
    変更後
    rtrim($characters = null) [@param string|null $characters, @return static]
  • trim
    変更前
    trim($characters = null) [@param string $characters, @return static]
    変更後
    trim($characters = null) [@param string|null $characters, @return static]

Illuminate\Validation\Concerns\FilterEmailValidation

  • __construct
    変更前
    __construct($flags = null) [@param int $flags]
    変更後
    __construct($flags = null) [@param int|null $flags]

Illuminate\View\DynamicComponent

  • __construct
    変更前
    __construct(string $component) [@param string $component]
    変更後
    __construct(BackedEnum|string $component) [@param \BackedEnum|string $component]

削除 3

Illuminate\Foundation\Exceptions\Renderer\Exception

Illuminate\Validation\Concerns\ReplacesAttributes

  • replaceProhibitedIfDeclined
    変更前
    replaceProhibitedIfDeclined($message, $attribute, $rule, $parameters) [@param string $message, @param string $attribute, @param string $rule, @param array<int,string> $parameters, @return string]
  • replaceRequiredIfDeclined
    変更前
    replaceRequiredIfDeclined($message, $attribute, $rule, $parameters) [@param string $message, @param string $attribute, @param string $rule, @param array<int,string> $parameters, @return string]