Skip to content

Commit

Permalink
Merge branch '5-add-support-for-php-8-4' into 'master'
Browse files Browse the repository at this point in the history
Resolve "Add support for PHP 8.4"

Closes #5

See merge request tjvb/githash!12
  • Loading branch information
tvbeek committed Nov 20, 2024
2 parents a3c91d1 + f2050fe commit 9b5895f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ infection:
image: registry.gitlab.com/tjvb/phpimages:php83
script:
- composer update
- vendor/bin/phpunit --migrate-configuration || true
- composer infection
dependencies:
- prepare_cache
Expand Down Expand Up @@ -126,11 +127,13 @@ test:
- 81
- 82
- 83
- 84
image: registry.gitlab.com/tjvb/phpimages:php$PHP
<<: *set_exclude_group
script:
- composer install
- vendor/bin/phpunit --coverage-text --colors=never --coverage-cobertura=phpunitresult/cobertura-coverage.xml --log-junit=phpunitresult/junit.xml $EXCLUDE_GROUP
- composer update
- vendor/bin/phpunit --migrate-configuration || true
- XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --colors=never --coverage-cobertura=phpunitresult/cobertura-coverage.xml --log-junit=phpunitresult/junit.xml $EXCLUDE_GROUP
- sed -i 's~ filename="~ filename="src/~' phpunitresult/cobertura-coverage.xml
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
artifacts:
Expand Down Expand Up @@ -158,4 +161,4 @@ combine_docs:
dependencies:
- test_lowest
needs:
- test_lowest
- test_lowest
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

- Added PHP 8.4 support

## 1.3.0 - 2023-11-24
- Added PHP 8.3 support

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Latest Stable Version](https://poser.pugx.org/tjvb/githash/v)](https://packagist.org/packages/tjvb/githash)
[![Pipeline status](https://gitlab.com/tjvb/githash/badges/master/pipeline.svg)](https://gitlab.com/tjvb/githash/-/pipelines?page=1&scope=all&ref=master)
[![Coverage report](https://gitlab.com/tjvb/githash/badges/master/coverage.svg)](https://gitlab.com/tjvb/githash/-/pipelines?page=1&scope=all&ref=master)
[![Tested on PHP 8.0 to 8.2](https://img.shields.io/badge/Tested%20on-PHP%208.0%20|%208.1%20|%208.2%20|%208.3-brightgreen.svg?maxAge=2419200)](https://gitlab.com/tjvb/githash/-/pipelines?page=1&scope=all&ref=master)
[![Tested on PHP 8.0 to 8.4](https://img.shields.io/badge/Tested%20on-PHP%208.0%20|%208.1%20|%208.2%20|%208.3%20|%208.4-brightgreen.svg?maxAge=2419200)](https://gitlab.com/tjvb/githash/-/pipelines?page=1&scope=all&ref=master)
[![Latest Unstable Version](https://poser.pugx.org/tjvb/githash/v/unstable)](https://packagist.org/packages/tjvb/githash)


Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
}
],
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0"
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0"
},
"require-dev": {
"fakerphp/faker": "^1.15",
"infection/infection": "^0.26.10 || ^0.27.0",
"infection/infection": "^0.26.10 || ^0.27.0|| ^0.28.0 || ^0.29.0",
"mikey179/vfsstream": "^1.6.7",
"phpmd/phpmd": "^2.10",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^9.5 || ^10.0 || ^11.0",
"slevomat/coding-standard": "^8.14",
"squizlabs/php_codesniffer": "^3.7",
"symplify/easy-coding-standard": "^12.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/Retrievers/RetrieverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function weGetTheRetrieverWithTheFactoryIfWeInstantiateWithIt(): void
$this->assertEquals($factory, $retriever->getFinderFactory());
}

public function hashMethodsProvider(): array
public static function hashMethodsProvider(): array
{
return [
'with failures' => ['getHash'],
Expand Down

0 comments on commit 9b5895f

Please sign in to comment.