sebastian/type
sebastian/type provides lightweight value objects for representing and working with PHP’s type system (built-in, class, union, intersection, nullable, etc.). Useful for static analysis tools, reflection helpers, and test utilities that need precise type modeling.
Type::fromValue() as well as isAssignable() for object, callable, and iterable typesCallableType::isAssignable() and IterableType::isAssignable() raise an error when the other type is an ObjectType for a class that does not existTypeName::fromReflection() cannot be called with a ReflectionClass object for a concrete class without an error being reported by PHPStaninfection.json is missing from .gitattributesinfection.json is missing from .gitattributesReflectionMapper does not handle unions that contain iterable correctlyReflectionMapper does not handle unions that contain iterable correctlyReflectionMapper does not handle unions that contain iterable correctlyReflectionMapper does not handle unions that contain iterable correctlyReflectionMapper::fromPropertyType() for mapping \ReflectionProperty to a Type objectHow can I help you explore Laravel packages today?