@@ -1987,7 +1987,7 @@ use PhpParser\Node\Stmt\ClassConst;
19871987$defaultValue = new String_('default value');
19881988$const = new Const_('SOME_CLASS_CONSTANT', $defaultValue);
19891989
1990- return new ClassConst([$const], Class_::MODIFIER_PUBLIC );
1990+ return new ClassConst([$const], Modifier::PUBLIC );
19911991```
19921992
19931993↓
@@ -2020,7 +2020,7 @@ use PhpParser\Node\Stmt\Class_;
20202020use PhpParser\Node\Stmt\ClassMethod;
20212021
20222022$classMethod = new ClassMethod('methodName');
2023- $classMethod->flags = Class_::MODIFIER_PUBLIC ;
2023+ $classMethod->flags = Modifier::PUBLIC ;
20242024
20252025return $classMethod;
20262026```
@@ -2079,7 +2079,7 @@ use PhpParser\Node\Stmt\ClassMethod;
20792079use PhpParser\Node\Stmt\Expression;
20802080
20812081$classMethod = new ClassMethod('methodName');
2082- $classMethod->flags = Class_::MODIFIER_PUBLIC ;
2082+ $classMethod->flags = Modifier::PUBLIC ;
20832083
20842084$variable = new Variable('some');
20852085$number = new LNumber(10000);
@@ -2607,7 +2607,7 @@ use PhpParser\Node\VarLikeIdentifier;
26072607
26082608$propertyProperty = new PropertyProperty(new VarLikeIdentifier('propertyName'));
26092609
2610- return new Property(Class_::MODIFIER_PUBLIC , [$propertyProperty]);
2610+ return new Property(Modifier::PUBLIC , [$propertyProperty]);
26112611```
26122612
26132613↓
@@ -2629,7 +2629,7 @@ use PhpParser\Node\Stmt\PropertyProperty;
26292629
26302630$propertyProperties = [new PropertyProperty('firstProperty'), new PropertyProperty('secondProperty')];
26312631
2632- return new Property(Class_::MODIFIER_STATIC | Class_::MODIFIER_PUBLIC , $propertyProperties);
2632+ return new Property(Modifiers::STATIC | Modifier::PUBLIC , $propertyProperties);
26332633```
26342634
26352635↓
@@ -2764,7 +2764,7 @@ use PhpParser\Node\Stmt\TraitUseAdaptation\Alias;
27642764
27652765$traitFullyQualified = new FullyQualified('TraitName');
27662766
2767- return new Alias($traitFullyQualified, 'method', Class_::MODIFIER_PUBLIC , 'aliasedMethod');
2767+ return new Alias($traitFullyQualified, 'method', Modifier::PUBLIC , 'aliasedMethod');
27682768```
27692769
27702770↓
0 commit comments