andersao / andersao/laravel-validator
Invoking "errors" method causes fatal error
Offen
- Vorherrschende Sprache
- PHP
- Sterne
- 406
- Forks
- 88
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
After calling the "passes" method to validate data, calling the `errors()` method triggers a fatal error by attempting to invoke the `all()` method on an array.
My example code
```
$data = $this->request->json();
$this->validator->with->data($data)->passes(ValidatorInterface::RULE_CREATE);
$this->validator->errors();
```
The error
```
PHP Fatal error: Call to a member function all() on array in /var/www/my.app/vendor/prettus/laravel-validation/src/Prettus/Validator/AbstractValidator.php on line 92
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.