Skip to content

Commit

Permalink
Allows the modulemanager to return null instead of the ModuleModel
Browse files Browse the repository at this point in the history
  • Loading branch information
Vassyli committed Apr 3, 2019
1 parent 248258a commit 353c425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ModuleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function getModules(): array
* @param string $library
* @return Module
*/
public function getModule(string $library): ModuleModel
public function getModule(string $library): ?ModuleModel
{
return $this->g->getEntityManager()->getRepository(ModuleModel::class)->find($library);
}
Expand Down

0 comments on commit 353c425

Please sign in to comment.