Skip to content

Commit

Permalink
Merge pull request #17 from PcComponentes/feature/symfony-6
Browse files Browse the repository at this point in the history
feat: Allow Symfony 6.0
  • Loading branch information
zoilomora authored Oct 4, 2022
2 parents cffafc3 + 3fa3d3b commit 73ab33f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"require": {
"ext-json": "*",
"php": "^7.4 || ^8.0",
"symfony/yaml": "^4.4 || ^5.0",
"symfony/messenger": "^4.4 || ^5.0",
"symfony/yaml": "^4.4 || ^5.0 || ^6.0",
"symfony/messenger": "^4.4 || ^5.0 || ^6.0",
"justinrainbow/json-schema": "^5.2",
"behat/behat": "^3.5",
"pccomponentes/ddd": "^2.0 || ^3.0 || ^4.0",
Expand All @@ -36,7 +36,7 @@
"require-dev": {
"pccomponentes/ganchudo": "^1.0",
"phpunit/phpunit": "^9.0",
"symfony/var-dumper": "^4.4|^5.0",
"symfony/var-dumper": "^4.4|^5.0|^6.0",
"pccomponentes/coding-standard": "^1.0"
},
"config": {
Expand Down
3 changes: 2 additions & 1 deletion tests/Behat/MessageValidatorOpenApiContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use PcComponentes\Ddd\Domain\Model\ValueObject\Uuid;
use PcComponentes\Ddd\Util\Message\AggregateMessage;
use PcComponentes\Ddd\Util\Message\Message;
use PcComponentes\Ddd\Util\Message\ValueObject\AggregateId;
use PcComponentes\OpenApiMessagingContext\Behat\MessageValidatorOpenApiContext;
use PcComponentes\OpenApiMessagingContext\Messaging\SpyMiddleware;
use PcComponentes\OpenApiMessagingContext\OpenApi\JsonValidationException;
Expand Down Expand Up @@ -108,7 +109,7 @@ private function fakeDomainEvent(array $attributes): AggregateMessage
{
return DomainEventFake::fromPayload(
Uuid::from('efcf7fc2-2d6b-4a52-9763-4472a37b3c24'),
Uuid::from('efcf7fc2-2d6b-4a52-9763-4472a37b3c25'),
AggregateId::from('efcf7fc2-2d6b-4a52-9763-4472a37b3c25'),
DateTimeValueObject::from('now'),
$attributes,
);
Expand Down
3 changes: 2 additions & 1 deletion tests/Messaging/SpyMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use PcComponentes\Ddd\Util\Message\AggregateMessage;
use PcComponentes\Ddd\Util\Message\Message;
use PcComponentes\Ddd\Util\Message\SimpleMessage;
use PcComponentes\Ddd\Util\Message\ValueObject\AggregateId;
use PcComponentes\OpenApiMessagingContext\Messaging\SpyMiddleware;
use PcComponentes\OpenApiMessagingContext\Serialization\SchemaValidatorSimpleMessageSerializable;
use PHPUnit\Framework\TestCase;
Expand Down Expand Up @@ -148,7 +149,7 @@ private function fakeDomainEvent(): AggregateMessage
{
return DomainEventFake::fromPayload(
Uuid::from('efcf7fc2-2d6b-4a52-9763-4472a37b3c24'),
Uuid::from('efcf7fc2-2d6b-4a52-9763-4472a37b3c25'),
AggregateId::from('efcf7fc2-2d6b-4a52-9763-4472a37b3c25'),
DateTimeValueObject::from('now'),
[],
);
Expand Down

0 comments on commit 73ab33f

Please sign in to comment.