Skip to content

Commit

Permalink
Merge pull request #2 from otobank/php8
Browse files Browse the repository at this point in the history
enable php8
  • Loading branch information
sasezaki-k authored Apr 10, 2023
2 parents ca77f9e + 0c7d7fb commit 7b8117c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .laminas-ci/pre-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

WORKING_DIRECTORY=$2
JOB=$3
PHP_VERSION=$(echo "${JOB}" | jq -r .php)

if [[ "${PHP_VERSION}" != "7.2" ]] ; then
exit 0
fi

composer require --dev phpunit/phpunit:^8.5.31 --no-update --update-with-dependencies
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
}
],
"require": {
"php": "^7.2"
"php": "^7.2.0 || ~8.0.0 || ~8.1.0 || ~8.2.0"
},
"require-dev": {
"phpunit/phpunit": "^8"
"phpunit/phpunit": "^9.5.10"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 0 additions & 5 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,4 @@
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit 7b8117c

Please sign in to comment.