Skip to content

Commit 0293364

Browse files
Add return type unions to private/internal/final/test methods
1 parent ed93804 commit 0293364

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Inline.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,9 @@ private static function parseSequence(string $sequence, int $flags, int &$i = 0,
375375
/**
376376
* Parses a YAML mapping.
377377
*
378-
* @return array|\stdClass
379-
*
380378
* @throws ParseException When malformed inline YAML string is parsed
381379
*/
382-
private static function parseMapping(string $mapping, int $flags, int &$i = 0, array &$references = [])
380+
private static function parseMapping(string $mapping, int $flags, int &$i = 0, array &$references = []): array|\stdClass
383381
{
384382
$output = [];
385383
$len = \strlen($mapping);

0 commit comments

Comments
 (0)