Lines Matching refs:null

37     public static function initialize(int $flags, int $parsedLineNumber = null, string $parsedFilename = null)
45 if (null !== $parsedLineNumber) {
53 * @param string|null $value A YAML string
61 public static function parse(string $value = null, int $flags = 0, array &$references = [])
89 $result = self::parseScalar($value, $flags, null, $i, true, $references);
97 if (null !== $tag && '' !== $tag) {
156 case null === $value:
258 return 'null';
268 public static function parseScalar(string $scalar, int $flags = 0, array $delimiters = null, int &$i = 0, bool $evaluate = true, array &$references = [], bool &$isQuoted = null)
275 if (null !== $delimiters) {
301 throw new ParseException(sprintf('Malformed inline YAML string: "%s".', $scalar), self::$parsedLineNumber + 1, null, self::$parsedFilename);
375 $value = self::parseScalar($sequence, $flags, [',', ']'], $i, null === $tag, $references, $isQuoted);
396 if (null !== $tag && '' !== $tag) {
405 throw new ParseException(sprintf('Malformed inline YAML string: "%s".', $sequence), self::$parsedLineNumber + 1, null, self::$parsedFilename);
493 if (null !== $tag) {
512 if (null !== $tag) {
522 $value = self::parseScalar($mapping, $flags, [',', '}', "\n"], $i, null === $tag, $references, $isValueQuoted);
535 if (null !== $tag) {
551 throw new ParseException(sprintf('Malformed inline YAML string: "%s".', $mapping), self::$parsedLineNumber + 1, null, self::$parsedFilename);
561 private static function evaluateScalar(string $scalar, int $flags, array &$references = [], bool &$isQuotedString = null)
588 case 'null' === $scalarLower:
591 return null;
624 return null;
634 if (\defined($const = self::parseScalar(substr($scalar, 11), 0, null, $i, false))) {
644 return null;
724 return null;
740 return null;