Skip to content

Commit 3705ef0

Browse files
committed
Made library compatible with PHP 8.4
### Changes - Made library compatible with PHP 8.4, closes #8. - Update dev dependencies, related to #8. - Remove dev dependencies `roave/no-leaks` and `boesing/psalm-plugin-stringf` due to conflict with newer PHP versions, related to #8.
1 parent 4b58a5d commit 3705ef0

18 files changed

+84
-83
lines changed

.github/workflows/ci-code-style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
1919
- uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.3'
21+
php-version: '8.4'
2222
tools: composer:v2
2323
- run: composer install --dev --ignore-platform-req=php
2424
shell: bash

.github/workflows/ci-leak-test.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/ci-mutant-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
1919
- uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.3'
21+
php-version: '8.4'
2222
tools: composer:v2
2323
- run: composer install --ignore-platform-req=php
2424
shell: bash

.github/workflows/ci-phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
1919
- uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.3'
21+
php-version: '8.4'
2222
tools: composer:v2
2323
- run: composer install --ignore-platform-req=php
2424
shell: bash

.github/workflows/ci-psalm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
1919
- uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.3'
21+
php-version: '8.4'
2222
tools: composer:v2
2323
- run: composer install --ignore-platform-req=php
2424
shell: bash

.github/workflows/ci-unit-test-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
2121
- uses: shivammathur/setup-php@v2
2222
with:
23-
php-version: '8.3'
23+
php-version: '8.4'
2424
extensions: xdebug
2525
tools: composer:v2
2626
- run: composer install --ignore-platform-req=php

.github/workflows/ci-unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
php-version: ['8.1', '8.2', '8.3']
15+
php-version: ['8.2', '8.3', '8.4']
1616
steps:
1717
- uses: actions/checkout@v2
1818
- name: Cache Composer dependencies

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## Unreleased
8+
### Changed
9+
- Made library compatible with PHP 8.4, closes #8.
10+
- Update dev dependencies, related to #8.
11+
- Remove dev dependencies `roave/no-leaks` and `boesing/psalm-plugin-stringf` due to conflict with newer PHP versions,
12+
related to #8.

composer.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"type": "library",
55
"homepage": "https://neo4j-php.github.io/cypher-data-structures/#/",
66
"license": "MIT",
7+
"minimum-stability": "dev",
78
"authors": [
89
{
910
"name": "Syndesi (Sören Klein)",
@@ -30,25 +31,23 @@
3031
}
3132
},
3233
"require-dev": {
33-
"vimeo/psalm": "^5.0",
34-
"boesing/psalm-plugin-stringf": "^1.1",
35-
"phpstan/phpstan": "^1.6",
36-
"phpunit/php-code-coverage": "^9.2",
37-
"infection/infection": "^0.27.0",
38-
"friendsofphp/php-cs-fixer": "^3.8",
39-
"phpunit/phpunit": "^9.5",
40-
"roave/no-leaks": "^1.3",
34+
"vimeo/psalm": "^6.2",
35+
"phpstan/phpstan": "^2.1",
36+
"phpunit/php-code-coverage": "^11",
37+
"infection/infection": "^0.29.8",
38+
"friendsofphp/php-cs-fixer": "^3.48",
39+
"phpunit/phpunit": "^11",
4140
"phpbench/phpbench": "^1.2",
42-
"infection/codeception-adapter": "^0.4.2"
41+
"infection/codeception-adapter": "^0.4.2",
42+
"thecodingmachine/safe": "v3.0.0 as v2.6"
4343
},
4444
"scripts": {
45-
"test": "php vendor/phpunit/phpunit/phpunit",
45+
"test": "php vendor/phpunit/phpunit/phpunit --display-phpunit-deprecations",
4646
"test:coverage:xml": "export XDEBUG_MODE=coverage && php ./vendor/phpunit/phpunit/phpunit --coverage-clover coverage.xml",
4747
"test:coverage:html": "export XDEBUG_MODE=coverage && php ./vendor/phpunit/phpunit/phpunit --coverage-html ./tmp",
4848
"test:mutant": "export XDEBUG_MODE=coverage && php vendor/infection/infection/bin/infection --threads=4",
49-
"test:leak": "export LEAK=true && php vendor/bin/roave-no-leaks",
50-
"cs:list": "php vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --allow-risky=yes --dry-run ./src",
51-
"cs:fix": "php vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --allow-risky=yes",
49+
"cs:list": "PHP_CS_FIXER_IGNORE_ENV=1 php vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --allow-risky=yes --dry-run ./src",
50+
"cs:fix": "PHP_CS_FIXER_IGNORE_ENV=1 php vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --allow-risky=yes",
5251
"psalm": "php vendor/bin/psalm --show-info=true --no-cache",
5352
"psalm:fix": "php vendor/bin/psalm --alter --issues=MissingReturnType,InvalidReturnType,InvalidNullableReturnType,MismatchingDocblockParamType",
5453
"phpstan": "vendor/bin/phpstan",

phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ parameters:
22
level: 8
33
paths:
44
- src
5-
checkGenericClassInNonGenericObjectType: false
65
ignoreErrors:
76
# - '#Method [a-zA-Z0-9\\_:()]+ should return static\([a-zA-Z0-9\\_]+\) but returns [a-zA-Z0-9\\_]+\.#'
87
# - '#Method [a-zA-Z0-9\\_]+::current\(\) should return [a-zA-Z0-9\\_]+ but returns object\.#'

0 commit comments

Comments
 (0)