Skip to content

Commit d9fdb65

Browse files
committed
[TASK] Add some more type declarations
These are some random changes the Rector would do as a result of the changes of some open PRs.
1 parent 6607f94 commit d9fdb65

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
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)
35+
#964, #967, #1000, #1044, #1139)
3636
- Add visibility to all class/interface constants (#469)
3737

3838
### Deprecated

src/CSSList/CSSList.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,8 @@ private static function parseAtRule(ParserState $parserState)
245245
/**
246246
* Tests an identifier for a given value. Since identifiers are all keywords, they can be vendor-prefixed.
247247
* We need to check for these versions too.
248-
*
249-
* @param string $identifier
250248
*/
251-
private static function identifierIs($identifier, string $match): bool
249+
private static function identifierIs(string $identifier, string $match): bool
252250
{
253251
return (\strcasecmp($identifier, $match) === 0)
254252
?: \preg_match("/^(-\\w+-)?$match$/i", $identifier) === 1;

src/Value/Value.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,14 @@ public static function parseValue(ParserState $parserState, array $listDelimiter
109109
}
110110

111111
/**
112-
* @param bool $ignoreCase
113-
*
114112
* @return CSSFunction|string
115113
*
116114
* @throws UnexpectedEOFException
117115
* @throws UnexpectedTokenException
118116
*
119117
* @internal since V8.8.0
120118
*/
121-
public static function parseIdentifierOrFunction(ParserState $parserState, $ignoreCase = false)
119+
public static function parseIdentifierOrFunction(ParserState $parserState, bool $ignoreCase = false)
122120
{
123121
$anchor = $parserState->anchor();
124122
$result = $parserState->parseIdentifier($ignoreCase);

0 commit comments

Comments
 (0)