Skip to content

Commit 36de90d

Browse files
authored
[TASK] Add some more native return types (#778)
… as suggested by Rector 2.x.
1 parent 428a2eb commit 36de90d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CSSList/Document.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static function parse(ParserState $oParserState): Document
4242
*
4343
* @return array<int, DeclarationBlock>
4444
*/
45-
public function getAllDeclarationBlocks()
45+
public function getAllDeclarationBlocks(): array
4646
{
4747
/** @var array<int, DeclarationBlock> $aResult */
4848
$aResult = [];
@@ -55,7 +55,7 @@ public function getAllDeclarationBlocks()
5555
*
5656
* @return array<int, RuleSet>
5757
*/
58-
public function getAllRuleSets()
58+
public function getAllRuleSets(): array
5959
{
6060
/** @var array<int, RuleSet> $aResult */
6161
$aResult = [];
@@ -75,7 +75,7 @@ public function getAllRuleSets()
7575
*
7676
* @see RuleSet->getRules()
7777
*/
78-
public function getAllValues($mElement = null, $bSearchInFunctionArguments = false)
78+
public function getAllValues($mElement = null, $bSearchInFunctionArguments = false): array
7979
{
8080
$sSearchString = null;
8181
if ($mElement === null) {
@@ -103,7 +103,7 @@ public function getAllValues($mElement = null, $bSearchInFunctionArguments = fal
103103
* @return array<int, Selector>
104104
* @example `getSelectorsBySpecificity('>= 100')`
105105
*/
106-
public function getSelectorsBySpecificity($sSpecificitySearch = null)
106+
public function getSelectorsBySpecificity($sSpecificitySearch = null): array
107107
{
108108
/** @var array<int, Selector> $aResult */
109109
$aResult = [];

0 commit comments

Comments
 (0)