-
Notifications
You must be signed in to change notification settings - Fork 204
Call to a member function count() on a non-object #171
Comments
I couldn't find the line you're speaking, nor could understand your issue. Try to be more specific about what non-object variable were causing the error, or send directly a PR about the case. You can do everything through github itself, including editing the file :) |
I got this problem too.
It's line 531 to 536 in
You are trying to
|
Or we should make sure that validationErrors is always a valid object? What
|
I'll leave that up to you. I don't know how the code works, sorry. |
Yeah, that was more like a reminder for when this issue is looked again (:
|
Resolved in #201 |
See here for solution without any changes to Ardent.php: #128 (comment) |
@tomxc your suggestion works just fine — thanks. |
this is fixed by #225 |
When validating I get the following error: Call to a member function count() on a non-object.
If I add this to the if statement on Ardent.php 526 it works: $this->validationErrors && ...
Is this a correct quick fix?
The text was updated successfully, but these errors were encountered: