summaryrefslogtreecommitdiff
path: root/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php')
-rw-r--r--vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php b/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php
index 5ee5a64bb..d485d78de 100644
--- a/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php
+++ b/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php
@@ -875,6 +875,15 @@ abstract class ParserAbstract implements Parser
return $attributes;
}
+ protected function checkClassModifier($a, $b, $modifierPos) {
+ try {
+ Class_::verifyClassModifier($a, $b);
+ } catch (Error $error) {
+ $error->setAttributes($this->getAttributesAt($modifierPos));
+ $this->emitError($error);
+ }
+ }
+
protected function checkModifier($a, $b, $modifierPos) {
// Jumping through some hoops here because verifyModifier() is also used elsewhere
try {