Skip to content

Commit f609e5b

Browse files
Add return types to internal|final|private methods
1 parent 5966efd commit f609e5b

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Command/LintCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,7 @@ private function getFiles(string $fileOrDirectory)
199199
}
200200
}
201201

202-
/**
203-
* @return string|null
204-
*/
205-
private function getStdin()
202+
private function getStdin(): ?string
206203
{
207204
if (0 !== ftell(STDIN)) {
208205
return null;

Inline.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ class Inline
3434
private static $objectForMap = false;
3535
private static $constantSupport = false;
3636

37-
/**
38-
* @param int $flags
39-
* @param int|null $parsedLineNumber
40-
* @param string|null $parsedFilename
41-
*/
42-
public static function initialize($flags, $parsedLineNumber = null, $parsedFilename = null)
37+
public static function initialize(int $flags, int $parsedLineNumber = null, string $parsedFilename = null)
4338
{
4439
self::$exceptionOnInvalidType = (bool) (Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE & $flags);
4540
self::$objectSupport = (bool) (Yaml::PARSE_OBJECT & $flags);

0 commit comments

Comments
 (0)