Skip to content

Commit

Permalink
added check for empty default value in isLiteral()
Browse files Browse the repository at this point in the history
  • Loading branch information
oliwierptak committed Jun 21, 2022
1 parent e59036e commit eb4314d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Popo/Schema/Inspector/SchemaInspector.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public function isLiteral($value): bool
return false;
}

if (trim($value) === '') {
return false;
}

return strpos($value, '::') !== false || $value[0] === '\\';
}

Expand Down

0 comments on commit eb4314d

Please sign in to comment.