Str
Illuminate\Support\Str
class src/Illuminate/Support/Str.php
after
v11.0.0 以前から
static
static after($subject, $search)
@param string $subject
@param string $search
@return string
-
v11.0.0
追加
- 変更後
static after($subject, $search) [@param string $subject, @param string $search, @return string]
afterLast
v11.0.0 以前から
static
static afterLast($subject, $search)
@param string $subject
@param string $search
@return string
-
v11.0.0
追加
- 変更後
static afterLast($subject, $search) [@param string $subject, @param string $search, @return string]
apa
v11.0.0 以前から
static
static apa($value)
@param string $value
@return string
-
v11.0.0
追加
- 変更後
static apa($value) [@param string $value, @return string]
ascii
v11.0.0 以前から
static
static ascii($value, $language = 'en')
@param string $value
@param string $language
@return string
-
v11.0.0
追加
- 変更後
static ascii($value, $language = 'en') [@param string $value, @param string $language, @return string]
before
v11.0.0 以前から
static
static before($subject, $search)
@param string $subject
@param string $search
@return string
-
v11.0.0
追加
- 変更後
static before($subject, $search) [@param string $subject, @param string $search, @return string]
beforeLast
v11.0.0 以前から
static
static beforeLast($subject, $search)
@param string $subject
@param string $search
@return string
-
v11.0.0
追加
- 変更後
static beforeLast($subject, $search) [@param string $subject, @param string $search, @return string]
between
v11.0.0 以前から
static
static between($subject, $from, $to)
@param string $subject
@param string $from
@param string $to
@return string
-
v11.0.0
追加
- 変更後
static between($subject, $from, $to) [@param string $subject, @param string $from, @param string $to, @return string]
betweenFirst
v11.0.0 以前から
static
static betweenFirst($subject, $from, $to)
@param string $subject
@param string $from
@param string $to
@return string
-
v11.0.0
追加
- 変更後
static betweenFirst($subject, $from, $to) [@param string $subject, @param string $from, @param string $to, @return string]
camel
v11.0.0 以前から
static
static camel($value)
@param string $value
@return ($value is '' ? '' : string)
charAt
v11.0.0 以前から
static
static charAt($subject, $index)
@param string $subject
@param int $index
@return string|false
-
v11.0.0
追加
- 変更後
static charAt($subject, $index) [@param string $subject, @param int $index, @return string|false]
chopEnd
v11.13.0 から
static
static chopEnd($subject, $needle)
@param string $subject
@param string|string[] $needle
@return string
-
v11.13.0
追加
- 変更後
static chopEnd($subject, $needle) [@param string $subject, @param string|array $needle, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
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
v11.13.0 から
static
static chopStart($subject, $needle)
@param string $subject
@param string|string[] $needle
@return string
-
v11.13.0
追加
- 変更後
static chopStart($subject, $needle) [@param string $subject, @param string|array $needle, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
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
v11.0.0 以前から
static
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))
-
v11.0.0
追加
- 変更後
static contains($haystack, $needles, $ignoreCase = false) [@param string $haystack, @param string|iterable<string> $needles, @param bool $ignoreCase, @return bool]
-
v12.47.0
シグネチャ変更
- 変更前
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
v11.0.0 以前から
static
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))
-
v11.0.0
追加
- 変更後
static containsAll($haystack, $needles, $ignoreCase = false) [@param string $haystack, @param iterable<string> $needles, @param bool $ignoreCase, @return bool]
-
v12.47.0
シグネチャ変更
- 変更前
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
v11.0.0 以前から
static
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)
-
v11.0.0
追加
- 変更後
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]
-
v12.47.0
シグネチャ変更
- 変更前
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)]
counted
v13.19.0 から
static
static counted($value, $count)
@param string $value
@param int|array|\Countable $count
@return string
-
v13.19.0
追加
- 変更後
static counted($value, $count) [@param string $value, @param int|array|\Countable $count, @return string]
createRandomStringsNormally
v11.0.0 以前から
static
static createRandomStringsNormally()
@return void
-
v11.0.0
追加
- 変更後
static createRandomStringsNormally() [@return void]
createRandomStringsUsing
v11.0.0 以前から
static
static createRandomStringsUsing(?callable $factory = null)
@param (callable(int): string)|null $factory
@return void
-
v11.0.0
追加
- 変更後
static createRandomStringsUsing(callable $factory = null) [@param callable|null $factory, @return void]
-
v11.3.0
シグネチャ変更
- 変更前
static createRandomStringsUsing(callable $factory = null) [@param callable|null $factory, @return void]- 変更後
static createRandomStringsUsing(?callable $factory = null) [@param callable|null $factory, @return void]
-
v12.34.0
シグネチャ変更
- 変更前
static createRandomStringsUsing(?callable $factory = null) [@param callable|null $factory, @return void]- 変更後
static createRandomStringsUsing(?callable $factory = null) [@param (callable(int): string)|null $factory, @return void]
createRandomStringsUsingSequence
v11.0.0 以前から
static
static createRandomStringsUsingSequence(array $sequence, $whenMissing = null)
@param string[] $sequence
@param (callable(int): string)|null $whenMissing
@return void
-
v11.0.0
追加
- 変更後
static createRandomStringsUsingSequence(array $sequence, $whenMissing = null) [@param array $sequence, @param callable|null $whenMissing, @return void]
-
v12.47.0
シグネチャ変更
- 変更前
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]
createUlidsNormally
v11.0.0 以前から
static
static createUlidsNormally()
@return void
-
v11.0.0
追加
- 変更後
static createUlidsNormally() [@return void]
createUlidsUsing
v11.0.0 以前から
static
static createUlidsUsing(?callable $factory = null)
@param (callable(): \Symfony\Component\Uid\Ulid)|null $factory
@return void
-
v11.0.0
追加
- 変更後
static createUlidsUsing(callable $factory = null) [@param callable|null $factory, @return void]
-
v11.3.0
シグネチャ変更
- 変更前
static createUlidsUsing(callable $factory = null) [@param callable|null $factory, @return void]- 変更後
static createUlidsUsing(?callable $factory = null) [@param callable|null $factory, @return void]
-
v12.34.0
シグネチャ変更
- 変更前
static createUlidsUsing(?callable $factory = null) [@param callable|null $factory, @return void]- 変更後
static createUlidsUsing(?callable $factory = null) [@param (callable(): \Symfony\Component\Uid\Ulid)|null $factory, @return void]
createUlidsUsingSequence
v11.0.0 以前から
static
static createUlidsUsingSequence(array $sequence, $whenMissing = null)
@param \Symfony\Component\Uid\Ulid[] $sequence
@param (callable(): \Symfony\Component\Uid\Ulid)|null $whenMissing
@return void
-
v11.0.0
追加
- 変更後
static createUlidsUsingSequence(array $sequence, $whenMissing = null) [@param array $sequence, @param callable|null $whenMissing, @return void]
-
v12.34.0
シグネチャ変更
- 変更前
static createUlidsUsingSequence(array $sequence, $whenMissing = null) [@param array $sequence, @param callable|null $whenMissing, @return void]- 変更後
static createUlidsUsingSequence(array $sequence, $whenMissing = null) [@param array $sequence, @param (callable(): \Symfony\Component\Uid\Ulid)|null $whenMissing, @return void]
-
v12.47.0
シグネチャ変更
- 変更前
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]
createUuidsNormally
v11.0.0 以前から
static
static createUuidsNormally()
@return void
-
v11.0.0
追加
- 変更後
static createUuidsNormally() [@return void]
createUuidsUsing
v11.0.0 以前から
static
static createUuidsUsing(?callable $factory = null)
@param (callable(): \Ramsey\Uuid\UuidInterface)|null $factory
@return void
-
v11.0.0
追加
- 変更後
static createUuidsUsing(callable $factory = null) [@param callable|null $factory, @return void]
-
v11.3.0
シグネチャ変更
- 変更前
static createUuidsUsing(callable $factory = null) [@param callable|null $factory, @return void]- 変更後
static createUuidsUsing(?callable $factory = null) [@param callable|null $factory, @return void]
-
v12.34.0
シグネチャ変更
- 変更前
static createUuidsUsing(?callable $factory = null) [@param callable|null $factory, @return void]- 変更後
static createUuidsUsing(?callable $factory = null) [@param (callable(): \Ramsey\Uuid\UuidInterface)|null $factory, @return void]
createUuidsUsingSequence
v11.0.0 以前から
static
static createUuidsUsingSequence(array $sequence, $whenMissing = null)
@param \Ramsey\Uuid\UuidInterface[] $sequence
@param (callable(): \Ramsey\Uuid\UuidInterface)|null $whenMissing
@return void
-
v11.0.0
追加
- 変更後
static createUuidsUsingSequence(array $sequence, $whenMissing = null) [@param array $sequence, @param callable|null $whenMissing, @return void]
-
v12.34.0
シグネチャ変更
- 変更前
static createUuidsUsingSequence(array $sequence, $whenMissing = null) [@param array $sequence, @param callable|null $whenMissing, @return void]- 変更後
static createUuidsUsingSequence(array $sequence, $whenMissing = null) [@param array $sequence, @param (callable(): \Ramsey\Uuid\UuidInterface)|null $whenMissing, @return void]
-
v12.47.0
シグネチャ変更
- 変更前
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
v11.20.0 から
static
static deduplicate(string $string, array|string $characters = ' ')
@param string $string
@param array<string>|string $characters
@return ($string is '' ? '' : string)
-
v11.20.0
追加
- 変更後
static deduplicate(string $string, string $character = ' ') [@param string $string, @param string $character, @return string]
-
v12.22.0
シグネチャ変更
- 変更前
static deduplicate(string $string, string $character = ' ') [@param string $string, @param string $character, @return string]- 変更後
static deduplicate(string $string, array|string $characters = ' ') [@param string $string, @param array<string>|string $characters, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
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
v11.27.0 から
static
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))
-
v11.27.0
追加
- 変更後
static doesntContain($haystack, $needles, $ignoreCase = false) [@param string $haystack, @param string|iterable<string> $needles, @param bool $ignoreCase, @return bool]
-
v12.47.0
シグネチャ変更
- 変更前
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
v12.20.0 から
static
static doesntEndWith($haystack, $needles)
@param string $haystack
@param string|iterable<string> $needles
@return ($needles is array{} ? true : ($haystack is non-empty-string ? bool : true))
-
v12.20.0
追加
- 変更後
static doesntEndWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return bool]
-
v12.47.0
シグネチャ変更
- 変更前
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
v12.20.0 から
static
static doesntStartWith($haystack, $needles)
@param string $haystack
@param string|iterable<string> $needles
@return ($needles is array{} ? true : ($haystack is non-empty-string ? bool : true))
-
v12.20.0
追加
- 変更後
static doesntStartWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return bool]
-
v12.47.0
シグネチャ変更
- 変更前
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
v11.0.0 以前から
static
static endsWith($haystack, $needles)
@param string $haystack
@param string|iterable<string> $needles
@return ($needles is array{} ? false : ($haystack is non-empty-string ? bool : false))
-
v11.0.0
追加
- 変更後
static endsWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return bool]
-
v12.47.0
シグネチャ変更
- 変更前
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
v11.0.0 以前から
static
static excerpt($text, $phrase = '', $options = [])
@param string $text
@param string $phrase
@param array{radius?: int|float, omission?: string} $options
@return string|null
-
v11.0.0
追加
- 変更後
static excerpt($text, $phrase = '', $options = []) [@param string $text, @param string $phrase, @param array $options, @return string|null]
-
v12.47.0
シグネチャ変更
- 変更前
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]
finish
v11.0.0 以前から
static
static finish($value, $cap)
@param string $value
@param string $cap
@return ($value is '' ? ($cap is '' ? '' : non-empty-string) : non-empty-string)
-
v11.0.0
追加
- 変更後
static finish($value, $cap) [@param string $value, @param string $cap, @return string]
-
v12.48.0
シグネチャ変更
- 変更前
static finish($value, $cap) [@param string $value, @param string $cap, @return string]- 変更後
static finish($value, $cap) [@param string $value, @param string $cap, @return ($value is '' ? ($cap is '' ? '' : non-empty-string) : non-empty-string)]
flushCache
v11.0.0 以前から
static
static flushCache()
@return void
-
v11.0.0
追加
- 変更後
static flushCache() [@return void]
freezeUlids
v11.0.0 以前から
static
static freezeUlids(?Closure $callback = null)
@param (Closure(Ulid): mixed)|null $callback
@return Ulid
-
v11.0.0
追加
- 変更後
static freezeUlids(Closure $callback = null) [@param Closure|null $callback, @return Ulid]
-
v11.3.0
シグネチャ変更
- 変更前
static freezeUlids(Closure $callback = null) [@param Closure|null $callback, @return Ulid]- 変更後
static freezeUlids(?Closure $callback = null) [@param Closure|null $callback, @return Ulid]
-
v12.47.0
シグネチャ変更
- 変更前
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
v11.0.0 以前から
static
static freezeUuids(?Closure $callback = null)
@param (\Closure(\Ramsey\Uuid\UuidInterface): mixed)|null $callback
@return \Ramsey\Uuid\UuidInterface
-
v11.0.0
追加
- 変更後
static freezeUuids(Closure $callback = null) [@param \Closure|null $callback, @return \Ramsey\Uuid\UuidInterface]
-
v11.3.0
シグネチャ変更
- 変更前
static freezeUuids(Closure $callback = null) [@param \Closure|null $callback, @return \Ramsey\Uuid\UuidInterface]- 変更後
static freezeUuids(?Closure $callback = null) [@param \Closure|null $callback, @return \Ramsey\Uuid\UuidInterface]
-
v12.47.0
シグネチャ変更
- 変更前
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
v11.0.0 以前から
static
static fromBase64($string, $strict = false)
@param string $string
@param bool $strict
@return ($strict is true ? ($string is '' ? '' : string|false) : ($string is '' ? '' : string))
-
v11.0.0
追加
- 変更後
static fromBase64($string, $strict = false) [@param string $string, @param bool $strict, @return string|false]
-
v12.47.0
シグネチャ変更
- 変更前
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)]
-
v12.48.0
シグネチャ変更
- 変更前
static fromBase64($string, $strict = false) [@param string $string, @param bool $strict, @return ($strict is true ? string|false : string)]- 変更後
static fromBase64($string, $strict = false) [@param string $string, @param bool $strict, @return ($strict is true ? ($string is '' ? '' : string|false) : ($string is '' ? '' : string))]
headline
v11.0.0 以前から
static
static headline($value)
@param string $value
@return string
-
v11.0.0
追加
- 変更後
static headline($value) [@param string $value, @return string]
initials
v12.55.0 から
static
static initials($value, $capitalize = false)
@param string $value
@param bool $capitalize
@return string
-
v12.55.0
追加
- 変更後
static initials($value, $capitalize = false) [@param string $value, @param bool $capitalize, @return string]
inlineMarkdown
v11.0.0 以前から
static
static inlineMarkdown($string, array $options = [], array $extensions = [])
@param string $string
@param array $options
@param \League\CommonMark\Extension\ExtensionInterface[] $extensions
@return ($string is '' ? '' : string)
-
v11.0.0
追加
- 変更後
static inlineMarkdown($string, array $options = []) [@param string $string, @param array $options, @return string]
-
v11.27.0
シグネチャ変更
- 変更前
static inlineMarkdown($string, array $options = []) [@param string $string, @param array $options, @return string]- 変更後
static inlineMarkdown($string, array $options = [], array $extensions = []) [@param string $string, @param array $options, @param array $extensions, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
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)]
is
v11.0.0 以前から
static
static is($pattern, $value, $ignoreCase = false)
@param string|iterable<string> $pattern
@param string $value
@param bool $ignoreCase
@return bool
-
v11.0.0
追加
- 変更後
static is($pattern, $value) [@param string|iterable<string> $pattern, @param string $value, @return bool]
-
v11.37.0
シグネチャ変更
- 変更前
static is($pattern, $value) [@param string|iterable<string> $pattern, @param string $value, @return bool]- 変更後
static is($pattern, $value, $ignoreCase = false) [@param string|iterable<string> $pattern, @param string $value, @param bool $ignoreCase, @return bool]
isAscii
v11.0.0 以前から
static
static isAscii($value)
@param string $value
@return bool
-
v11.0.0
追加
- 変更後
static isAscii($value) [@param string $value, @return bool]
isJson
v11.0.0 以前から
static
static isJson($value)
@param mixed $value
@return bool
-
v11.0.0
追加
- 変更後
static isJson($value) [@param mixed $value, @return bool]
isMatch
v11.0.0 以前から
static
static isMatch($pattern, $value)
@param string|iterable<string> $pattern
@param string $value
@return ($pattern is array{} ? false : bool)
-
v11.0.0
追加
- 変更後
static isMatch($pattern, $value) [@param string|iterable<string> $pattern, @param string $value, @return bool]
-
v12.47.0
シグネチャ変更
- 変更前
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)]
isUlid
v11.0.0 以前から
static
static isUlid($value)
@param mixed $value
@return bool
-
v11.0.0
追加
- 変更後
static isUlid($value) [@param mixed $value, @return bool]
isUrl
v11.0.0 以前から
static
static isUrl($value, array $protocols = [])
@param mixed $value
@param string[] $protocols
@return bool
-
v11.0.0
追加
- 変更後
static isUrl($value, array $protocols = []) [@param mixed $value, @param array $protocols, @return bool]
-
v12.47.0
シグネチャ変更
- 変更前
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]
isUuid
v11.0.0 以前から
static
static isUuid($value, $version = null)
@param mixed $value
@param int<0, 8>|'nil'|'max'|null $version
@return bool
-
v11.0.0
追加
- 変更後
static isUuid($value) [@param mixed $value, @return bool]
-
v12.0.0
シグネチャ変更
- 変更前
static isUuid($value) [@param mixed $value, @return bool]- 変更後
static isUuid($value, $version = null) [@param mixed $value, @param int<0, 8>|'max'|null $version, @return bool]
-
v12.22.0
シグネチャ変更
- 変更前
static isUuid($value, $version = null) [@param mixed $value, @param int<0, 8>|'max'|null $version, @return bool]- 変更後
static isUuid($value, $version = null) [@param mixed $value, @param int<0, 8>|'nil'|'max'|null $version, @return bool]
kebab
v11.0.0 以前から
static
static kebab($value)
@param string $value
@return ($value is '' ? '' : string)
lcfirst
v11.0.0 以前から
static
static lcfirst($string)
@param string $string
@return ($string is '' ? '' : non-empty-string)
-
v11.0.0
追加
- 変更後
static lcfirst($string) [@param string $string, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
static lcfirst($string) [@param string $string, @return string]- 変更後
static lcfirst($string) [@param string $string, @return ($string is '' ? '' : string)]
-
v12.48.0
シグネチャ変更
- 変更前
static lcfirst($string) [@param string $string, @return ($string is '' ? '' : string)]- 変更後
static lcfirst($string) [@param string $string, @return ($string is '' ? '' : non-empty-string)]
length
v11.0.0 以前から
static
static length($value, $encoding = null)
@param string $value
@param string|null $encoding
@return non-negative-int
-
v11.0.0
追加
- 変更後
static length($value, $encoding = null) [@param string $value, @param string|null $encoding, @return int]
-
v12.47.0
シグネチャ変更
- 変更前
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]
limit
v11.0.0 以前から
static
static limit($value, $limit = 100, $end = '...', $preserveWords = false)
@param string $value
@param int $limit
@param string $end
@param bool $preserveWords
@return string
-
v11.0.0
追加
- 変更後
static limit($value, $limit = 100, $end = '...') [@param string $value, @param int $limit, @param string $end, @return string]
-
v11.18.0
シグネチャ変更
- 変更前
static limit($value, $limit = 100, $end = '...') [@param string $value, @param int $limit, @param string $end, @return string]- 変更後
static limit($value, $limit = 100, $end = '...', $preserveWords = false) [@param string $value, @param int $limit, @param string $end, @param bool $preserveWords, @return string]
lower
v11.0.0 以前から
static
static lower($value)
@param string $value
@return ($value is '' ? '' : non-empty-string&lowercase-string)
-
v11.0.0
追加
- 変更後
static lower($value) [@param string $value, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
static lower($value) [@param string $value, @return string]- 変更後
static lower($value) [@param string $value, @return lowercase-string]
-
v12.48.0
シグネチャ変更
- 変更前
static lower($value) [@param string $value, @return lowercase-string]- 変更後
static lower($value) [@param string $value, @return ($value is '' ? '' : non-empty-string&lowercase-string)]
ltrim
v11.2.0 から
static
static ltrim($value, $charlist = null)
@param string $value
@param string|null $charlist
@return string
-
v11.2.0
追加
- 変更後
static ltrim($value, $charlist = null) [@param string $value, @param string|null $charlist, @return string]
markdown
v11.0.0 以前から
static
static markdown($string, array $options = [], array $extensions = [])
@param string $string
@param array $options
@param \League\CommonMark\Extension\ExtensionInterface[] $extensions
@return ($string is '' ? '' : string)
-
v11.0.0
追加
- 変更後
static markdown($string, array $options = []) [@param string $string, @param array $options, @return string]
-
v11.13.0
シグネチャ変更
- 変更前
static markdown($string, array $options = []) [@param string $string, @param array $options, @return string]- 変更後
static markdown($string, array $options = [], array $extensions = []) [@param string $string, @param array $options, @param array $extensions, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
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)]
mask
v11.0.0 以前から
static
static mask($string, $character, $index, $length = null, $encoding = 'UTF-8')
@param string $string
@param string $character
@param int $index
@param int|null $length
@param string $encoding
@return string
-
v11.0.0
追加
- 変更後
static mask($string, $character, $index, $length = null, $encoding = 'UTF-8') [@param string $string, @param string $character, @param int $index, @param int|null $length, @param string $encoding, @return string]
match
v11.0.0 以前から
static
static match($pattern, $subject)
@param string $pattern
@param string $subject
@return string
-
v11.0.0
追加
- 変更後
static match($pattern, $subject) [@param string $pattern, @param string $subject, @return string]
matchAll
v11.0.0 以前から
static
static matchAll($pattern, $subject)
@param string $pattern
@param string $subject
@return \Illuminate\Support\Collection
-
v11.0.0
追加
- 変更後
static matchAll($pattern, $subject) [@param string $pattern, @param string $subject, @return \Illuminate\Support\Collection]
numbers
v11.0.0 以前から
static
static numbers($value)
@param string|string[] $value
@return ($value is string ? string : string[])
of
v11.0.0 以前から
static
static of($string)
@param string $string
@return \Illuminate\Support\Stringable
-
v11.0.0
追加
- 変更後
static of($string) [@param string $string, @return \Illuminate\Support\Stringable]
orderedUuid
v11.0.0 以前から
static
static orderedUuid()
@return \Ramsey\Uuid\UuidInterface
-
v11.0.0
追加
- 変更後
static orderedUuid() [@return \Ramsey\Uuid\UuidInterface]
padBoth
v11.0.0 以前から
static
static padBoth($value, $length, $pad = ' ')
@param string $value
@param int $length
@param string $pad
@return string
-
v11.0.0
追加
- 変更後
static padBoth($value, $length, $pad = ' ') [@param string $value, @param int $length, @param string $pad, @return string]
padLeft
v11.0.0 以前から
static
static padLeft($value, $length, $pad = ' ')
@param string $value
@param int $length
@param string $pad
@return string
-
v11.0.0
追加
- 変更後
static padLeft($value, $length, $pad = ' ') [@param string $value, @param int $length, @param string $pad, @return string]
padRight
v11.0.0 以前から
static
static padRight($value, $length, $pad = ' ')
@param string $value
@param int $length
@param string $pad
@return string
-
v11.0.0
追加
- 変更後
static padRight($value, $length, $pad = ' ') [@param string $value, @param int $length, @param string $pad, @return string]
parseCallback
v11.0.0 以前から
static
static parseCallback($callback, $default = null)
@param string $callback
@param string|null $default
@return array<int, string|null>
-
v11.0.0
追加
- 変更後
static parseCallback($callback, $default = null) [@param string $callback, @param string|null $default, @return array<int, string|null>]
pascal
v11.43.0 から
static
static pascal($value, bool $normalize = false)
@param string $value
@param bool $normalize
@return ($value is '' ? '' : string)
-
v11.43.0
追加
- 変更後
static pascal($value) [@param string $value, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
static pascal($value) [@param string $value, @return string]- 変更後
static pascal($value) [@param string $value, @return ($value is '' ? '' : string)]
-
v13.12.0
シグネチャ変更
- 変更前
static pascal($value) [@param string $value, @return ($value is '' ? '' : string)]- 変更後
static pascal($value, bool $normalize = false) [@param string $value, @param bool $normalize, @return ($value is '' ? '' : string)]
password
v11.0.0 以前から
static
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)
-
v11.0.0
追加
- 変更後
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]
-
v12.47.0
シグネチャ変更
- 変更前
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)]
plural
v11.0.0 以前から
static
static plural($value, $count = 2, $prependCount = false)
@param string $value
@param int|array|\Countable $count
@param bool $prependCount
@return string
-
v11.0.0
追加
- 変更後
static plural($value, $count = 2) [@param string $value, @param int|array|\Countable $count, @return string]
-
v12.27.0
シグネチャ変更
- 変更前
static plural($value, $count = 2) [@param string $value, @param int|array|\Countable $count, @return string]- 変更後
static plural($value, $count = 2, $prependCount = false) [@param string $value, @param int|array|\Countable $count, @param bool $prependCount, @return string]
pluralPascal
v11.43.0 から
static
static pluralPascal($value, $count = 2)
@param string $value
@param int|array|\Countable $count
@return string
-
v11.43.0
追加
- 変更後
static pluralPascal($value, $count = 2) [@param string $value, @param int|array|\Countable $count, @return string]
pluralStudly
v11.0.0 以前から
static
static pluralStudly($value, $count = 2)
@param string $value
@param int|array|\Countable $count
@return string
-
v11.0.0
追加
- 変更後
static pluralStudly($value, $count = 2) [@param string $value, @param int|array|\Countable $count, @return string]
position
v11.0.0 以前から
static
static position($haystack, $needle, $offset = 0, $encoding = null)
@param string $haystack
@param string $needle
@param int $offset
@param string|null $encoding
@return ($haystack is '' ? false : ($needle is '' ? false : int|false))
-
v11.0.0
追加
- 変更後
static position($haystack, $needle, $offset = 0, $encoding = null) [@param string $haystack, @param string $needle, @param int $offset, @param string|null $encoding, @return int|false]
-
v12.47.0
シグネチャ変更
- 変更前
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]
-
v12.48.0
シグネチャ変更
- 変更前
static position($haystack, $needle, $offset = 0, $encoding = null) [@param string $haystack, @param string $needle, @param int $offset, @param string|null $encoding]- 変更後
static position($haystack, $needle, $offset = 0, $encoding = null) [@param string $haystack, @param string $needle, @param int $offset, @param string|null $encoding, @return ($haystack is '' ? false : ($needle is '' ? false : int|false))]
random
v11.0.0 以前から
static
static random($length = 16)
@param int $length
@return string
-
v11.0.0
追加
- 変更後
static random($length = 16) [@param int $length, @return string]
remove
v11.0.0 以前から
static
static remove($search, $subject, $caseSensitive = true)
@param string|iterable<string> $search
@param string|iterable<string> $subject
@param bool $caseSensitive
@return string
-
v11.0.0
追加
- 変更後
static remove($search, $subject, $caseSensitive = true) [@param string|iterable<string> $search, @param string|iterable<string> $subject, @param bool $caseSensitive, @return string]
repeat
v11.0.0 以前から
static
static repeat(string $string, int $times)
@param string $string
@param int $times
@return string
-
v11.0.0
追加
- 変更後
static repeat(string $string, int $times) [@param string $string, @param int $times, @return string]
replace
v11.0.0 以前から
static
static replace($search, $replace, $subject, $caseSensitive = true)
@param string|iterable<string> $search
@param string|iterable<string> $replace
@param string|iterable<string> $subject
@param bool $caseSensitive
@return ($subject is string ? string : string[])
-
v11.0.0
追加
- 変更後
static replace($search, $replace, $subject, $caseSensitive = true) [@param string|iterable<string> $search, @param string|iterable<string> $replace, @param string|iterable<string> $subject, @param bool $caseSensitive, @return string|string[]]
-
v12.40.0
シグネチャ変更
- 変更前
static replace($search, $replace, $subject, $caseSensitive = true) [@param string|iterable<string> $search, @param string|iterable<string> $replace, @param string|iterable<string> $subject, @param bool $caseSensitive, @return string|string[]]- 変更後
static replace($search, $replace, $subject, $caseSensitive = true) [@param string|iterable<string> $search, @param string|iterable<string> $replace, @param string|iterable<string> $subject, @param bool $caseSensitive, @return ($subject is string ? string : string[])]
replaceArray
v11.0.0 以前から
static
static replaceArray($search, $replace, $subject)
@param string $search
@param iterable<string> $replace
@param string $subject
@return string
-
v11.0.0
追加
- 変更後
static replaceArray($search, $replace, $subject) [@param string $search, @param iterable<string> $replace, @param string $subject, @return string]
replaceEnd
v11.0.0 以前から
static
static replaceEnd($search, $replace, $subject)
@param string $search
@param string $replace
@param string $subject
@return string
-
v11.0.0
追加
- 変更後
static replaceEnd($search, $replace, $subject) [@param string $search, @param string $replace, @param string $subject, @return string]
replaceFirst
v11.0.0 以前から
static
static replaceFirst($search, $replace, $subject)
@param string $search
@param string $replace
@param string $subject
@return string
-
v11.0.0
追加
- 変更後
static replaceFirst($search, $replace, $subject) [@param string $search, @param string $replace, @param string $subject, @return string]
replaceLast
v11.0.0 以前から
static
static replaceLast($search, $replace, $subject)
@param string $search
@param string $replace
@param string $subject
@return string
-
v11.0.0
追加
- 変更後
static replaceLast($search, $replace, $subject) [@param string $search, @param string $replace, @param string $subject, @return string]
replaceMatches
v11.0.0 以前から
static
static replaceMatches($pattern, $replace, $subject, $limit = -1)
@param string|string[] $pattern
@param (\Closure(array): string)|string[]|string $replace
@param string[]|string $subject
@param int $limit
@return ($subject is array ? string[]|null : string|null)
-
v11.0.0
追加
- 変更後
static replaceMatches($pattern, $replace, $subject, $limit = -1) [@param array|string $pattern, @param \Closure|string $replace, @param array|string $subject, @param int $limit, @return string|string[]|null]
-
v11.5.0
シグネチャ変更
- 変更前
static replaceMatches($pattern, $replace, $subject, $limit = -1) [@param array|string $pattern, @param \Closure|string $replace, @param array|string $subject, @param int $limit, @return string|string[]|null]- 変更後
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]
-
v12.47.0
シグネチャ変更
- 変更前
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)]
-
v12.48.0
シグネチャ変更
- 変更前
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)]- 変更後
static replaceMatches($pattern, $replace, $subject, $limit = -1) [@param string|string[] $pattern, @param (\Closure(array): string)|string[]|string $replace, @param string[]|string $subject, @param int $limit, @return ($subject is array ? string[]|null : string|null)]
replaceStart
v11.0.0 以前から
static
static replaceStart($search, $replace, $subject)
@param string $search
@param string $replace
@param string $subject
@return string
-
v11.0.0
追加
- 変更後
static replaceStart($search, $replace, $subject) [@param string $search, @param string $replace, @param string $subject, @return string]
resetFactoryState
v13.0.0 から
static
static resetFactoryState()
@return void
-
v13.0.0
追加
- 変更後
static resetFactoryState() [@return void]
reverse
v11.0.0 以前から
static
static reverse(string $value)
@param string $value
@return string
-
v11.0.0
追加
- 変更後
static reverse(string $value) [@param string $value, @return string]
rtrim
v11.2.0 から
static
static rtrim($value, $charlist = null)
@param string $value
@param string|null $charlist
@return string
-
v11.2.0
追加
- 変更後
static rtrim($value, $charlist = null) [@param string $value, @param string|null $charlist, @return string]
singular
v11.0.0 以前から
static
static singular($value)
@param string $value
@return string
-
v11.0.0
追加
- 変更後
static singular($value) [@param string $value, @return string]
slug
v11.0.0 以前から
static
static slug($title, $separator = '-', $language = 'en', $dictionary = ['@' => 'at'])
@param string $title
@param string $separator
@param string|null $language
@param array<string, string> $dictionary
@return string
-
v11.0.0
追加
- 変更後
static slug($title, $separator = '-', $language = 'en', $dictionary = ['@' => 'at']) [@param string $title, @param string $separator, @param string|null $language, @param array<string, string> $dictionary, @return string]
snake
v11.0.0 以前から
static
static snake($value, $delimiter = '_')
@param string $value
@param string $delimiter
@return string
-
v11.0.0
追加
- 変更後
static snake($value, $delimiter = '_') [@param string $value, @param string $delimiter, @return string]
squish
v11.0.0 以前から
static
static squish($value)
@param string $value
@return string
-
v11.0.0
追加
- 変更後
static squish($value) [@param string $value, @return string]
start
v11.0.0 以前から
static
static start($value, $prefix)
@param string $value
@param string $prefix
@return ($value is '' ? ($prefix is '' ? '' : non-empty-string): non-empty-string)
-
v11.0.0
追加
- 変更後
static start($value, $prefix) [@param string $value, @param string $prefix, @return string]
-
v12.48.0
シグネチャ変更
- 変更前
static start($value, $prefix) [@param string $value, @param string $prefix, @return string]- 変更後
static start($value, $prefix) [@param string $value, @param string $prefix, @return ($value is '' ? ($prefix is '' ? '' : non-empty-string): non-empty-string)]
startsWith
v11.0.0 以前から
static
static startsWith($haystack, $needles)
@param string $haystack
@param string|iterable<string> $needles
@return ($needles is array{} ? false : ($haystack is non-empty-string ? bool : false))
-
v11.0.0
追加
- 変更後
static startsWith($haystack, $needles) [@param string $haystack, @param string|iterable<string> $needles, @return bool]
-
v12.47.0
シグネチャ変更
- 変更前
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
v11.0.0 以前から
static
static studly($value, bool $normalize = false)
@param string $value
@param bool $normalize
@return ($value is '' ? '' : string)
-
v11.0.0
追加
- 変更後
static studly($value) [@param string $value, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
static studly($value) [@param string $value, @return string]- 変更後
static studly($value) [@param string $value, @return ($value is '' ? '' : string)]
-
v13.12.0
シグネチャ変更
- 変更前
static studly($value) [@param string $value, @return ($value is '' ? '' : string)]- 変更後
static studly($value, bool $normalize = false) [@param string $value, @param bool $normalize, @return ($value is '' ? '' : string)]
substr
v11.0.0 以前から
static
static substr($string, $start, $length = null, $encoding = 'UTF-8')
@param string $string
@param int $start
@param int|null $length
@param string $encoding
@return string
-
v11.0.0
追加
- 変更後
static substr($string, $start, $length = null, $encoding = 'UTF-8') [@param string $string, @param int $start, @param int|null $length, @param string $encoding, @return string]
substrCount
v11.0.0 以前から
static
static substrCount($haystack, $needle, $offset = 0, $length = null)
@param string $haystack
@param string $needle
@param int $offset
@param int|null $length
@return int
-
v11.0.0
追加
- 変更後
static substrCount($haystack, $needle, $offset = 0, $length = null) [@param string $haystack, @param string $needle, @param int $offset, @param int|null $length, @return int]
substrReplace
v11.0.0 以前から
static
static substrReplace($string, $replace, $offset = 0, $length = null)
@param string|string[] $string
@param string|string[] $replace
@param int|int[] $offset
@param int|int[]|null $length
@return string|string[]
-
v11.0.0
追加
- 変更後
static substrReplace($string, $replace, $offset = 0, $length = null) [@param string|string[] $string, @param string|string[] $replace, @param int|int[] $offset, @param int|int[]|null $length, @return string|string[]]
swap
v11.0.0 以前から
static
static swap(array $map, $subject)
@param array<string, string> $map
@param string $subject
@return string
-
v11.0.0
追加
- 変更後
static swap(array $map, $subject) [@param array $map, @param string $subject, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
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]
take
v11.0.0 以前から
static
static take($string, int $limit): string
@param string $string
@param int $limit
@return string
-
v11.0.0
追加
- 変更後
static take($string, int $limit): string [@param string $string, @param int $limit, @return string]
title
v11.0.0 以前から
static
static title($value)
@param string $value
@return string
-
v11.0.0
追加
- 変更後
static title($value) [@param string $value, @return string]
toBase64
v11.0.0 以前から
static
static toBase64($string): string
@param string $string
@return ($string is '' ? '' : string)
trans
v13.18.1 から
static
static trans($key, $replace = [], $locale = null)
@param string $key
@param array $replace
@param string|null $locale
@return \Illuminate\Support\Stringable
-
v13.18.1
追加
- 変更後
static trans($key, $replace = [], $locale = null) [@param string $key, @param array $replace, @param string|null $locale, @return \Illuminate\Support\Stringable]
transliterate
v11.0.0 以前から
static
static transliterate($string, $unknown = '?', $strict = false)
@param string $string
@param string|null $unknown
@param bool|null $strict
@return string
-
v11.0.0
追加
- 変更後
static transliterate($string, $unknown = '?', $strict = false) [@param string $string, @param string|null $unknown, @param bool|null $strict, @return string]
trim
v11.2.0 から
static
static trim($value, $charlist = null)
@param string $value
@param string|null $charlist
@return string
-
v11.2.0
追加
- 変更後
static trim($value, $charlist = null) [@param string $value, @param string|null $charlist, @return string]
ucfirst
v11.0.0 以前から
static
static ucfirst($string)
@param string $string
@return ($string is '' ? '' : non-empty-string)
-
v11.0.0
追加
- 変更後
static ucfirst($string) [@param string $string, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
static ucfirst($string) [@param string $string, @return string]- 変更後
static ucfirst($string) [@param string $string, @return ($string is '' ? '' : string)]
-
v12.48.0
シグネチャ変更
- 変更前
static ucfirst($string) [@param string $string, @return ($string is '' ? '' : string)]- 変更後
static ucfirst($string) [@param string $string, @return ($string is '' ? '' : non-empty-string)]
ucsplit
v11.0.0 以前から
static
static ucsplit($string)
@param string $string
@return ($string is '' ? array{} : string[])
ucwords
v12.37.0 から
static
static ucwords($string, $separators = " \t\r\n\f\v")
@param string $string
@param string $separators
@return ($string is '' ? '' : non-empty-string)
-
v12.37.0
追加
- 変更後
static ucwords($string, $separators = " \t\r\n\f\v") [@param string $string, @param string $separators, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
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)]
-
v12.48.0
シグネチャ変更
- 変更前
static ucwords($string, $separators = " \t\r\n\f\v") [@param string $string, @param string $separators, @return ($string is '' ? '' : string)]- 変更後
static ucwords($string, $separators = " \t\r\n\f\v") [@param string $string, @param string $separators, @return ($string is '' ? '' : non-empty-string)]
ulid
v11.0.0 以前から
static
static ulid($time = null)
@param \DateTimeInterface|null $time
@return \Symfony\Component\Uid\Ulid
-
v11.0.0
追加
- 変更後
static ulid($time = null) [@param \DateTimeInterface|null $time, @return \Symfony\Component\Uid\Ulid]
unwrap
v11.0.0 以前から
static
static unwrap($value, $before, $after = null)
@param string $value
@param string $before
@param string|null $after
@return string
-
v11.0.0
追加
- 変更後
static unwrap($value, $before, $after = null) [@param string $value, @param string $before, @param string|null $after, @return string]
upper
v11.0.0 以前から
static
static upper($value)
@param string $value
@return ($value is '' ? '' : non-empty-string&uppercase-string)
-
v11.0.0
追加
- 変更後
static upper($value) [@param string $value, @return string]
-
v12.47.0
シグネチャ変更
- 変更前
static upper($value) [@param string $value, @return string]- 変更後
static upper($value) [@param string $value, @return uppercase-string]
-
v12.48.0
シグネチャ変更
- 変更前
static upper($value) [@param string $value, @return uppercase-string]- 変更後
static upper($value) [@param string $value, @return ($value is '' ? '' : non-empty-string&uppercase-string)]
uuid
v11.0.0 以前から
static
static uuid()
@return \Ramsey\Uuid\UuidInterface
-
v11.0.0
追加
- 変更後
static uuid() [@return \Ramsey\Uuid\UuidInterface]
uuid7
v11.17.0 から
static
static uuid7($time = null)
@param \DateTimeInterface|null $time
@return \Ramsey\Uuid\UuidInterface
-
v11.17.0
追加
- 変更後
static uuid7($time = null) [@param \DateTimeInterface|null $time, @return \Ramsey\Uuid\UuidInterface]
wordCount
v11.0.0 以前から
static
static wordCount($string, $characters = null)
@param string $string
@param string|null $characters
@return non-negative-int
-
v11.0.0
追加
- 変更後
static wordCount($string, $characters = null) [@param string $string, @param string|null $characters, @return int]
-
v12.47.0
シグネチャ変更
- 変更前
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]
words
v11.0.0 以前から
static
static words($value, $words = 100, $end = '...')
@param string $value
@param int $words
@param string $end
@return string
-
v11.0.0
追加
- 変更後
static words($value, $words = 100, $end = '...') [@param string $value, @param int $words, @param string $end, @return string]
wordWrap
v11.0.0 以前から
static
static wordWrap($string, $characters = 75, $break = "\n", $cutLongWords = false)
@param string $string
@param int $characters
@param string $break
@param bool $cutLongWords
@return string
-
v11.0.0
追加
- 変更後
static wordWrap($string, $characters = 75, $break = "\n", $cutLongWords = false) [@param string $string, @param int $characters, @param string $break, @param bool $cutLongWords, @return string]
wrap
v11.0.0 以前から
static
static wrap($value, $before, $after = null)
@param string $value
@param string $before
@param string|null $after
@return ($value is '' ? ($before is '' ? ($after is '' ? '' : ($after is null ? '' : non-empty-string)) : non-empty-string) : non-empty-string)
-
v11.0.0
追加
- 変更後
static wrap($value, $before, $after = null) [@param string $value, @param string $before, @param string|null $after, @return string]
-
v12.48.0
シグネチャ変更
- 変更前
static wrap($value, $before, $after = null) [@param string $value, @param string $before, @param string|null $after, @return string]- 変更後
static wrap($value, $before, $after = null) [@param string $value, @param string $before, @param string|null $after, @return ($value is '' ? ($before is '' ? ($after is '' ? '' : ($after is null ? '' : non-empty-string)) : non-empty-string) : non-empty-string)]