Skip to content
This repository was archived by the owner on Aug 9, 2026. It is now read-only.
Merged
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
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
],
"require": {
"php": "^8.2",
"broadway/broadway": "^2.2.1",
"broadway/broadway": "^3.0",
"mongodb/mongodb": "^2.3",
"ext-mongodb": "^2.3"
},
"require-dev": {
"phpunit/phpunit": "^10.5",
"phpunit/phpunit": "^11.5",
"ramsey/uuid": "^4.0",
"broadway/coding-standard": "^1.2",
"phpstan/phpstan": "^2.0"
Expand Down
24 changes: 24 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,36 @@ parameters:
count: 4
path: src/MongoDBEventStore.php

-
message: '#^Class Broadway\\EventStore\\MongoDB\\MongoDBEventStore implements generic interface Broadway\\EventStore\\EventStore but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/MongoDBEventStore.php

-
message: '#^Method Broadway\\EventStore\\MongoDB\\MongoDBEventStore\:\:append\(\) has parameter \$eventStream with generic class Broadway\\Domain\\DomainEventStream but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/MongoDBEventStore.php

-
message: '#^Method Broadway\\EventStore\\MongoDB\\MongoDBEventStore\:\:buildFindByCriteria\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/MongoDBEventStore.php

-
message: '#^Method Broadway\\EventStore\\MongoDB\\MongoDBEventStore\:\:load\(\) return type with generic class Broadway\\Domain\\DomainEventStream does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/MongoDBEventStore.php

-
message: '#^Method Broadway\\EventStore\\MongoDB\\MongoDBEventStore\:\:loadFromPlayhead\(\) return type with generic class Broadway\\Domain\\DomainEventStream does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/MongoDBEventStore.php

-
message: '#^Method Broadway\\EventStore\\MongoDB\\MongoDBEventStore\:\:normalizeDomainMessage\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
Expand Down
32 changes: 11 additions & 21 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="Broadway Event store Test Suite">
<directory>./test/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
<phpunit backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" bootstrap="vendor/autoload.php" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Broadway Event store Test Suite">
<directory>./test/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src/</directory>
</include>
</source>
</phpunit>