Skip to content

Commit e4a2045

Browse files
committed
Drop support for PHP 7.0
1 parent 1476237 commit e4a2045

11 files changed

+9
-14
lines changed

Diff for: .travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: php
22
php:
3-
- 7.0
43
- 7.1
54
- 7.2
65
before_script:

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
},
1212
"require": {
13-
"php": "~7.0",
13+
"php": "~7.1",
1414
"phpstan/phpstan": "^0.9"
1515
},
1616
"require-dev": {

Diff for: phpcs.xml

-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<exclude name="Squiz.Functions.GlobalFunction.Found"/>
55
</rule>
66
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml">
7-
<exclude name="SlevomatCodingStandard.Classes.ClassConstantVisibility.MissingConstantVisibility"/>
87
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName"/>
98
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/>
109
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces"/>
@@ -14,7 +13,6 @@
1413
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation.NonFullyQualifiedClassName"/>
1514
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants"/>
1615
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions"/>
17-
<exclude name="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/>
1816
</rule>
1917
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
2018
<properties>
@@ -32,8 +30,6 @@
3230
@dataProvider,
3331
@requires
3432
"/>
35-
<property name="enableNullableTypeHints" type="false" />
36-
<property name="enableVoidTypeHint" type="false" />
3733
</properties>
3834
</rule>
3935
</ruleset>

Diff for: tests/Rules/BooleansInConditions/BooleanInBooleanAndRuleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function getRule(): Rule
1212
return new BooleanInBooleanAndRule();
1313
}
1414

15-
public function testRule()
15+
public function testRule(): void
1616
{
1717
$this->analyse([__DIR__ . '/data/conditions.php'], [
1818
[

Diff for: tests/Rules/BooleansInConditions/BooleanInBooleanNotRuleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function getRule(): Rule
1212
return new BooleanInBooleanNotRule();
1313
}
1414

15-
public function testRule()
15+
public function testRule(): void
1616
{
1717
$this->analyse([__DIR__ . '/data/conditions.php'], [
1818
[

Diff for: tests/Rules/BooleansInConditions/BooleanInBooleanOrRuleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function getRule(): Rule
1212
return new BooleanInBooleanOrRule();
1313
}
1414

15-
public function testRule()
15+
public function testRule(): void
1616
{
1717
$this->analyse([__DIR__ . '/data/conditions.php'], [
1818
[

Diff for: tests/Rules/BooleansInConditions/BooleanInElseIfConditionRuleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function getRule(): Rule
1212
return new BooleanInElseIfConditionRule();
1313
}
1414

15-
public function testRule()
15+
public function testRule(): void
1616
{
1717
$this->analyse([__DIR__ . '/data/conditions.php'], [
1818
[

Diff for: tests/Rules/BooleansInConditions/BooleanInIfConditionRuleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function getRule(): Rule
1212
return new BooleanInIfConditionRule();
1313
}
1414

15-
public function testRule()
15+
public function testRule(): void
1616
{
1717
$this->analyse([__DIR__ . '/data/conditions.php'], [
1818
[

Diff for: tests/Rules/BooleansInConditions/BooleanInTernaryOperatorRuleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function getRule(): Rule
1212
return new BooleanInTernaryOperatorRule();
1313
}
1414

15-
public function testRule()
15+
public function testRule(): void
1616
{
1717
$this->analyse([__DIR__ . '/data/conditions.php'], [
1818
[

Diff for: tests/Rules/StrictCalls/StrictFunctionCallsRuleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function getRule(): Rule
1212
return new StrictFunctionCallsRule($this->createBroker());
1313
}
1414

15-
public function testRule()
15+
public function testRule(): void
1616
{
1717
$this->analyse([__DIR__ . '/data/strict-calls.php'], [
1818
[

Diff for: tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function getRule(): Rule
1212
return new MatchingTypeInSwitchCaseConditionRule(new \PhpParser\PrettyPrinter\Standard());
1313
}
1414

15-
public function testRule()
15+
public function testRule(): void
1616
{
1717
$this->analyse([__DIR__ . '/data/matching-type.php'], [
1818
[

0 commit comments

Comments
 (0)