改名
This commit is contained in:
@@ -195,9 +195,9 @@ class Container extends BaseObject
|
|||||||
return match ($param->getType()) {
|
return match ($param->getType()) {
|
||||||
'mixed' => $param->getDefaultValue(),
|
'mixed' => $param->getDefaultValue(),
|
||||||
'string' => '',
|
'string' => '',
|
||||||
'int' => 0,
|
'int', 'float' => 0,
|
||||||
'bool' => false,
|
'bool' => false,
|
||||||
'NULL' => NULL,
|
'' => NULL,
|
||||||
default => Snowflake::createObject($param->getType())
|
default => Snowflake::createObject($param->getType())
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -234,6 +234,7 @@ class Container extends BaseObject
|
|||||||
* @param $class
|
* @param $class
|
||||||
* @return ReflectionClass|null
|
* @return ReflectionClass|null
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
|
* @throws NotFindClassException
|
||||||
*/
|
*/
|
||||||
public function getReflect($class): ?ReflectionClass
|
public function getReflect($class): ?ReflectionClass
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user