From 888b9dcf30cc6c48bc8a8809299448dcdea56400 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 27 Apr 2017 18:28:10 +0200 Subject: [PATCH] Drop misspellt class constant --- UPGRADE-4.0.md | 2 ++ lib/PhpParser/Node/Stmt/Class_.php | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UPGRADE-4.0.md b/UPGRADE-4.0.md index 5c14e60e..9069954e 100644 --- a/UPGRADE-4.0.md +++ b/UPGRADE-4.0.md @@ -23,5 +23,7 @@ source code, while running on a newer version. * The `ClassConst::isStatic()` method has been removed. Constants cannot have a static modifier. * The `NodeTraverser` no longer accepts `false` as a return value from a `leaveNode()` method. `NodeTraverser::REMOVE_NODE` should be returned instead. +* The misspelled `Class_::VISIBILITY_MODIFER_MASK` constant has been dropped in favor of + `Class_::VISIBILITY_MODIFIER_MASK`. * The XML serializer has been removed. As such, the classes `Serializer\XML`, and `Unserializer\XML`, as well as the interfaces `Serializer` and `Unserializer` no longer exist. \ No newline at end of file diff --git a/lib/PhpParser/Node/Stmt/Class_.php b/lib/PhpParser/Node/Stmt/Class_.php index 8e4e0a11..b930446d 100644 --- a/lib/PhpParser/Node/Stmt/Class_.php +++ b/lib/PhpParser/Node/Stmt/Class_.php @@ -15,8 +15,6 @@ class Class_ extends ClassLike const MODIFIER_FINAL = 32; const VISIBILITY_MODIFIER_MASK = 7; // 1 | 2 | 4 - /** @deprecated */ - const VISIBILITY_MODIFER_MASK = self::VISIBILITY_MODIFIER_MASK; /** @var int Type */ public $flags;