File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,10 @@ protected function getCatchablePatterns()
26
26
{
27
27
return array (
28
28
"\\.[a-zA-Z0-9_]+ " , // expander name
29
- "[a-zA-Z0-9_ \\.]* " , // value
29
+ "[a-zA-Z0-9_ \\.]* " , // none
30
+ "\\-?[0-9.]+ " , // numbers
30
31
"(true|false) " , // boolean
31
- "null " , //
32
+ "null " , // null
32
33
"'(?:[^']|'')*' " , // string between ' character
33
34
"\"(?:[^ \"]| \"\")* \"" , // string between " character,
34
35
"@[a-zA-Z0-9 \\*]+@ " , // type pattern
Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ public static function validNumberValuesProvider()
47
47
array (0 , 0 ),
48
48
array ("125 " , 125 ),
49
49
array ("12.15 " , 12.15 ),
50
+ array (-10 , -10 ),
51
+ array (-1.124 , -1.124 ),
52
+ array ("-10 " , -10 ),
53
+ array ("-1.24 " , -1.24 )
50
54
);
51
55
}
52
56
You can’t perform that action at this time.
0 commit comments