From 38f0daf4d2fdc5bbf8c515d232c77fce972fcb83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Fri, 14 Jun 2019 20:28:54 +0200 Subject: [PATCH] Fix unescaped dash in character group --- src/Util/Test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/Test.php b/src/Util/Test.php index d3f502d5126..579d1671e08 100644 --- a/src/Util/Test.php +++ b/src/Util/Test.php @@ -73,7 +73,7 @@ final class Test /** * @var string */ - private const REGEX_REQUIRES_VERSION_CONSTRAINT = '/@requires\s+(?PPHP(?:Unit)?)\s+(?P[\d\t -.|~^]+)[ \t]*\r?$/m'; + private const REGEX_REQUIRES_VERSION_CONSTRAINT = '/@requires\s+(?PPHP(?:Unit)?)\s+(?P[\d\t \-.|~^]+)[ \t]*\r?$/m'; /** * @var string