Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e4a2045

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

11 files changed

+9
-14
lines changed

‎.travis.yml‎

Lines changed: 0 additions & 1 deletion
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:

‎composer.json‎

Lines changed: 1 addition & 1 deletion
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": {

‎phpcs.xml‎

Lines changed: 0 additions & 4 deletions
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>

‎tests/Rules/BooleansInConditions/BooleanInBooleanAndRuleTest.php‎

Lines changed: 1 addition & 1 deletion
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
[

‎tests/Rules/BooleansInConditions/BooleanInBooleanNotRuleTest.php‎

Lines changed: 1 addition & 1 deletion
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
[

‎tests/Rules/BooleansInConditions/BooleanInBooleanOrRuleTest.php‎

Lines changed: 1 addition & 1 deletion
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
[

‎tests/Rules/BooleansInConditions/BooleanInElseIfConditionRuleTest.php‎

Lines changed: 1 addition & 1 deletion
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
[

‎tests/Rules/BooleansInConditions/BooleanInIfConditionRuleTest.php‎

Lines changed: 1 addition & 1 deletion
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
[

‎tests/Rules/BooleansInConditions/BooleanInTernaryOperatorRuleTest.php‎

Lines changed: 1 addition & 1 deletion
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
[

‎tests/Rules/StrictCalls/StrictFunctionCallsRuleTest.php‎

Lines changed: 1 addition & 1 deletion
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
[

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /