From 5e375f68e24cf025ce2d17ab745e865cd7ef9ea9 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Tue, 11 Mar 2025 09:40:17 +0100 Subject: [PATCH] [TASK] Use native type declarations in `Document` Part of #811 --- CHANGELOG.md | 2 +- src/CSSList/Document.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8730e081..7d0d92f4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,7 +32,7 @@ Please also have a look at our - Make all non-private properties `@internal` (#886) - Use more native type declarations and strict mode (#641, #772, #774, #778, #804, #841, #873, #875, #891, #922, #923, #933, #958, - #964, #967, #1000, #1044, #1134, #1139) + #964, #967, #1000, #1044, #1134, #1137, #1139) - Add visibility to all class/interface constants (#469) ### Deprecated diff --git a/src/CSSList/Document.php b/src/CSSList/Document.php index 2051d3c2a..f50c166f1 100644 --- a/src/CSSList/Document.php +++ b/src/CSSList/Document.php @@ -42,7 +42,7 @@ public static function parse(ParserState $parserState): Document * * @see RuleSet->getRules() */ - public function getAllValues($element = null, $searchInFunctionArguments = false): array + public function getAllValues($element = null, bool $searchInFunctionArguments = false): array { $searchString = null; if ($element === null) { @@ -70,7 +70,7 @@ public function getAllValues($element = null, $searchInFunctionArguments = false * @return array * @example `getSelectorsBySpecificity('>= 100')` */ - public function getSelectorsBySpecificity($specificitySearch = null): array + public function getSelectorsBySpecificity(?string $specificitySearch = null): array { /** @var array $result */ $result = [];