Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
php-version: [ '8.2', '8.3', '8.4']
php-version: [ '8.2', '8.3', '8.4' ]

steps:
- name: Checkout source code
Expand All @@ -40,7 +40,10 @@ jobs:

- name: Install Dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
run: composer install --prefer-dist --no-progress

- name: Check Code Style
run: composer pint-test

- name: Execute Static Code analysis
run: composer analyse
Expand Down
17 changes: 7 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
],
"minimum-stability": "stable",
"require": {
"php": "^8.1.0",
"php": "^8.2",
"ext-json": "*",
"ramsey/uuid": "^4.1.0",
"nesbot/carbon": "^3.2.0",
"illuminate/collections": "^11.0.0",
"lambdish/phunctional": "^2.1.0",
"doctrine/instantiator": "^2.0.0",
"complex-heart/contracts": "^2.0.0"
"complex-heart/contracts": "^3.0.0"
},
"require-dev": {
"mockery/mockery": "^1.6.0",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-faker": "^2.0",
"pestphp/pest": "^3.8.4",
"pestphp/pest-plugin-faker": "^3.0.0",
"phpstan/phpstan": "^1.0",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-mockery": "^1.1",
Expand All @@ -42,12 +42,9 @@
"scripts": {
"test": "vendor/bin/pest --configuration=phpunit.xml --coverage --coverage-clover=coverage.xml --log-junit=test.xml",
"test-cov": "vendor/bin/pest --configuration=phpunit.xml --coverage --coverage-html=coverage",
"analyse": "vendor/bin/phpstan analyse src --no-progress --memory-limit=4G --level=8",
"check": [
"@analyse",
"@test"
],
"pint": "vendor/bin/pint --preset psr12"
"analyse": "vendor/bin/phpstan analyse --no-progress --memory-limit=4G",
"pint-test": "vendor/bin/pint --preset=psr12 --test",
"pint": "vendor/bin/pint --preset=psr12"
},
"config": {
"allow-plugins": {
Expand Down
4 changes: 4 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
parameters:
paths:
- src/
level: 8
4 changes: 2 additions & 2 deletions src/Traits/HasDomainEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace ComplexHeart\Domain\Model\Traits;

use ComplexHeart\Domain\Contracts\ServiceBus\Event;
use ComplexHeart\Domain\Contracts\ServiceBus\EventBus;
use ComplexHeart\Domain\Contracts\Events\Event;
use ComplexHeart\Domain\Contracts\Events\EventBus;

/**
* Trait HasDomainEvents
Expand Down
5 changes: 3 additions & 2 deletions tests/AggregatesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

declare(strict_types=1);

use ComplexHeart\Domain\Contracts\ServiceBus\Event;
use ComplexHeart\Domain\Contracts\ServiceBus\EventBus;

use ComplexHeart\Domain\Contracts\Events\Event;
use ComplexHeart\Domain\Contracts\Events\EventBus;
use ComplexHeart\Domain\Model\Test\Fixtures\OrderManagement\Domain\Order;
use ComplexHeart\Domain\Model\ValueObjects\UUIDValue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace ComplexHeart\Domain\Model\Test\Fixtures\OrderManagement\Domain\Events;

use ComplexHeart\Domain\Contracts\ServiceBus\Event;
use ComplexHeart\Domain\Contracts\Events\Event;
use ComplexHeart\Domain\Model\Test\Fixtures\OrderManagement\Domain\OrderLine;
use ComplexHeart\Domain\Model\Test\Fixtures\OrderManagement\Domain\Order;
use ComplexHeart\Domain\Model\ValueObjects\DateTimeValue as Timestamp;
Expand Down