assert icon indicating copy to clipboard operation
assert copied to clipboard

Thin assertion library for use in libraries and business-model

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

Static analysis tools complain about type of `$value` argument but in fact it could be of any type since it will be checked later (that's the purpose of the method).

This pull aids SA for consumers, marking all the assertions as pure preventing errors [such as this](https://psalm.dev/r/39bc7ac575)

I am using validation in my models and want to be specific about the validation errors. I want to know from which class and property and error came. I am...

Is there an efficient concise way to Assert for known possible values ahead of time, i.e. if a variable has values of either `0` or `1` (strings)? This is for...

asserting an expression with classExists(), and the expression is an array, it shows me the following warning: > PHP Warning: class_exists() expects parameter 1 to be string, array > given...

Wanted to file a PR for reporting an issue and followed _How to contribute_. Thanks for the nice introduction in it and also for not being extensive. But already with...

1. [composer.json](https://github.com/beberlei/assert/blob/v2.7.4/composer.json#L16) assert a BSD-2-Clause 1. [All files](https://github.com/beberlei/assert/blob/v2.7.4/lib/Assert/Assertion.php#L8) assert a MIT license 1. [All files](https://github.com/beberlei/assert/blob/v2.7.4/lib/Assert/Assertion.php#L9) assert a non-existent LICENSE.txt file 1. [LICENSE](https://github.com/beberlei/assert/blob/v2.7.4/LICENSE) file doesn't assert a MIT statement I can...

The current `Assert::lazy()` is a very powerful tool that allows for clean easy validation in our actions. However, we've noticed that we sometimes come across this use case: 1. A...