Skip to content
Permalink
Browse files

Update message about hyphens

Fixes #1852
  • Loading branch information...
muglug committed Jun 27, 2019
1 parent e54f899 commit 3088432529e80c919ab3ea96d8f10d12d1b4e7f8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Psalm/Type/Atomic.php
@@ -205,7 +205,7 @@ public static function create(
}
if (strpos($value, '-') && substr($value, 0, 4) !== 'OCI-') {
throw new \Psalm\Exception\TypeParseTreeException('no hyphens allowed');
throw new \Psalm\Exception\TypeParseTreeException('Unrecognized type ' . $value);
}
if (is_numeric($value[0])) {

0 comments on commit 3088432

Please sign in to comment.
You can’t perform that action at this time.