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

Commit df3128a

Browse files
authored
Allow PHP 8 (#10)
1 parent 1613c59 commit df3128a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^5.5 || ^7.0",
13+
"php": "^5.5 || ^7.0 || ^8.0",
1414
"phpunit/phpunit": "^4.0 || ^5.3 || ^6.0 || ^7.0 || ^8.0"
1515
},
1616
"require-dev": {
17-
"friendsofphp/php-cs-fixer": "^2.12"
17+
"friendsofphp/php-cs-fixer": "^2.16"
1818
},
1919
"conflict": {
2020
"hhvm": "*"

src/PolyfillTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trait PolyfillTrait
1818
{
1919
public function expectException($exception)
2020
{
21-
if (is_callable(['parent', 'expectException'])) {
21+
if (\is_callable(['parent', 'expectException'])) {
2222
parent::expectException($exception);
2323
} else {
2424
$this->setExpectedException($exception);

src/PolyfillTrait7.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ trait PolyfillTrait7
2020
{
2121
public function expectException(string $exception): void
2222
{
23-
if (is_callable(['parent', 'expectException'])) {
23+
if (\is_callable(['parent', 'expectException'])) {
2424
parent::expectException($exception);
2525
} else {
2626
$this->setExpectedException($exception);

0 commit comments

Comments
 (0)