Why not PHP's assert()?
sergejostir opened this issue · comments
Hello.
I was wondering, why is this package not using PHP's native assert()? That way we could have much more control over it.
What kind of control are you referring to?
https://www.php.net/manual/en/function.assert.php
So we can control what kind of feedback we get, or even disable assertions completely (for example in production).
I don'think this should be disabled in production, it defauts the purpose of the package. And you are able to change its behaviour by overriding methods on the class.