File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,9 @@ public function getCharset(): void
5151 /**
5252 * Parses the CSS provided to the constructor and creates a `Document` from it.
5353 *
54- * @return Document
55- *
5654 * @throws SourceException
5755 */
58- public function parse ()
56+ public function parse (): Document
5957 {
6058 return Document::parse ($ this ->oParserState );
6159 }
Original file line number Diff line number Diff line change @@ -308,12 +308,10 @@ public function consume($mValue = 1): string
308308 * @param string $mExpression
309309 * @param int|null $iMaxLength
310310 *
311- * @return string
312- *
313311 * @throws UnexpectedEOFException
314312 * @throws UnexpectedTokenException
315313 */
316- public function consumeExpression ($ mExpression , $ iMaxLength = null )
314+ public function consumeExpression ($ mExpression , $ iMaxLength = null ): string
317315 {
318316 $ aMatches = null ;
319317 $ sInput = $ iMaxLength !== null ? $ this ->peek ($ iMaxLength ) : $ this ->inputLeft ();
Original file line number Diff line number Diff line change @@ -1004,10 +1004,8 @@ public function missingPropertyValueLenient(): void
10041004 *
10051005 * @param string $sFileName
10061006 * @param Settings|null $oSettings
1007- *
1008- * @return Document parsed document
10091007 */
1010- public static function parsedStructureForFile ($ sFileName , $ oSettings = null )
1008+ public static function parsedStructureForFile ($ sFileName , $ oSettings = null ): Document
10111009 {
10121010 $ sFile = __DIR__ . "/fixtures/ $ sFileName.css " ;
10131011 $ oParser = new Parser (file_get_contents ($ sFile ), $ oSettings );
You can’t perform that action at this time.
0 commit comments