Skip to content

Commit

Permalink
[TASK] Add some more native return types
Browse files Browse the repository at this point in the history
… as suggested by Rector 2.x.
  • Loading branch information
oliverklee committed Dec 12, 2024
1 parent 428a2eb commit 92d25cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CSSList/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static function parse(ParserState $oParserState): Document
*
* @return array<int, DeclarationBlock>
*/
public function getAllDeclarationBlocks()
public function getAllDeclarationBlocks(): array
{
/** @var array<int, DeclarationBlock> $aResult */
$aResult = [];
Expand All @@ -55,7 +55,7 @@ public function getAllDeclarationBlocks()
*
* @return array<int, RuleSet>
*/
public function getAllRuleSets()
public function getAllRuleSets(): array
{
/** @var array<int, RuleSet> $aResult */
$aResult = [];
Expand All @@ -75,7 +75,7 @@ public function getAllRuleSets()
*
* @see RuleSet->getRules()
*/
public function getAllValues($mElement = null, $bSearchInFunctionArguments = false)
public function getAllValues($mElement = null, $bSearchInFunctionArguments = false): array
{
$sSearchString = null;
if ($mElement === null) {
Expand Down Expand Up @@ -103,7 +103,7 @@ public function getAllValues($mElement = null, $bSearchInFunctionArguments = fal
* @return array<int, Selector>
* @example `getSelectorsBySpecificity('>= 100')`
*/
public function getSelectorsBySpecificity($sSpecificitySearch = null)
public function getSelectorsBySpecificity($sSpecificitySearch = null): array
{
/** @var array<int, Selector> $aResult */
$aResult = [];
Expand Down

0 comments on commit 92d25cf

Please sign in to comment.