Skip to content

Commit 0b39c7d

Browse files
committed
feat: will only suppurt php 8.0+
1 parent 15278ea commit 0b39c7d

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: true
1212
matrix:
13-
php: [7.1, 7.2, 7.3, 7.4, 8.0] #
13+
php: [8.0] #
1414
# os: [ubuntu-latest, macOS-latest] # windows-latest,
1515

1616
steps:
@@ -23,7 +23,7 @@ jobs:
2323
uses: shivammathur/setup-php@v2
2424
with:
2525
php-version: ${{ matrix.php}}
26-
tools: pecl, php-cs-fixer # , phpunit-7.5
26+
tools: pecl, php-cs-fixer, phpunit # , phpunit-7.5
2727
extensions: mbstring, dom, fileinfo, openssl, igbinary # , swoole-4.4.19 #optional, setup extensions
2828
ini-values: post_max_size=56M, short_open_tag=On #optional, setup php.ini configuration
2929
coverage: none #optional, setup coverage driver: xdebug, none
@@ -34,10 +34,9 @@ jobs:
3434
- name: Install dependencies
3535
run: |
3636
composer install --no-progress --no-suggest
37-
composer require --dev phpunit/phpunit
3837
3938
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
4039
# Docs: https://getcomposer.org/doc/articles/scripts.md
4140

4241
- name: Run test suite
43-
run: ./vendor/bin/phpunit
42+
run: phpunit --debug

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@
1616
{
1717
"name": "inhere",
1818
"email": "[email protected]",
19-
"homepage": "http://www.yzone.net/"
19+
"homepage": "https://github.com/inhere/"
2020
}
2121
],
2222
"require": {
23-
"php": ">7.1.0",
24-
"ext-mbstring": "*",
25-
"symfony/polyfill-php80": "~1.0"
23+
"php": ">=8.0",
24+
"ext-mbstring": "*"
2625
},
2726
"autoload": {
2827
"psr-4": {

0 commit comments

Comments
 (0)