version 7.0.0
Added
valuemethod to replace the removedgetContentmethod.- requires
League\Uripackage. League\Uri\Components\Scheme::newnamed constructorLeague\Uri\Components\UserInfo::newnamed constructorLeague\Uri\Components\Host::newnamed constructorLeague\Uri\Components\Domain::newnamed constructorLeague\Uri\Components\Fragment::newnamed constructorLeague\Uri\Components\Query::newnamed constructorLeague\Uri\Components\Path::newnamed constructorLeague\Uri\Components\DataPath::newnamed constructorLeague\Uri\Components\UserInfo::withUsermodifier methodLeague\Uri\Components\UserInfo::withPassmodifier methodLeague\Uri\Components\Port::fromNumbermodifier methodLeague\Uri\Components\Query::parametersaccessing methodLeague\Uri\Components\Query::parameteraccessing methodLeague\Uri\Components\Query::hasParameteraccessing methodLeague\Uri\IPv4Calculators\MissingIPv4CalculatorexceptionLeague\Uri\Components\OffsetOutOfBoundsexception addedLeague\Uri\Modifierto replace deprecatedLeague\Uri\Modifier
Fixed
- converts Value Objects properties to being
private readonlywhere possible. - All components class constructors (except for the
UserInfoand theAuthorityclasses) are made private use the available named constructors instead - Named constructors default value are removed, you need to explicitly add an argument value or use the
::new()named constructor instead. UserInfoclass makes a distinction betweennulland the empty string.Query::hasaccessing method accept a variadic parameters to check multiple keys at the same time.Domainvalue can benullor a non-empty string previously it would trigger an exceptionDomain::appendandDomain::prependrespects the root status of the instance.
Deprecated
- All
createFromStringnamed constructors are replaced by thenewnamed constructor. - All
createFromNullnamed constructors are replaced by thenewnamed constructor. - All remaining named constructors which starts with
createFrom*replaced by the same method starting withfrom*. For exampleAuthority::createFromUriis deprecated in favor ofAuthority::fromUri Query::paramsis replaced byQuery::parametersandQuery::parameterHierarchicalPath::segmentsuseHierarchicalPath::getIteratorinsteadDomain::labelsuseDomain::getIteratorinsteadLeague\Uri\UriModifieruseLeague\Uri\ModifierLeague\Uri\IPv4NormalizeruseLeague\Uri\Modifierinstead
Removed
- PHP7 and PHP8.0 support
withContentandgetContentmethods- Support for
__set_state - Support for
floattype as possible argument for components - Support for
inttype as possible argument for components UserInfo::withUserInfomodifier method useUserInfo::withUserand/orUserInfo::withPassinstead- Remove the
Exceptionsnamespace League\Uri\Exceptions\IPv4CalculatorMissinguseLeague\Uri\IPv4Calculators\MissingIPv4CalculatorinsteadLeague\Uri\Exceptions\OffsetOutOfBoundsuseLeague\Uri\Components\OffsetOutOfBoundsinsteadLeague\Uri\QueryStringclass. Class moved to theuri-interfacespackage.
Full Changelog: 7.0.0-beta.2...7.0.0