1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix bad offset

This commit is contained in:
Matt Brown 2018-05-07 15:47:04 -04:00
parent c0729a02cd
commit c6ed1b0458

View File

@ -151,7 +151,12 @@ class Algebra
}
}
} else {
$clauses[] = new Clause([$var => [$type]], false, true, $type[0] === '^' || $type[0] === '^');
$clauses[] = new Clause(
[$var => [$type]],
false,
true,
$type[0] === '^' || (strlen($type) > 1 && $type[1] === '^')
);
}
}