Skip to content

Commit 1187ed5

Browse files
committed
Drop PHP 7.0 support
1 parent 81d5cc2 commit 1187ed5

8 files changed

+6
-11
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.1",
1515
"phpunit/phpunit": "^6.3"
1616
},

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
<exclude-pattern>tests/*/data</exclude-pattern>

src/Type/PHPUnit/MockBuilderDynamicReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MockBuilderDynamicReturnTypeExtension implements \PHPStan\Type\DynamicMeth
1919
*/
2020
private $broker;
2121

22-
public function setBroker(Broker $broker)
22+
public function setBroker(Broker $broker): void
2323
{
2424
$this->broker = $broker;
2525
}

tests/Rules/PHPUnit/AssertSameBooleanExpectedRuleTest.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 AssertSameBooleanExpectedRule();
1313
}
1414

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

tests/Rules/PHPUnit/AssertSameDifferentTypesRuleTest.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 AssertSameDifferentTypesRule();
1313
}
1414

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

tests/Rules/PHPUnit/AssertSameNullExpectedRuleTest.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 AssertSameNullExpectedRule();
1313
}
1414

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

tests/Rules/PHPUnit/AssertSameWithCountRuleTest.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 AssertSameWithCountRule();
1313
}
1414

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

0 commit comments

Comments
 (0)