Skip to content

Commit db8cad1

Browse files
authored
[TASK] Use native type declarations in Document (#1137)
Part of #811
1 parent 632379d commit db8cad1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Please also have a look at our
3232
- Make all non-private properties `@internal` (#886)
3333
- Use more native type declarations and strict mode
3434
(#641, #772, #774, #778, #804, #841, #873, #875, #891, #922, #923, #933, #958,
35-
#964, #967, #1000, #1044, #1134, #1139)
35+
#964, #967, #1000, #1044, #1134, #1137, #1139)
3636
- Add visibility to all class/interface constants (#469)
3737

3838
### Deprecated

src/CSSList/Document.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static function parse(ParserState $parserState): Document
4242
*
4343
* @see RuleSet->getRules()
4444
*/
45-
public function getAllValues($element = null, $searchInFunctionArguments = false): array
45+
public function getAllValues($element = null, bool $searchInFunctionArguments = false): array
4646
{
4747
$searchString = null;
4848
if ($element === null) {
@@ -70,7 +70,7 @@ public function getAllValues($element = null, $searchInFunctionArguments = false
7070
* @return array<int, Selector>
7171
* @example `getSelectorsBySpecificity('>= 100')`
7272
*/
73-
public function getSelectorsBySpecificity($specificitySearch = null): array
73+
public function getSelectorsBySpecificity(?string $specificitySearch = null): array
7474
{
7575
/** @var array<int, Selector> $result */
7676
$result = [];

0 commit comments

Comments
 (0)