Home
last modified time | relevance | path

Searched refs:modifier (Results 1 – 10 of 10) sorted by relevance

/PHP-Parser/test/PhpParser/Node/Stmt/
H A DClassMethodTest.php14 public function testModifiers($modifier): void { argument
16 'type' => constant(Modifiers::class . '::' . strtoupper($modifier))
19 $this->assertTrue($node->{'is' . $modifier}());
50 * @param string $modifier Node type modifier
52 public function testImplicitPublic(string $modifier): void { argument
54 'type' => constant(Modifiers::class . '::' . strtoupper($modifier))
H A DClassConstTest.php11 public function testModifiers($modifier): void { argument
14 constant(Modifiers::class . '::' . strtoupper($modifier))
17 $this->assertTrue($node->{'is' . $modifier}());
H A DPropertyTest.php11 public function testModifiers($modifier): void { argument
13 constant(Modifiers::class . '::' . strtoupper($modifier)),
17 $this->assertTrue($node->{'is' . $modifier}());
/PHP-Parser/lib/PhpParser/Builder/
H A DTraitUseAdaptation.php19 protected ?int $modifier = null; variable in PhpParser\\Builder\\TraitUseAdaptation
114 protected function setModifier(int $modifier): void { argument
123 if (is_null($this->modifier)) {
124 $this->modifier = $modifier;
138 …turn new Stmt\TraitUseAdaptation\Alias($this->trait, $this->method, $this->modifier, $this->alias);
/PHP-Parser/test/PhpParser/Node/
H A DParamTest.php22 public function testModifiers(string $modifier): void { argument
24 $node->flags = constant(Modifiers::class . '::' . strtoupper($modifier));
26 $this->assertTrue($node->{'is' . $modifier}());
/PHP-Parser/test/code/parser/stmt/class/
H A DconstModifierErrors.test8 Cannot use 'static' as constant modifier from 3:5 to 3:10
46 Cannot use 'abstract' as constant modifier from 3:5 to 3:12
84 Cannot use 'readonly' as constant modifier from 3:5 to 3:12
H A Dmodifier.test1 Invalid modifier combination
202 Cannot use the final modifier on an abstract class member from 1:26 to 1:30
234 Cannot use the final modifier on an abstract class from 1:16 to 1:20
/PHP-Parser/lib/PhpParser/
H A DBuilderHelpers.php316 * @param int $modifier Modifier to set
320 public static function addModifier(int $modifiers, int $modifier): int { argument
321 Modifiers::verifyModifier($modifiers, $modifier);
322 return $modifiers | $modifier;
/PHP-Parser/
H A DUPGRADE-4.0.md66 * The `ClassConst::isStatic()` method has been removed. Constants cannot have a static modifier.
H A DCHANGELOG.md762 * The `ClassConst::isStatic()` method has been removed. Constants cannot have a static modifier.
1000 holding the visibility modifier, as well as `isPublic()`, `isProtected()` and `isPrivate()`

Completed in 26 milliseconds