Skip to content

Commit 9c50aaf

Browse files
wouterjnicolas-grekas
authored andcommitted
Add remaining missing return types to safe methods
1 parent 2e5a87f commit 9c50aaf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function parse(string $value, int $flags = 0): mixed
9999
return $data;
100100
}
101101

102-
private function doParse(string $value, int $flags)
102+
private function doParse(string $value, int $flags): mixed
103103
{
104104
$this->currentLineNb = -1;
105105
$this->currentLine = '';
@@ -503,7 +503,7 @@ private function doParse(string $value, int $flags)
503503
return empty($data) ? null : $data;
504504
}
505505

506-
private function parseBlock(int $offset, string $yaml, int $flags)
506+
private function parseBlock(int $offset, string $yaml, int $flags): mixed
507507
{
508508
$skippedLineNumbers = $this->skippedLineNumbers;
509509

Tag/TaggedValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getTag(): string
3131
return $this->tag;
3232
}
3333

34-
public function getValue()
34+
public function getValue(): mixed
3535
{
3636
return $this->value;
3737
}

0 commit comments

Comments
 (0)