Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into 2574
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/AbstractWord.php
Expand Up @@ -365,11 +365,11 @@ protected function generateRandomId()
*/
public function isValid($value, $context = null)
{
if (!is_array($value) && !is_array($context)) {
$this->error(self::MISSING_VALUE);
return false;
}
if (!is_array($value) && is_array($context)) {
if (!is_array($value)) {
if (!is_array($context)) {
$this->error(self::MISSING_VALUE);
return false;
}
$value = $context;
}

Expand Down

0 comments on commit 3cfe9f5

Please sign in to comment.