@throws InvalidArgumentExceptionannotations to all methods that throw.
@psalm-assertfor the list type to the
SimpleXMLElementnow pass the
isCountableassertions. They are countable, without implementing the
rangenow has the proper variables.
isMap. As it is a valid form of both. If a non empty variant is needed, use
@psalm-assertannotations, that were 'side effect' assertions See:
3.6.0. Which is enforced through a composer conflict. If you don't use psalm, then this has no impact.
@psalm-assertannotations where appropriate.
Assert::endsWith()would not give the correct result when dealing with multibyte suffix.
Assert::length(), minLength, maxLength, lengthBetweenwould not give the correct result when dealing with multibyte characters.
NOTE: These 2 changes may break your assertions if you relied on the fact that multibyte characters didn't behave correctly.
Assert::isTraversable()in favor of
trigger_error. It is now annotated as well.
Please login to add feedback.