v12.47.0

追加 17

Illuminate\Cache\Repository

  • withoutOverlapping
    変更後
    withoutOverlapping($key, callable $callback, $lockFor = 0, $waitFor = 10, $owner = null) [@param string $key, @param callable(): TReturn $callback, @param int $lockFor, @param int $waitFor, @param string|null $owner, @return TReturn]

Illuminate\Database\Connection

  • setReadPdoConfig
    変更後
    setReadPdoConfig(array $config) [@param array $config, @return $this]

Illuminate\Database\Query\Builder

  • orderByVectorDistance
    変更後
    orderByVectorDistance($column, $vector) [@param \Illuminate\Contracts\Database\Query\Expression|string $column, @param \Illuminate\Support\Collection<int, float>|\Illuminate\Contracts\Support\Arrayable|array<int, float> $vector, @return $this]
  • orWhereVectorDistanceLessThan
    変更後
    orWhereVectorDistanceLessThan($column, $vector, $maxDistance) [@param \Illuminate\Contracts\Database\Query\Expression|string $column, @param \Illuminate\Support\Collection<int, float>|\Illuminate\Contracts\Support\Arrayable|array<int, float>|string $vector, @param float $maxDistance, @return $this]
  • selectVectorDistance
    変更後
    selectVectorDistance($column, $vector, $as = null) [@param \Illuminate\Contracts\Database\Query\Expression|string $column, @param \Illuminate\Support\Collection<int, float>|\Illuminate\Contracts\Support\Arrayable|array<int, float>|string $vector, @param string|null $as, @return $this]
  • whereVectorDistanceLessThan
    変更後
    whereVectorDistanceLessThan($column, $vector, $maxDistance, $boolean = 'and') [@param \Illuminate\Contracts\Database\Query\Expression|string $column, @param \Illuminate\Support\Collection<int, float>|\Illuminate\Contracts\Support\Arrayable|array<int, float>|string $vector, @param float $maxDistance, @param string $boolean, @return $this]
  • whereVectorSimilarTo
    変更後
    whereVectorSimilarTo($column, $vector, $minSimilarity = 0.6, $order = true) [@param \Illuminate\Contracts\Database\Query\Expression|string $column, @param \Illuminate\Support\Collection<int, float>|\Illuminate\Contracts\Support\Arrayable|array<int, float>|string $vector, @param float $minSimilarity, @param bool $order, @return $this]

Illuminate\Database\Schema\Blueprint

  • vectorIndex
    変更後
    vectorIndex($column, $name = null) [@param string $column, @param string|null $name, @return \Illuminate\Database\Schema\IndexDefinition]

Illuminate\Database\Schema\Builder

  • ensureExtensionExists
    変更後
    ensureExtensionExists($name, $schema = null) [@param string $name, @param string|null $schema, @return void]
  • ensureVectorExtensionExists
    変更後
    ensureVectorExtensionExists($schema = null) [@param string|null $schema, @return void]

Illuminate\Database\Schema\ColumnDefinition

  • vectorIndex
    変更後
    @method vectorIndex(bool|string $indexName = null): $this

Illuminate\Database\Schema\Grammars\Grammar

  • compileVectorIndex
    変更後
    compileVectorIndex(Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command) [@param \Illuminate\Database\Schema\Blueprint $blueprint, @param \Illuminate\Support\Fluent $command, @return void]

Illuminate\Database\Schema\Grammars\PostgresGrammar

  • compileVectorIndex
    変更後
    compileVectorIndex(Illuminate\Database\Schema\Blueprint $blueprint, Illuminate\Support\Fluent $command) [@param \Illuminate\Database\Schema\Blueprint $blueprint, @param \Illuminate\Support\Fluent $command, @return string]

Illuminate\Support\Facades\Cache

  • withoutOverlapping
    変更後
    @method static withoutOverlapping(string $key, callable $callback, int $lockFor = 0, int $waitFor = 10, string|null $owner = null): mixed

Illuminate\Support\Facades\DB

  • setReadPdoConfig
    変更後
    @method static setReadPdoConfig(array $config): \Illuminate\Database\Connection

Illuminate\Support\Facades\Schema

シグネチャ変更 54

Illuminate\Bus\PendingBatch

  • onConnection
    変更前
    onConnection(string $connection) [@param string $connection, @return $this]
    変更後
    onConnection(UnitEnum|string $connection) [@param \UnitEnum|string $connection, @return $this]

Illuminate\Cache\FailoverStore

  • __construct
    変更前
    __construct(Illuminate\Cache\CacheManager $cache, Illuminate\Contracts\Events\Dispatcher $events, array $stores)
    変更後
    __construct(Illuminate\Cache\CacheManager $cache, Illuminate\Contracts\Events\Dispatcher $events, array $stores) [@param array<int, string> $stores]

