Skip to content

Commit

Permalink
Add return types
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Jul 18, 2021
1 parent 46fdfe8 commit 095bc4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Loader/SymfonyFixturesLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class SymfonyFixturesLoader extends ContainerAwareLoader implements Symfon
*
* @param array $fixtures
*/
public function addFixtures(array $fixtures)
public function addFixtures(array $fixtures): void
{
// Because parent::addFixture may call $this->createFixture
// we cannot call $this->addFixture in this loop
Expand All @@ -48,7 +48,7 @@ public function addFixtures(array $fixtures)
}
}

public function addFixture(FixtureInterface $fixture)
public function addFixture(FixtureInterface $fixture): void
{
$class = get_class($fixture);
$this->loadedFixtures[$class] = $fixture;
Expand Down
4 changes: 1 addition & 3 deletions ManagerConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ public function configure(DocumentManager $documentManager)

/**
* Enable filters for an given document manager
*
* @return null
*/
private function enableFilters(DocumentManager $documentManager)
private function enableFilters(DocumentManager $documentManager): void
{
if (empty($this->enabledFilters)) {
return;
Expand Down

0 comments on commit 095bc4f

Please sign in to comment.