Skip to content

Commit bc7406c

Browse files
authored
Remove composer.lock to test various versions (#1)
* Remove composer.lock to test various versions * Fix a bug to match php version as well * Fix a phpunit version error * Resolve laravel/pint version issue * Fix a typo * FIx a license sentence onto the README
1 parent e291800 commit bc7406c

File tree

5 files changed

+17
-1719
lines changed

5 files changed

+17
-1719
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,19 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
php: [7.4, 8.0, 8.1, 8.2, 8.3]
19+
php: [8.0, 8.1, 8.2, 8.3]
2020

2121
name: PHP ${{ matrix.php }}
2222

2323
steps:
24-
- uses: actions/checkout@v2
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
27+
- name: Setup PHP
28+
uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: ${{ matrix.php }}
31+
coverage: none
2532

2633
- name: Validate composer.json and composer.lock
2734
run: composer validate

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,6 @@ $RECYCLE.BIN/
8787
# Windows shortcuts
8888
*.lnk
8989

90-
# End of https://www.toptal.com/developers/gitignore/api/composer,macos,windows,visualstudiocode
90+
# End of https://www.toptal.com/developers/gitignore/api/composer,macos,windows,visualstudiocode
91+
92+
composer.lock

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Array Flatten
22

3-
[![Test](https://github.com/cable8mm/array-flatten/actions/workflows/tests.yml/badge.svg)](https://github.com/cable8mm/array-flatten/actions/workflows/tests.yml)
3+
[![Tests](https://github.com/cable8mm/array-flatten/actions/workflows/tests.yml/badge.svg)](https://github.com/cable8mm/array-flatten/actions/workflows/tests.yml)
44
[![PHP Linting (Pint)](https://github.com/cable8mm/array-flatten/actions/workflows/coding-style-php.yml/badge.svg)](https://github.com/cable8mm/array-flatten/actions/workflows/coding-style-php.yml)
55
[![Latest Stable Version](http://poser.pugx.org/cable8mm/array-flatten/v)](https://packagist.org/packages/cable8mm/array-flatten)
66
[![Total Downloads](http://poser.pugx.org/cable8mm/array-flatten/downloads)](https://packagist.org/packages/cable8mm/array-flatten)
@@ -27,4 +27,4 @@ array_flatten([1, [2, [3, [4, [5], 6], 7], 8], 9]);
2727

2828
## License
2929

30-
The QR Images is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).
30+
The Array Flatten is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
}
2424
],
2525
"require": {
26-
"php": "^7.4|^8.0"
26+
"php": "^8.0"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^11.0",
30-
"laravel/pint": "^1.14"
29+
"phpunit/phpunit": "^9.0|^10.0|^11.0",
30+
"laravel/pint": "^1.0"
3131
},
3232
"scripts": {
3333
"test": [

0 commit comments

Comments
 (0)