Illuminate\Database\Console\Migrations\TableGuesser

  • guess
    変更前
    static guess($migration) [@param string $migration, @return array]
    変更後
    static guess($migration) [@param string $migration, @return array{string, bool}]

Illuminate\Foundation\Http\FormRequest

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

Illuminate\Session\Store

  • exists
    変更前
    exists($key) [@param string|array $key, @return bool]
    変更後
    exists($key) [@param \BackedEnum|\UnitEnum|string|array $key, @return bool]
  • has
    変更前
    has($key) [@param string|array $key, @return bool]
    変更後
    has($key) [@param \BackedEnum|\UnitEnum|string|array $key, @return bool]
  • hasAny
    変更前
    hasAny($key) [@param string|array $key, @return bool]
    変更後
    hasAny($key) [@param \BackedEnum|\UnitEnum|string|array $key, @return bool]
  • missing
    変更前
    missing($key) [@param string|array $key, @return bool]
    変更後
    missing($key) [@param \BackedEnum|\UnitEnum|string|array $key, @return bool]

Illuminate\Support\Facades\Session

  • exists
    変更前
    @method static exists(string|array $key): bool
    変更後
    @method static exists(\BackedEnum|\UnitEnum|string|array $key): bool
  • has
    変更前
    @method static has(string|array $key): bool
    変更後
    @method static has(\BackedEnum|\UnitEnum|string|array $key): bool
  • hasAny
    変更前
    @method static hasAny(string|array $key): bool
    変更後
    @method static hasAny(\BackedEnum|\UnitEnum|string|array $key): bool
  • missing
    変更前
    @method static missing(string|array $key): bool
    変更後
    @method static missing(\BackedEnum|\UnitEnum|string|array $key): bool

Illuminate\Support\Number

  • withCurrency
    変更前
    static withCurrency(string $currency, callable $callback) [@param string $currency, @param callable $callback, @return mixed]
    変更後
    static withCurrency(string $currency, callable $callback) [@param string $currency, @param callable(): TReturn $callback, @return TReturn]
  • withLocale
    変更前
    static withLocale(string $locale, callable $callback) [@param string $locale, @param callable $callback, @return mixed]
    変更後
    static withLocale(string $locale, callable $callback) [@param string $locale, @param callable(): TReturn $callback, @return TReturn]

