Optional

Illuminate\Support\Optional

class src/Illuminate/Support/Optional.php

__call

v11.0.0 以前から

__call($method, $parameters)
@param string $method
@param array $parameters
@return mixed
  1. v11.0.0 追加
    変更後
    __call($method, $parameters) [@param string $method, @param array $parameters, @return mixed]

__construct

v11.0.0 以前から

__construct($value)
@param mixed $value
  1. v11.0.0 追加
    変更後
    __construct($value) [@param mixed $value, @return void]
  2. v12.4.0 シグネチャ変更
    変更前
    __construct($value) [@param mixed $value, @return void]
    変更後
    __construct($value) [@param mixed $value]

__get

v11.0.0 以前から

__get($key)
@param string $key
@return mixed
  1. v11.0.0 追加
    変更後
    __get($key) [@param string $key, @return mixed]

__isset

v11.0.0 以前から

__isset($name)
@param mixed $name
@return bool
  1. v11.0.0 追加
    変更後
    __isset($name) [@param mixed $name, @return bool]

offsetExists

v11.0.0 以前から

offsetExists($offset): bool
@param mixed $offset
@return bool
  1. v11.0.0 追加
    変更後
    offsetExists($key): bool [@param mixed $key, @return bool]
  2. v13.0.0 シグネチャ変更
    変更前
    offsetExists($key): bool [@param mixed $key, @return bool]
    変更後
    offsetExists($offset): bool [@param mixed $offset, @return bool]

offsetGet

v11.0.0 以前から

offsetGet($offset): mixed
@param mixed $offset
@return mixed
  1. v11.0.0 追加
    変更後
    offsetGet($key): mixed [@param mixed $key, @return mixed]
  2. v13.0.0 シグネチャ変更
    変更前
    offsetGet($key): mixed [@param mixed $key, @return mixed]
    変更後
    offsetGet($offset): mixed [@param mixed $offset, @return mixed]

offsetSet

v11.0.0 以前から

offsetSet($offset, $value): void
@param mixed $offset
@param mixed $value
@return void
  1. v11.0.0 追加
    変更後
    offsetSet($key, $value): void [@param mixed $key, @param mixed $value, @return void]
  2. v13.0.0 シグネチャ変更
    変更前
    offsetSet($key, $value): void [@param mixed $key, @param mixed $value, @return void]
    変更後
    offsetSet($offset, $value): void [@param mixed $offset, @param mixed $value, @return void]

offsetUnset

v11.0.0 以前から

offsetUnset($offset): void
@param mixed $offset
@return void
  1. v11.0.0 追加
    変更後
    offsetUnset($key): void [@param string $key, @return void]
  2. v13.0.0 シグネチャ変更
    変更前
    offsetUnset($key): void [@param string $key, @return void]
    変更後
    offsetUnset($offset): void [@param string $offset, @return void]
  3. v13.12.0 シグネチャ変更
    変更前
    offsetUnset($offset): void [@param string $offset, @return void]
    変更後
    offsetUnset($offset): void [@param mixed $offset, @return void]