Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Apr 1, 2024
1 parent c55474a commit 500f131
Show file tree
Hide file tree
Showing 12 changed files with 188 additions and 292 deletions.
13 changes: 12 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<?php

$config = new Amp\CodeStyle\Config();
$config = new class extends Amp\CodeStyle\Config {
public function getRules(): array
{
return array_merge(
parent::getRules(),
[
'phpdoc_to_property_type' => true,
'phpdoc_to_param_type' => true,
]
);
}
};
$config->getFinder()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests');
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"require-dev": {
"phpunit/phpunit": "^9",
"amphp/php-cs-fixer-config": "dev-master"
"amphp/php-cs-fixer-config": "^2"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 500f131

Please sign in to comment.