mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
Because of how PHP works, when we instantiate an Exception object, the `file` and `line` properties are the file and line where we created the object. That's a desirable behaviour, but there's no value for a user to know that we created an instance of `ValidationException` in the `Validator` class. This commit will overwrite the file and line in the `ValidationException` to where the method `assert()` was called. Note that when running `check()` it will still point to `Validator`, but I decided not to change it, as the method `check()` got deprecated. |
||
|---|---|---|
| .. | ||
| ComponentException.php | ||
| Exception.php | ||
| InvalidClassException.php | ||
| InvalidRuleConstructorException.php | ||
| MissingComposerDependencyException.php | ||
| ValidationException.php | ||