Skip to content

Commit

Permalink
lib internal serializartion: Drop support on PHP < 7.4, update dev deps
Browse files Browse the repository at this point in the history
The library will practically no longer run on outdated
PHP versions. PHP 7.4 support is kept and tested as this
is the version used in WMF environments.

Also updated libraries used in tests to versions
compatible with modern PHP.

Bug: T381168
Change-Id: I8447d14f4ff69291f6df226817430dbd8bda4df3
  • Loading branch information
manicki authored and WMDE bot committed Jan 15, 2025
1 parent 3e7c8a4 commit 274e4ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php_version: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
php_version: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
steps:
- uses: actions/checkout@v4
- name: Setup PHP
Expand Down
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@
"irc": "irc://irc.libera.chat/wikidata"
},
"require": {
"php": "^7.0|^8.0",
"wikibase/data-model": "~9.0|~8.0",
"wikibase/data-model-serialization": "~2.0",
"php": "^7.4|^8.0",
"wikibase/data-model": "dev-master",
"wikibase/data-model-serialization": "dev-master",
"serialization/serialization": "~4.0|~3.2"
},
"require-dev": {
"phpmd/phpmd": "~2.3",
"phpunit/phpunit": "~8.0",
"data-values/common": ">=0.1 <0.5",
"data-values/geo": ">=1.0 <4.0",
"data-values/number": ">=0.1 <0.10",
"data-values/time": ">=0.1 <0.9"
"wikibase/data-model-services": "dev-master",
"data-values/common": "~1.2",
"data-values/geo": "^4.5.1",
"data-values/number": "~0.13",
"data-values/time": "~1.2"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 274e4ec

Please sign in to comment.