Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/backward-compatibility-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
services:
postgres:
# Docker Hub image
image: "postgres:17.6"
image: "postgres:17.7"
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
extensions: pdo_sqlite

- name: "Checkout base"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
ref: ${{ github.base_ref }}

Expand All @@ -58,7 +58,7 @@ jobs:
run: "vendor/bin/phpbench run tests/Benchmark --progress=none --report=default --tag=base"

- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
clean: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coding-standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.35.5"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deptrac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.35.5"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-build-try.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.35.5"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.35.5"
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.35.5"
Expand Down Expand Up @@ -159,7 +159,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.35.5"
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.35.5"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mutation-tests-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.35.5"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.35.5"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.35.5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Release"
uses: "laminas/automatic-releases@v1"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Install PHP"
uses: "shivammathur/setup-php@2.35.5"
Expand Down
5 changes: 0 additions & 5 deletions baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,6 @@
<code><![CDATA[$dateTimeType->convertToPHPValue($data['recorded_on'], $platform)]]></code>
</MixedArgument>
</file>
<file src="src/Store/InMemoryStore.php">
<MixedPropertyTypeCoercion>
<code><![CDATA[$this->messages]]></code>
</MixedPropertyTypeCoercion>
</file>
<file src="src/Store/StreamDoctrineDbalStore.php">
<DeprecatedMethod>
<code><![CDATA[setPrimaryKey]]></code>
Expand Down
3 changes: 2 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions deptrac-baseline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,12 @@ deptrac:
- Patchlevel\EventSourcing\Aggregate\AggregateRoot
Patchlevel\EventSourcing\Attribute\Subscriber:
- Patchlevel\EventSourcing\Subscription\RunMode
Patchlevel\EventSourcing\Store\DoctrineDbalStore:
- Patchlevel\EventSourcing\Aggregate\AggregateHeader
Patchlevel\EventSourcing\Store\DoctrineDbalStoreStream:
- Patchlevel\EventSourcing\Aggregate\AggregateHeader
Patchlevel\EventSourcing\Store\InMemoryStore:
- Patchlevel\EventSourcing\Aggregate\AggregateHeader
- Patchlevel\EventSourcing\Metadata\Event\EventRegistry
Patchlevel\EventSourcing\Store\MissingEventRegistry:
- Patchlevel\EventSourcing\Metadata\Event\EventRegistry
2 changes: 0 additions & 2 deletions deptrac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ deptrac:
- Cryptography
- MetadataAggregate
Store:
- Aggregate
- Attribute
- Clock
- Message
- Metadata
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/aggregate.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ final class Hotel extends BasicAggregateRoot
throw new NoPlaceException($name);
}

$this->recordThat(new RoomBocked($name));
$this->recordThat(new RoomBooked($name));

if ($this->people !== self::SIZE) {
return;
Expand All @@ -575,7 +575,7 @@ final class Hotel extends BasicAggregateRoot
}

#[Apply]
protected function applyRoomBocked(RoomBocked $event): void
protected function applyRoomBooked(RoomBooked $event): void
{
$this->people++;
}
Expand Down
6 changes: 3 additions & 3 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
mkdocs==1.6.1
mike==2.1.3
markdown==3.9
mkdocs-material==9.6.20
markdown==3.10
mkdocs-material==9.7.0

# Markdown extensions
Pygments==2.19.2
pymdown-extensions==10.16.1
pymdown-extensions==10.17.1

# MkDocs plugins
mkdocs-material-extensions==1.3.1
5 changes: 1 addition & 4 deletions src/Store/Header/IndexHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@

namespace Patchlevel\EventSourcing\Store\Header;

/**
* @psalm-immutable
* @experimental
*/
/** @psalm-immutable */
final class IndexHeader
{
/** @param positive-int $index */
Expand Down
Loading
Loading