We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cde937 + 2e72ba9 commit d14d83fCopy full SHA for d14d83f
phalcon/Filter/Validation.zep
@@ -179,7 +179,8 @@ class Validation extends Injectable implements ValidationInterface
179
let this->data = data;
180
this->setEntity(entity);
181
182
- if unlikely (typeof data != "array" && typeof data != "object") {
+ // if data is not an array / object or if the entity is null, then no need to proceed further
183
+ if unlikely (typeof data != "array" && typeof data != "object") || (null === entity) {
184
return this;
185
}
186
0 commit comments