Skip to content

Commit

Permalink
Enhancement: Enable and configure phpdoc_order_by_value fixer (FakerP…
Browse files Browse the repository at this point in the history
…HP#239)

* Enhancement: Enable and configure phpdoc_order_by_value fixer

* Fix: Run 'make cs'
  • Loading branch information
localheinz committed Dec 24, 2020
1 parent 7fe4ea6 commit 5a1cfa1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ return $config
'phpdoc_no_empty_return' => true,
'phpdoc_no_package' => true,
'phpdoc_order' => true,
'phpdoc_order_by_value' => [
'annotations' => [
'covers',
'dataProvider',
'group',
'requires',
'throws',
'uses',
],
],
'phpdoc_return_self_reference' => true,
'phpdoc_scalar' => true,
'phpdoc_separation' => true,
Expand Down
4 changes: 2 additions & 2 deletions src/Faker/Extension/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public function __construct(array $definitions)
}

/**
* @throws NotInContainerException
* @throws ContainerException
* @throws \InvalidArgumentException
* @throws \RuntimeException
* @throws ContainerException
* @throws NotInContainerException
*
* @return Extension
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Faker/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ public function __construct(ContainerInterface $container = null)
*
* @param class-string<T> $id
*
* @throws Extension\ExtensionNotFound
* @throws ContainerExceptionInterface
* @throws Extension\ExtensionNotFound
*
* @return T
*/
Expand Down

0 comments on commit 5a1cfa1

Please sign in to comment.