assert icon indicating copy to clipboard operation
assert copied to clipboard

Assertions to validate method input/output with nice error messages.

Results 61 assert issues
Sort by recently updated
recently updated
newest added

I am currently working on adding a few new `psalm-assert` features. While doing so, I got plenty of psalm issues when properly executing it locally. You can actually verify that...

Upcoming release https://wiki.php.net/todo/php82 already started to publish releases There's few incompatibilities detected so let's collect them under this issue On July 21 first beta will be published but some changes...

I noticed `ext-cytpe` typo, so let my IDE show me other typos.

Hi, Thanks for your library! I have discovered the following issue: The method `allOneOf($values, $values, $message = '')` of `Webmozart\Assert` has in the signature two variables with the same name...

What do you think about 2 dedicated methods to assert latitude/longitude values?

It is useful in order to delay generating a message. At the moment the assertion does not pass the message is generated. Otherwise the thunk is not executed.

feature

Thre is a method for checking if the value is instance of at least one class on the array of classes ``` isInstanceOfAny($value, array $classes, $message = '') ``` But...

bug
symmetry

I notice there are no psalm annotations for `oneOf()` or `allOneOf()`. I'm actually not even sure if `@psalm-assert` could be used for such a method but at least wanted to...

I have extended webmozart/assert's code for my use case in which I want to know more detailed information about assertions. I do assertions inside my entities and would always like...

As the assert from beberlei's package propose them, so we can build assertions : ```php