Searched refs:normalizeValue (Results 1 – 8 of 8) sorted by relevance
/PHP-Parser/test/PhpParser/ |
H A D | BuilderHelpersTest.php | 180 $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 D | BuilderHelpers.php | 222 public static function normalizeValue($value): Expr { function in PhpParser\\BuilderHelpers 258 self::normalizeValue($itemValue) 263 self::normalizeValue($itemValue), 264 self::normalizeValue($itemKey)
|
H A D | BuilderFactory.php | 216 return BuilderHelpers::normalizeValue($value); 245 $arg = new Arg(BuilderHelpers::normalizeValue($arg));
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | ClassConst.php | 34 $this->constants = [new Const_($name, BuilderHelpers::normalizeValue($value))]; 46 $this->constants[] = new Const_($name, BuilderHelpers::normalizeValue($value));
|
H A D | EnumCase.php | 40 $this->value = BuilderHelpers::normalizeValue($value);
|
H A D | Param.php | 38 $this->default = BuilderHelpers::normalizeValue($value);
|
H A D | Property.php | 145 $this->default = BuilderHelpers::normalizeValue($value);
|
/PHP-Parser/ |
H A D | phpstan-baseline.neon | 54 …message: "#^Method PhpParser\\\\BuilderHelpers\\:\\:normalizeValue\\(\\) has parameter \\$value wi…
|
Completed in 15 milliseconds