Skip to content

Commit

Permalink
Update codebase to PHP 7.4 (#93)
Browse files Browse the repository at this point in the history
Co-authored-by: KJunker <junker.kurt@googlemail.com>
Thanks to @TavoNiievez for his contribution
  • Loading branch information
TavoNiievez committed Jan 12, 2022
1 parent b7ef6c8 commit 6b2d9a9
Show file tree
Hide file tree
Showing 31 changed files with 1,015 additions and 542 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.3', '7.4', '8.0']
php-versions: ['7.4', '8.0', '8.1']
phpunit-versions: ['latest']
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Include into your RoboFile

```php
<?php

require_once 'vendor/autoload.php';
require_once 'vendor/codeception/codeception/autoload.php';

Expand All @@ -26,7 +27,6 @@ class RoboFile extends \Robo\Tasks
use Codeception\Task\Merger\ReportMerger;
use Codeception\Task\Splitter\TestsSplitterTrait;
}
?>
```

## Idea
Expand Down
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
},
"require": {
"php": ">=7.3 <9.0",
"php": "^7.4 | ^8.0",
"consolidation/robo": "3.0.*",
"symfony/finder": ">=2.7 <6.0",
"ext-dom": "*",
Expand All @@ -35,6 +35,11 @@
"phpunit/phpunit": ">=9.0",
"codeception/phpunit-wrapper": "^9.0.6"
},
"config": {
"platform": {
"php": "7.4.0"
}
},
"scripts": {
"unit": "vendor/bin/phpunit --bootstrap tests/bootstrap.php tests/ --exclude-group example --stderr -v --debug",
"lint": "vendor/bin/phplint -v ./ --exclude=vendor",
Expand Down
Loading

0 comments on commit 6b2d9a9

Please sign in to comment.