We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41f2ef4 commit c89242cCopy full SHA for c89242c
classes/tests/critical.php
@@ -144,7 +144,7 @@ public function _oldClassConstructors($line) {
144
}
145
146
// find the start of PHP class declaration
147
- if (preg_match('#^(abstract\s+)?class (\w+)#', $line, $matches)) {
+ if (preg_match('#^\s?(abstract\s+)?class (\w+)#', $line, $matches)) {
148
$lastClassName = $matches[2];
149
150
testcases.php
@@ -154,7 +154,7 @@ function FooBar()
154
155
156
157
-abstract class TheThing {
158
- public function TheThing() {
+ abstract class TheThing {
+ public function TheThing() {
159
+ }
160
-}
0 commit comments