Skip to content

Commit

Permalink
phpunit is not ready yet for php8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amouhzi committed Feb 7, 2021
1 parent d652bb0 commit e7b3e13
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
php: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
steps:
- name: Checkout Repo
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"php": ">=5.5"
},
"require-dev": {
"phpunit/phpunit": "*"
"phpunit/phpunit": "^4.8 | ^5.2 | ^6.5 | ^7.5 | ^8.5 | ^9.5"
},
"autoload": {
"psr-4": {
Expand Down
16 changes: 0 additions & 16 deletions polyfill.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,3 @@ function ctype_digit($input)
return \is_string($input) && '' !== $input && !preg_match('/\D/', $input);
}
}

if (!function_exists('each')) {
function each(array &$array) {
$key = key($array);

if (!$key) {
return false;
}

$value = current($array);

next($array);

return [$key, $value];
}
}

0 comments on commit e7b3e13

Please sign in to comment.