Home
last modified time | relevance | path

Searched refs:normalizeValue (Results 1 – 8 of 8) sorted by relevance

/PHP-Parser/test/PhpParser/
H A DBuilderHelpersTest.php180 $this->assertSame($expression, BuilderHelpers::normalizeValue($expression));
182 …is->assertEquals(new Expr\ConstFetch(new Node\Name('null')), BuilderHelpers::normalizeValue(null));
183 …is->assertEquals(new Expr\ConstFetch(new Node\Name('true')), BuilderHelpers::normalizeValue(true));
184 …->assertEquals(new Expr\ConstFetch(new Node\Name('false')), BuilderHelpers::normalizeValue(false));
185 $this->assertEquals(new Scalar\Int_(2), BuilderHelpers::normalizeValue(2));
186 $this->assertEquals(new Scalar\Float_(2.5), BuilderHelpers::normalizeValue(2.5));
187 $this->assertEquals(new Scalar\String_('text'), BuilderHelpers::normalizeValue('text'));
193 BuilderHelpers::normalizeValue([
201 BuilderHelpers::normalizeValue(new \stdClass());
234 …yQualified(\Suit::class), new Identifier('Hearts')), BuilderHelpers::normalizeValue(\Suit::Hearts)…
/PHP-Parser/lib/PhpParser/
H A DBuilderHelpers.php222 public static function normalizeValue($value): Expr { function in PhpParser\\BuilderHelpers
258 self::normalizeValue($itemValue)
263 self::normalizeValue($itemValue),
264 self::normalizeValue($itemKey)
H A DBuilderFactory.php216 return BuilderHelpers::normalizeValue($value);
245 $arg = new Arg(BuilderHelpers::normalizeValue($arg));
/PHP-Parser/lib/PhpParser/Builder/
H A DClassConst.php34 $this->constants = [new Const_($name, BuilderHelpers::normalizeValue($value))];
46 $this->constants[] = new Const_($name, BuilderHelpers::normalizeValue($value));
H A DEnumCase.php40 $this->value = BuilderHelpers::normalizeValue($value);
H A DParam.php38 $this->default = BuilderHelpers::normalizeValue($value);
H A DProperty.php145 $this->default = BuilderHelpers::normalizeValue($value);
/PHP-Parser/
H A Dphpstan-baseline.neon54 …message: "#^Method PhpParser\\\\BuilderHelpers\\:\\:normalizeValue\\(\\) has parameter \\$value wi…

Completed in 15 milliseconds