Illuminate\Support\Str

  • camel
    変更前
    static camel($value) [@param string $value, @return string]
    変更後
    static camel($value) [@param string $value, @return ($value is '' ? '' : string)]
  • chopEnd
    変更前
    static chopEnd($subject, $needle) [@param string $subject, @param string|array $needle, @return string]
    変更後
    static chopEnd($subject, $needle) [@param string $subject, @param string|string[] $needle, @return string]
  • chopStart
    変更前
    static chopStart($subject, $needle) [@param string $subject, @param string|array $needle, @return string]
    変更後
    static chopStart($subject, $needle) [@param string $subject, @param string|string[] $needle, @return string]
  • contains
    変更前
    static contains($haystack, $needles, $ignoreCase = false) [@param string $haystack, @param string|iterable<string> $needles, @param bool $ignoreCase, @return bool]
    変更後
    static contains($haystack, $needles, $ignoreCase = false) [@param string $haystack, @param string|iterable<string> $needles, @param bool $ignoreCase, @return ($needles is array{} ? false : ($haystack is non-empty-string ? bool : false))]
  • containsAll
    変更前
    static containsAll($haystack, $needles, $ignoreCase = false) [@param string $haystack, @param iterable<string> $needles, @param bool $ignoreCase, @return bool]
    変更後
    static containsAll($haystack, $needles, $ignoreCase = false) [@param string $haystack, @param iterable<string> $needles, @param bool $ignoreCase, @return ($needles is array{} ? false : ($haystack is non-empty-string ? bool : false))]
  • convertCase
    変更前
    static convertCase(string $string, int $mode = MB_CASE_FOLD, ?string $encoding = 'UTF-8') [@param string $string, @param int $mode, @param string|null $encoding, @return string]
    変更後
    static convertCase(string $string, int $mode = MB_CASE_FOLD, ?string $encoding = 'UTF-8') [@param string $string, @param MB_CASE_UPPER|MB_CASE_LOWER|MB_CASE_TITLE|MB_CASE_FOLD|MB_CASE_UPPER_SIMPLE|MB_CASE_LOWER_SIMPLE|MB_CASE_TITLE_SIMPLE|MB_CASE_FOLD_SIMPLE $mode, @param string|null $encoding, @return ($string is '' ? '' : string)]
  • createRandomStringsUsingSequence
    変更前
    static createRandomStringsUsingSequence(array $sequence, $whenMissing = null) [@param array $sequence, @param callable|null $whenMissing, @return void]
    変更後
    static createRandomStringsUsingSequence(array $sequence, $whenMissing = null) [@param string[] $sequence, @param (callable(int): string)|null $whenMissing, @return void]
  • createUlidsUsingSequence
    変更前
    static createUlidsUsingSequence(array $sequence, $whenMissing = null) [@param array $sequence, @param (callable(): \Symfony\Component\Uid\Ulid)|null $whenMissing, @return void]
    変更後
    static createUlidsUsingSequence(array $sequence, $whenMissing = null) [@param \Symfony\Component\Uid\Ulid[] $sequence, @param (callable(): \Symfony\Component\Uid\Ulid)|null $whenMissing, @return void]
  • createUuidsUsingSequence
    変更前
    static createUuidsUsingSequence(array $sequence, $whenMissing = null) [@param array $sequence, @param (callable(): \Ramsey\Uuid\UuidInterface)|null $whenMissing, @return void]
    変更後
    static createUuidsUsingSequence(array $sequence, $whenMissing = null) [@param \Ramsey\Uuid\UuidInterface[] $sequence, @param (callable(): \Ramsey\Uuid\UuidInterface)|null $whenMissing, @return void]
  • deduplicate
    変更前
    static deduplicate(string $string, array|string $characters = ' ') [@param string $string, @param array<string>|string $characters, @return string]
    変更後
    static deduplicate(string $string, array|string $characters = ' ') [@param string $string, @param array<string>|string $characters, @return ($string is '' ? '' : string)]
  • doesntContain
    変更前
    static doesntContain($haystack, $needles, $ignoreCase = false) [@param string $haystack, @param string|iterable<string> $needles, @param bool $ignoreCase, @return bool]
    変更後
    static doesntContain($haystack, $needles, $ignoreCase = false) [@param string $haystack, @param string|iterable<string> $needles, @param bool $ignoreCase, @return ($needles is array{} ? true : ($haystack is non-empty-string ? bool : true))]
  • doesntEndWith
    変更前
    static doesntEndWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return bool]
    変更後
    static doesntEndWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return ($needles is array{} ? true : ($haystack is non-empty-string ? bool : true))]
  • doesntStartWith
    変更前
    static doesntStartWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return bool]
    変更後
    static doesntStartWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return ($needles is array{} ? true : ($haystack is non-empty-string ? bool : true))]
  • endsWith
    変更前
    static endsWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return bool]
    変更後
    static endsWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return ($needles is array{} ? false : ($haystack is non-empty-string ? bool : false))]
  • excerpt
    変更前
    static excerpt($text, $phrase = '', $options = []) [@param string $text, @param string $phrase, @param array $options, @return string|null]
    変更後
    static excerpt($text, $phrase = '', $options = []) [@param string $text, @param string $phrase, @param array{radius?: int|float, omission?: string} $options, @return string|null]
  • freezeUlids
    変更前
    static freezeUlids(?Closure $callback = null) [@param Closure|null $callback, @return Ulid]
    変更後
    static freezeUlids(?Closure $callback = null) [@param (Closure(Ulid): mixed)|null $callback, @return Ulid]
  • freezeUuids
    変更前
    static freezeUuids(?Closure $callback = null) [@param \Closure|null $callback, @return \Ramsey\Uuid\UuidInterface]
    変更後
    static freezeUuids(?Closure $callback = null) [@param (\Closure(\Ramsey\Uuid\UuidInterface): mixed)|null $callback, @return \Ramsey\Uuid\UuidInterface]
  • fromBase64
    変更前
    static fromBase64($string, $strict = false) [@param string $string, @param bool $strict, @return string|false]
    変更後
    static fromBase64($string, $strict = false) [@param string $string, @param bool $strict, @return ($strict is true ? string|false : string)]
  • inlineMarkdown
    変更前
    static inlineMarkdown($string, array $options = [], array $extensions = []) [@param string $string, @param array $options, @param array $extensions, @return string]
    変更後
    static inlineMarkdown($string, array $options = [], array $extensions = []) [@param string $string, @param array $options, @param \League\CommonMark\Extension\ExtensionInterface[] $extensions, @return ($string is '' ? '' : string)]
  • isMatch
    変更前
    static isMatch($pattern, $value) [@param string|iterable<string> $pattern, @param string $value, @return bool]
    変更後
    static isMatch($pattern, $value) [@param string|iterable<string> $pattern, @param string $value, @return ($pattern is array{} ? false : bool)]
  • isUrl
    変更前
    static isUrl($value, array $protocols = []) [@param mixed $value, @param array $protocols, @return bool]
    変更後
    static isUrl($value, array $protocols = []) [@param mixed $value, @param string[] $protocols, @return bool]
  • kebab
    変更前
    static kebab($value) [@param string $value, @return string]
    変更後
    static kebab($value) [@param string $value, @return ($value is '' ? '' : string)]
  • lcfirst
    変更前
    static lcfirst($string) [@param string $string, @return string]
    変更後
    static lcfirst($string) [@param string $string, @return ($string is '' ? '' : string)]
  • length
    変更前
    static length($value, $encoding = null) [@param string $value, @param string|null $encoding, @return int]
    変更後
    static length($value, $encoding = null) [@param string $value, @param string|null $encoding, @return non-negative-int]
  • lower
    変更前
    static lower($value) [@param string $value, @return string]
    変更後
    static lower($value) [@param string $value, @return lowercase-string]
  • markdown
    変更前
    static markdown($string, array $options = [], array $extensions = []) [@param string $string, @param array $options, @param array $extensions, @return string]
    変更後
    static markdown($string, array $options = [], array $extensions = []) [@param string $string, @param array $options, @param \League\CommonMark\Extension\ExtensionInterface[] $extensions, @return ($string is '' ? '' : string)]
  • pascal
    変更前
    static pascal($value) [@param string $value, @return string]
    変更後
    static pascal($value) [@param string $value, @return ($value is '' ? '' : string)]
  • password
    変更前
    static password($length = 32, $letters = true, $numbers = true, $symbols = true, $spaces = false) [@param int $length, @param bool $letters, @param bool $numbers, @param bool $symbols, @param bool $spaces, @return string]
    変更後
    static password($length = 32, $letters = true, $numbers = true, $symbols = true, $spaces = false) [@param int $length, @param bool $letters, @param bool $numbers, @param bool $symbols, @param bool $spaces, @return ($letters is false ? ($numbers is true ? ($symbols is false ? ($spaces is false ? numeric-string : string) : string) : string) : string)]
  • position
    変更前
    static position($haystack, $needle, $offset = 0, $encoding = null) [@param string $haystack, @param string $needle, @param int $offset, @param string|null $encoding, @return int|false]
    変更後
    static position($haystack, $needle, $offset = 0, $encoding = null) [@param string $haystack, @param string $needle, @param int $offset, @param string|null $encoding]
  • replaceMatches
    変更前
    static replaceMatches($pattern, $replace, $subject, $limit = -1) [@param array|string $pattern, @param \Closure|string[]|string $replace, @param array|string $subject, @param int $limit, @return string|string[]|null]
    変更後
    static replaceMatches($pattern, $replace, $subject, $limit = -1) [@param string|string[] $pattern, @param (\Closure(array): string)|string[]|string $replace, @param array|string[] $subject, @param int $limit, @return ($subject is array ? string|null : string[]|null)]
  • startsWith
    変更前
    static startsWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return bool]
    変更後
    static startsWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return ($needles is array{} ? false : ($haystack is non-empty-string ? bool : false))]
  • studly
    変更前
    static studly($value) [@param string $value, @return string]
    変更後
    static studly($value) [@param string $value, @return ($value is '' ? '' : string)]
  • swap
    変更前
    static swap(array $map, $subject) [@param array $map, @param string $subject, @return string]
    変更後
    static swap(array $map, $subject) [@param array<string, string> $map, @param string $subject, @return string]
  • toBase64
    変更前
    static toBase64($string): string [@param string $string, @return string]
    変更後
    static toBase64($string): string [@param string $string, @return ($string is '' ? '' : string)]
  • ucfirst
    変更前
    static ucfirst($string) [@param string $string, @return string]
    変更後
    static ucfirst($string) [@param string $string, @return ($string is '' ? '' : string)]
  • ucsplit
    変更前
    static ucsplit($string) [@param string $string, @return string[]]
    変更後
    static ucsplit($string) [@param string $string, @return ($string is '' ? array{} : string[])]
  • ucwords
    変更前
    static ucwords($string, $separators = " \t\r\n\f\v") [@param string $string, @param string $separators, @return string]
    変更後
    static ucwords($string, $separators = " \t\r\n\f\v") [@param string $string, @param string $separators, @return ($string is '' ? '' : string)]
  • upper
    変更前
    static upper($value) [@param string $value, @return string]
    変更後
    static upper($value) [@param string $value, @return uppercase-string]
  • wordCount
    変更前
    static wordCount($string, $characters = null) [@param string $string, @param string|null $characters, @return int]
    変更後
    static wordCount($string, $characters = null) [@param string $string, @param string|null $characters, @return non-negative-int]