Skip to content

Commit

Permalink
Merge pull request doctrine#399 from derrabus/bugfix/nullable-parameters
Browse files Browse the repository at this point in the history
Fix doc blocks of nullable constructor parameters
  • Loading branch information
greg0ire authored Jun 19, 2022
2 parents 25bd636 + 7819a22 commit 3322f51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PHPCRExecutor extends AbstractExecutor

/**
* @param DocumentManagerInterface $dm manager instance used for persisting the fixtures
* @param PHPCRPurger $purger to remove the current data if append is false
* @param PHPCRPurger|null $purger to remove the current data if append is false
*/
public function __construct(DocumentManagerInterface $dm, ?PHPCRPurger $purger = null)
{
Expand Down
4 changes: 1 addition & 3 deletions lib/Doctrine/Common/DataFixtures/Purger/MongoDBPurger.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ class MongoDBPurger implements PurgerInterface
/**
* Construct new purger instance.
*
* @param DocumentManager $dm DocumentManager instance used for persistence.
*
* @return void
* @param DocumentManager|null $dm DocumentManager instance used for persistence.
*/
public function __construct(?DocumentManager $dm = null)
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/Common/DataFixtures/Purger/ORMPurger.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class ORMPurger implements PurgerInterface, ORMPurgerInterface
/**
* Construct new purger instance.
*
* @param EntityManagerInterface $em EntityManagerInterface instance used for persistence.
* @param string[] $excluded array of table/view names to be excluded from purge
* @param EntityManagerInterface|null $em EntityManagerInterface instance used for persistence.
* @param string[] $excluded array of table/view names to be excluded from purge
*/
public function __construct(?EntityManagerInterface $em = null, array $excluded = [])
{
Expand Down

0 comments on commit 3322f51

Please sign in to comment.