Fix for "validator must implement `iValidate` interface" exception that happens due to a bug in PHP https://bugs.php.net/bug.php?id=53727