Skip to content

Commit 28dda3d

Browse files
committed
Remove use of PHP language features incompatible with 5.6
1 parent 1ff84ef commit 28dda3d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/CSSList/CSSBlockList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected function allRuleSets(array &$aResult)
7171
*
7272
* @see RuleSet->getRules()
7373
*/
74-
public function getAllValues($element = null, bool $searchInFunctionArguments = false): array
74+
public function getAllValues($element = null, $searchInFunctionArguments = false)
7575
{
7676
$searchString = null;
7777
if ($element === null) {

tests/Unit/CSSList/Fixtures/ConcreteCSSBlockList.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,20 @@
99

1010
final class ConcreteCSSBlockList extends CSSBlockList
1111
{
12-
public function isRootList(): bool
12+
/**
13+
* @return never
14+
*/
15+
public function isRootList()
1316
{
1417
throw new \BadMethodCallException('Not implemented', 1740395831);
1518
}
1619

17-
public function render(OutputFormat $outputFormat): string
20+
/**
21+
* @param OutputFormat|null $outputFormat
22+
*
23+
* @return never
24+
*/
25+
public function render($outputFormat)
1826
{
1927
throw new \BadMethodCallException('Not implemented', 1740395836);
2028
}

0 commit comments

Comments
 (0)