Skip to content

Commit

Permalink
New API
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-b committed Feb 3, 2022
1 parent e669fa6 commit 4bf7101
Show file tree
Hide file tree
Showing 63 changed files with 3,118 additions and 510 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea
.DS_Store
vendor/
vendor/
tools/vendor
.php-cs-fixer.cache
15 changes: 15 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in([__DIR__ . '/src',__DIR__ . '/tests']);

$config = new PhpCsFixer\Config();

return $config->setRules([
'@PSR12' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'no_unused_imports' => true,
'yoda_style' => false,
])->setFinder($finder);
16 changes: 13 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"php",
"command-bus"
],
"version": "1.2.0",
"version": "1.3.0",
"license": "MIT",
"authors": [
{
Expand All @@ -27,12 +27,22 @@
"files": ["tests/functions.php"]
},
"require": {
"php": ">=8.0",
"php": ">=8.1",
"psr/container": "^1.0",
"psr/log": "^1.1"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"ramsey/uuid": "^4.1"
"ramsey/uuid": "^4.1",
"phpstan/phpstan": "*",
"phpstan/phpstan-phpunit": "^1.0"
},
"scripts": {
"php-cs-fixer": [
"tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --allow-risky=yes"
],
"phpstan": [
"php -d memory_limit=4G vendor/bin/phpstan analyse src tests --configuration=tools/phpstan/phpstan.neon.dist"
]
}
}
Loading

0 comments on commit 4bf7101

Please sign in to comment.