Skip to content
Draft

DCB #763

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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ phpstan-baseline: vendor

.PHONY: psalm
psalm: vendor ## run psalm static code analyser
vendor/bin/psalm
php -d memory_limit=312M vendor/bin/psalm

.PHONY: psalm-baseline
psalm-baseline: vendor ## run psalm static code analyser
Expand Down Expand Up @@ -74,7 +74,7 @@ test: phpunit

.PHONY: benchmark
benchmark: vendor ## run benchmarks
DB_URL=sqlite3:///:memory: php -d memory_limit=512M vendor/bin/phpbench run tests/Benchmark --report=default
DB_URL=sqlite3:///:memory: php -d memory_limit=512M vendor/bin/phpbench run tests/Benchmark --report=default --filter=benchAppend100Events

.PHONY: benchmark-base
benchmark-base: vendor ## run benchmarks
Expand Down
43 changes: 43 additions & 0 deletions baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,28 @@
<code><![CDATA[setPrimaryKey]]></code>
</DeprecatedMethod>
</file>
<file src="src/DCB/AttributeEventTagExtractor.php">
<RiskyTruthyFalsyComparison>
<code><![CDATA[$attribute->hash]]></code>
<code><![CDATA[$attribute->prefix]]></code>
</RiskyTruthyFalsyComparison>
</file>
<file src="src/DCB/CompositeProjection.php">
<MissingClosureReturnType>
<code><![CDATA[static function (Projection $projection) {]]></code>
</MissingClosureReturnType>
<MixedAssignment>
<code><![CDATA[$state[$name]]]></code>
</MixedAssignment>
</file>
<file src="src/DCB/DecisionModel.php">
<ImplementedReturnTypeMismatch>
<code><![CDATA[T[TKey]]]></code>
</ImplementedReturnTypeMismatch>
<InvalidCast>
<code><![CDATA[$offset]]></code>
</InvalidCast>
</file>
<file src="src/EventBus/AttributeListenerProvider.php">
<MixedMethodCall>
<code><![CDATA[$method->getName()]]></code>
Expand Down Expand Up @@ -109,6 +131,11 @@
<code><![CDATA[$type->getClassName()]]></code>
</PropertyTypeCoercion>
</file>
<file src="src/Serializer/Normalizer/StringableNormalizer.php">
<PropertyTypeCoercion>
<code><![CDATA[$type->getClassName()]]></code>
</PropertyTypeCoercion>
</file>
<file src="src/Serializer/Upcast/Upcast.php">
<MixedAssignment>
<code><![CDATA[$payload[$key]]]></code>
Expand Down Expand Up @@ -152,6 +179,22 @@
<code><![CDATA[(int)$data['playhead']]]></code>
</ArgumentTypeCoercion>
</file>
<file src="src/Store/TaggableDoctrineDbalStoreStream.php">
<ArgumentTypeCoercion>
<code><![CDATA[(int)$data['playhead']]]></code>
</ArgumentTypeCoercion>
<MixedArgument>
<code><![CDATA[json_decode($data['tags'], true, 512, JSON_THROW_ON_ERROR)]]></code>
</MixedArgument>
</file>
<file src="src/Subscription/Engine/DefaultSubscriptionEngine.php">
<DeprecatedInterface>
<code><![CDATA[SubscriberAccessor|null]]></code>
</DeprecatedInterface>
<DeprecatedMethod>
<code><![CDATA[realSubscriber]]></code>
</DeprecatedMethod>
</file>
<file src="src/Subscription/Engine/GapResolverStoreMessageLoader.php">
<InvalidReturnType>
<code><![CDATA[Generator<int, Message>]]></code>
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"infection/infection": "^0.29.12",
"league/commonmark": "^2.6.1",
"patchlevel/coding-standard": "^1.3.0",
"patchlevel/event-sourcing-phpstan-extension": "^1.0",
"patchlevel/event-sourcing-psalm-plugin": "^3.1.0",
"phpat/phpat": "^0.11.3",
"phpbench/phpbench": "^1.4.1",
Expand Down
59 changes: 58 additions & 1 deletion composer.lock

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

1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ nav:
- Event Bus: event_bus.md
- Query Bus: query_bus.md
- Advanced:
- Dynamic Consistency Boundary: dynamic_consistency_boundary.md
- Identifier: identifier.md
- Normalizer: normalizer.md
- Snapshots: snapshots.md
Expand Down
Loading
Loading