Skip to content

Commit 2fd3d35

Browse files
committed
Remove PHP language features incompatible with 5.6
1 parent 4a5e284 commit 2fd3d35

File tree

7 files changed

+22
-8
lines changed

7 files changed

+22
-8
lines changed

tests/Unit/CSSList/CSSListTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ final class CSSListTest extends TestCase
1515
{
1616
/**
1717
* @test
18+
*
19+
* @return void
1820
*/
19-
public function implementsCSSElement(): void
21+
public function implementsCSSElement()
2022
{
2123
$subject = new ConcreteCSSList();
2224

tests/Unit/CSSList/Fixtures/ConcreteCSSList.php

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

1010
final class ConcreteCSSList extends CSSList
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+
* @return never
22+
*/
23+
public function render(OutputFormat $outputFormat)
1824
{
1925
throw new \BadMethodCallException('Not implemented', 1740395836);
2026
}

tests/Unit/Rule/RuleTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ final class RuleTest extends TestCase
1818
{
1919
/**
2020
* @test
21+
*
22+
* @return void
2123
*/
22-
public function implementsCSSElement(): void
24+
public function implementsCSSElement()
2325
{
2426
$subject = new Rule('beverage-container');
2527

tests/Unit/RuleSet/Fixtures/ConcreteRuleSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ final class ConcreteRuleSet extends RuleSet
1212
/**
1313
* @return never
1414
*/
15-
public function render(OutputFormat $outputFormat): string
15+
public function render(OutputFormat $outputFormat)
1616
{
1717
throw new \BadMethodCallException('Nothing to see here :/', 1744067015);
1818
}

tests/Unit/RuleSet/RuleSetTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ final class RuleSetTest extends TestCase
1515
{
1616
/**
1717
* @test
18+
*
19+
* @return void
1820
*/
19-
public function implementsCSSElement(): void
21+
public function implementsCSSElement()
2022
{
2123
$subject = new ConcreteRuleSet();
2224

tests/Unit/Value/Fixtures/ConcreteValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ final class ConcreteValue extends Value
1212
/**
1313
* @return never
1414
*/
15-
public function render(OutputFormat $outputFormat): string
15+
public function render(OutputFormat $outputFormat)
1616
{
1717
throw new \BadMethodCallException('Nothing to see here :/', 1744067951);
1818
}

tests/Unit/Value/ValueTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ final class ValueTest extends TestCase
1616
{
1717
/**
1818
* @test
19+
*
20+
* @return void
1921
*/
20-
public function implementsCSSElement(): void
22+
public function implementsCSSElement()
2123
{
2224
$subject = new ConcreteValue();
2325

0 commit comments

Comments
 (0)