Commit e820f98b authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Utilise un test un peu naïf mais efficace pour tester le type des IRIs.

parent de4d5be2
......@@ -76,15 +76,7 @@ final class IRI extends AbstractType
public function checkType(string $expr, bool $explicit = false): string
return sprintf('(%s)', implode(
' || ',
function (string $name) use ($expr) {
return sprintf('%sRepository.isIRI(%s)', $name, $expr);
return sprintf("(typeof %s === 'string')", $expr);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment