Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Commit 2bb74f1

Browse files
authored
Merge pull request #89 from TimWolla/ci
Run CI for PHP 8.0/8.1
2 parents 6edcecb + 623b29e commit 2bb74f1

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.github/workflows/phpunit.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ jobs:
1313
strategy:
1414
matrix:
1515
php:
16-
- '7.0'
1716
- '7.1'
1817
- '7.2'
1918
- '7.3'
2019
- '7.4'
20+
- '8.0'
21+
- '8.1'
2122
steps:
2223
- uses: shivammathur/setup-php@v2
2324
with:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"keywords": [ "x690", "x.690", "x.509", "x509", "asn1", "asn.1", "ber", "der", "binary", "encoding", "decoding" ],
2020

2121
"require": {
22-
"php": ">=7.0.0"
22+
"php": "~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^6.3 | ^7.0",
25+
"phpunit/phpunit": "^6.3 || ^7.0 || ^8.0",
2626
"php-coveralls/php-coveralls": "~2.0"
2727
},
2828
"suggest": {

tests/ASN1/Universal/GeneralizedTimeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class GeneralizedTimeTest extends ASN1TestCase
2020
{
2121
private $UTC;
2222

23-
public function setUp()
23+
public function setUp(): void
2424
{
2525
$this->UTC = new DateTimeZone('UTC');
2626
}

tests/ASN1/Universal/UTCTimeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class UTCTimeTest extends ASN1TestCase
1818
{
1919
private $UTC;
2020

21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
$this->UTC = new \DateTimeZone('UTC');
2424
}

tests/Utility/BigIntegerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ abstract protected function _isSupported();
2525
*/
2626
abstract protected function _getMode();
2727

28-
protected function setUp()
28+
protected function setUp(): void
2929
{
3030
if (!$this->_isSupported()) {
3131
$this->markTestSkipped(sprintf('Mode %s is not supported.', $this->_getMode()));
@@ -285,7 +285,7 @@ public function testAbsoluteValue()
285285
$this->assertSame('18446744073709551616', (string)$a->absoluteValue());
286286
}
287287

288-
protected function tearDown()
288+
protected function tearDown(): void
289289
{
290290
BigInteger::setPrefer(null);
291291
}

0 commit comments

Comments
 (0)