All notable changes are documented in this file using the Keep a CHANGELOG principles.
ReflectionMapper::fromParameterTypes()
IntersectionType::types()
and UnionType::types()
UnionType::containsIntersectionTypes()
true
as stand-alone typenever
return type introduced in PHP 8.1Type::isCallable()
, Type::isGenericObject()
, Type::isIterable()
, Type::isMixed()
, Type::isNever()
, Type::isNull()
, Type::isObject()
, Type::isSimple()
, Type::isStatic()
, Type::isUnion()
, Type::isUnknown()
, and Type::isVoid()
ReflectionMapper::fromMethodReturnType(ReflectionMethod $method)
to ReflectionMapper::fromReturnType(ReflectionFunctionAbstract $functionOrMethod)
Type::getReturnTypeDeclaration()
(use Type::asString()
instead and prefix its result with ': '
)TypeName::getNamespaceName()
(use TypeName::namespaceName()
instead)TypeName::getSimpleName()
(use TypeName::simpleName()
instead)TypeName::getQualifiedName()
(use TypeName::qualifiedName()
instead)SebastianBergmann\Type\Exception
now correctly extends \Throwable
static
return type that is introduced in PHP 8composer.json
from ^7.3 || ^8.0
to >=7.3
mixed
type in ReflectionMapper::fromMethodReturnType()
MixedType
object for representing PHP 8's mixed
typeUnionType
object for representing PHP 8's Union TypesReflectionMapper::fromMethodReturnType()
for mapping \ReflectionMethod::getReturnType()
to a Type
objectType::name()
for retrieving the name of a typeType::asString()
for retrieving a textual representation of a typeType::getReturnTypeDeclaration()
(use Type::asString()
instead and prefix its result with ': '
)TypeName::getNamespaceName()
(use TypeName::namespaceName()
instead)TypeName::getSimpleName()
(use TypeName::simpleName()
instead)TypeName::getQualifiedName()
(use TypeName::qualifiedName()
instead)ObjectType
to be case-insensitiveobject
typecallback_function.php
fixture filecallable
typeiterable
type