File tree 2 files changed +5
-16
lines changed
Filter options
src/Symfony/Component/Yaml
2 files changed +5
-16
lines changed
Original file line number Diff line number Diff line change @@ -54,10 +54,8 @@ public function getSnippet()
54
54
55
55
/**
56
56
* Sets the snippet of code near the error.
57
- *
58
- * @param string $snippet The code snippet
59
57
*/
60
- public function setSnippet ($ snippet )
58
+ public function setSnippet (string $ snippet )
61
59
{
62
60
$ this ->snippet = $ snippet ;
63
61
@@ -78,10 +76,8 @@ public function getParsedFile()
78
76
79
77
/**
80
78
* Sets the filename where the error occurred.
81
- *
82
- * @param string $parsedFile The filename
83
79
*/
84
- public function setParsedFile ($ parsedFile )
80
+ public function setParsedFile (string $ parsedFile )
85
81
{
86
82
$ this ->parsedFile = $ parsedFile ;
87
83
@@ -100,10 +96,8 @@ public function getParsedLine()
100
96
101
97
/**
102
98
* Sets the line where the error occurred.
103
- *
104
- * @param int $parsedLine The file line
105
99
*/
106
- public function setParsedLine ($ parsedLine )
100
+ public function setParsedLine (int $ parsedLine )
107
101
{
108
102
$ this ->parsedLine = $ parsedLine ;
109
103
Original file line number Diff line number Diff line change @@ -34,12 +34,7 @@ class Inline
34
34
private static $ objectForMap = false ;
35
35
private static $ constantSupport = false ;
36
36
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 )
43
38
{
44
39
self ::$ exceptionOnInvalidType = (bool ) (Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE & $ flags );
45
40
self ::$ objectSupport = (bool ) (Yaml::PARSE_OBJECT & $ flags );
@@ -704,7 +699,7 @@ public static function evaluateBinaryScalar(string $scalar): string
704
699
return base64_decode ($ parsedBinaryData , true );
705
700
}
706
701
707
- private static function isBinaryString (string $ value )
702
+ private static function isBinaryString (string $ value ): bool
708
703
{
709
704
return !preg_match ('//u ' , $ value ) || preg_match ('/[^\x00\x07-\x0d\x1B\x20-\xff]/ ' , $ value );
710
705
}
You can’t perform that action at this time.
0 commit comments