Skip to content

Commit

Permalink
raise min PHP version to 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mikey179 committed Jan 13, 2024
1 parent 8733873 commit d8d41d9
Show file tree
Hide file tree
Showing 10 changed files with 905 additions and 849 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/runTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@ name: Tests
on:
push:
branches:
- master
- main
pull_request:

jobs:
tests:
name: PHP ${{ matrix.php-versions }} on ${{ matrix.os }} w/ ${{ matrix.dependencies }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.php-versions == '8.4' }}
strategy:
fail-fast: false
matrix:
php-versions: ['7.3', '7.4']
php-versions: ['8.2', '8.3', '8.4']
os: [ubuntu-latest, windows-latest, macOS-latest]
dependencies: ['install', 'update --prefer-lowest', 'update']
dependencies: ['install', 'update']

steps:
- name: Configure git
Expand Down Expand Up @@ -43,13 +44,15 @@ jobs:
run: composer validate

- name: Get Composer Cache Directory
if: runner.os != 'Windows'
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "value=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v1
if: runner.os != 'Windows'
uses: actions/[email protected]
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: ${{ steps.composer-cache.outputs.value }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

Expand All @@ -58,4 +61,3 @@ jobs:

- name: Run test suite
run: composer run-script test -- --coverage-text

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.phpunit.cache
vendor
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### BC breaks

* raised minimum required PHP version to 8.2
* added type hint `object` for first parameter of `stubbles\xml\serializer\ObjectXmlSerializer::serialize()`

### Other changes
Expand Down
23 changes: 11 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
"license": "BSD-3-Clause",
"description": "Classes to work with XML",
"require": {
"php": "^7.3",
"php": "^8.2",
"ext-mbstring": "*",
"ext-libxml": "*",
"stubbles/ioc": "^10.0",
"stubbles/reflect": "^9.1",
"stubbles/date": "^8.0.1"
"stubbles/ioc": "^11.0",
"stubbles/reflect": "^10.0",
"stubbles/date": "^9.0"
},
"require-dev": {
"ext-xsl": "*",
"ext-dom": "*",
"ext-xmlwriter": "*",
"mikey179/vfsstream": "^1.6.8",
"phpunit/phpunit": "^9.0",
"bovigo/callmap": "^6.0",
"bovigo/assert": "^6.0",
"stubbles/sequence": "^9.0"
"mikey179/vfsstream": "^1.6.11",
"phpunit/phpunit": "^10.5",
"bovigo/callmap": "^8.0",
"bovigo/assert": "^8.0",
"stubbles/sequence": "^10.1"
},
"autoload": {
"psr-4": {
Expand All @@ -35,13 +35,12 @@
},
"extra": {
"branch-alias": {
"dev-master": "8.0.x-dev"
"dev-master": "9.0.x-dev"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"test": "phpunit",
"php-coveralls": "php-coveralls"
"test": "phpunit"
}
}
Loading

0 comments on commit d8d41d9

Please sign in to comment.