@@ -59,7 +59,7 @@ protected function expects($expected)
59
59
60
60
protected function consumeShortHash ()
61
61
{
62
- if (!preg_match ('/([A-Za-z0-9]{7,40})/A ' , $ this ->content , $ vars , null , $ this ->cursor )) {
62
+ if (!preg_match ('/([A-Za-z0-9]{7,40})/A ' , $ this ->content , $ vars , 0 , $ this ->cursor )) {
63
63
throw new RuntimeException ('No short hash found: ' .substr ($ this ->content , $ this ->cursor , 7 ));
64
64
}
65
65
@@ -70,7 +70,7 @@ protected function consumeShortHash()
70
70
71
71
protected function consumeHash ()
72
72
{
73
- if (!preg_match ('/([A-Za-z0-9]{40})/A ' , $ this ->content , $ vars , null , $ this ->cursor )) {
73
+ if (!preg_match ('/([A-Za-z0-9]{40})/A ' , $ this ->content , $ vars , 0 , $ this ->cursor )) {
74
74
throw new RuntimeException ('No hash found: ' .substr ($ this ->content , $ this ->cursor , 40 ));
75
75
}
76
76
@@ -81,7 +81,7 @@ protected function consumeHash()
81
81
82
82
protected function consumeRegexp ($ regexp )
83
83
{
84
- if (!preg_match ($ regexp .'A ' , $ this ->content , $ vars , null , $ this ->cursor )) {
84
+ if (!preg_match ($ regexp .'A ' , $ this ->content , $ vars , 0 , $ this ->cursor )) {
85
85
throw new RuntimeException ('No match for regexp ' .$ regexp .' Upcoming: ' .substr ($ this ->content , $ this ->cursor , 30 ));
86
86
}
87
87
0 commit comments