Skip to content

Commit 2e69ac5

Browse files
authored
Merge pull request #5 from Syndesi/main
General maintenance.
2 parents ee1b5b8 + 0dd0d03 commit 2e69ac5

16 files changed

+63
-46
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
1919
- uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.1'
21+
php-version: '8.3'
2222
tools: composer:v2
23-
- run: composer install --dev
23+
- run: composer install --dev --ignore-platform-req=php
2424
shell: bash
2525
- run: composer cs:list
2626
shell: bash

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

Lines changed: 2 additions & 2 deletions
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']
15+
php-version: ['8.1', '8.2', '8.3']
1616
steps:
1717
- uses: actions/checkout@v2
1818
- name: Cache Composer dependencies
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
php-version: ${{ matrix.php-version }}
2626
tools: composer:v2
27-
- run: composer install
27+
- run: composer install --ignore-platform-req=php
2828
shell: bash
2929
- run: composer test:leak
3030
shell: bash

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
tests:
1010
runs-on: ubuntu-latest
11-
name: "Running mutant tests for PHP 8.1"
11+
name: "Running mutant tests"
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Cache Composer dependencies
@@ -18,9 +18,9 @@ jobs:
1818
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
1919
- uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.1'
21+
php-version: '8.3'
2222
tools: composer:v2
23-
- run: composer install
23+
- run: composer install --ignore-platform-req=php
2424
shell: bash
2525
- run: composer test:mutant
2626
shell: bash

.github/workflows/ci-phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
1919
- uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.1'
21+
php-version: '8.3'
2222
tools: composer:v2
23-
- run: composer install
23+
- run: composer install --ignore-platform-req=php
2424
shell: bash
2525
- run: composer phpstan
2626
shell: bash

.github/workflows/ci-psalm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
1919
- uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.1'
21+
php-version: '8.3'
2222
tools: composer:v2
23-
- run: composer install
23+
- run: composer install --ignore-platform-req=php
2424
shell: bash
2525
- run: composer psalm
2626
shell: bash

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
2121
- uses: shivammathur/setup-php@v2
2222
with:
23-
php-version: '8.1'
23+
php-version: '8.3'
2424
extensions: xdebug
2525
tools: composer:v2
26-
- run: composer install
26+
- run: composer install --ignore-platform-req=php
2727
shell: bash
2828
- run: composer test:coverage:xml
2929
shell: bash

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php-version: ['8.1', '8.2-rc']
17-
neo4j-version: ['4.4', '5.1.0', '5.2.0']
16+
php-version: ['8.1', '8.2', '8.3']
17+
neo4j-version: ['4.4', '5.1.0', '5.13.0']
1818
env:
1919
ENABLE_FEATURE_TEST: true
2020
NEO4J_VERSION: ${{ matrix.neo4j-version }}
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
php-version: ${{ matrix.php-version }}
4040
tools: composer:v2
41-
- run: composer install --ignore-platform-reqs
41+
- run: composer install --ignore-platform-req=php
4242
shell: bash
4343
- run: composer test
4444
shell: bash

composer.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
"authors": [
88
{
99
"name": "Syndesi (Sören Klein)",
10-
"email": "[email protected]",
11-
"homepage": "https://syndesi.dev",
12-
"role": "Developer"
10+
"email": "[email protected]"
1311
}
1412
],
1513
"keywords": [
@@ -19,8 +17,8 @@
1917
],
2018
"require": {
2119
"php": "^8.1",
22-
"syndesi/cypher-data-structures": "^0.2.0",
23-
"laudis/neo4j-php-client": "^2.8",
20+
"syndesi/cypher-data-structures": "^0.3.0",
21+
"laudis/neo4j-php-client": "^3.0",
2422
"psr/log": "^3.0",
2523
"psr/event-dispatcher": "^1.0"
2624
},
@@ -36,11 +34,11 @@
3634
}
3735
},
3836
"require-dev": {
39-
"vimeo/psalm": "^4.23",
37+
"vimeo/psalm": "^5.16",
4038
"boesing/psalm-plugin-stringf": "^1.1",
4139
"phpstan/phpstan": "^1.6",
4240
"phpunit/php-code-coverage": "^9.2",
43-
"infection/infection": "^0.26.10",
41+
"infection/infection": "^0.27.8",
4442
"friendsofphp/php-cs-fixer": "^3.8",
4543
"phpunit/phpunit": "^9.5",
4644
"roave/no-leaks": "^1.3",
@@ -69,7 +67,8 @@
6967
},
7068
"config": {
7169
"allow-plugins": {
72-
"infection/extension-installer": true
70+
"infection/extension-installer": true,
71+
"php-http/discovery": true
7372
}
7473
}
7574
}

psalm.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
66
xmlns="https://getpsalm.org/schema/config"
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+
findUnusedBaselineEntry="false"
9+
findUnusedCode="false"
810
>
911
<projectFiles>
1012
<directory name="src"/>

src/Contract/ActionCypherElementQueueInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
namespace Syndesi\CypherEntityManager\Contract;
66

7+
use Iterator;
8+
9+
/**
10+
* @extends Iterator<int, ActionCypherElementInterface>
11+
*/
712
interface ActionCypherElementQueueInterface extends \Iterator
813
{
914
public function enqueue(ActionCypherElementInterface $element): self;

0 commit comments

Comments
 (0)