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

Commit

Permalink
Merge pull request #89 from TimWolla/ci
Browse files Browse the repository at this point in the history
Run CI for PHP 8.0/8.1
  • Loading branch information
fgrosse authored Dec 11, 2021
2 parents 6edcecb + 623b29e commit 2bb74f1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ jobs:
strategy:
matrix:
php:
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
steps:
- uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"keywords": [ "x690", "x.690", "x.509", "x509", "asn1", "asn.1", "ber", "der", "binary", "encoding", "decoding" ],

"require": {
"php": ">=7.0.0"
"php": "~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0"
},
"require-dev": {
"phpunit/phpunit": "^6.3 | ^7.0",
"phpunit/phpunit": "^6.3 || ^7.0 || ^8.0",
"php-coveralls/php-coveralls": "~2.0"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion tests/ASN1/Universal/GeneralizedTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class GeneralizedTimeTest extends ASN1TestCase
{
private $UTC;

public function setUp()
public function setUp(): void
{
$this->UTC = new DateTimeZone('UTC');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ASN1/Universal/UTCTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class UTCTimeTest extends ASN1TestCase
{
private $UTC;

public function setUp()
public function setUp(): void
{
$this->UTC = new \DateTimeZone('UTC');
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Utility/BigIntegerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ abstract protected function _isSupported();
*/
abstract protected function _getMode();

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

protected function tearDown()
protected function tearDown(): void
{
BigInteger::setPrefer(null);
}
Expand Down

0 comments on commit 2bb74f1

Please sign in to comment.