diff --git a/app/Services/ModuleService.php b/app/Services/ModuleService.php index b2dd4f12fd..4abe300148 100644 --- a/app/Services/ModuleService.php +++ b/app/Services/ModuleService.php @@ -588,7 +588,7 @@ public function findByComponent(string $interface, Tree $tree, UserInterface $us * * @return Collection */ - public function findByInterface(string $interface, $include_disabled = false, $sort = false): Collection + public function findByInterface(string $interface, bool $include_disabled = false, bool $sort = false): Collection { $modules = $this->all($include_disabled) ->filter($this->interfaceFilter($interface)); @@ -741,9 +741,9 @@ private function customModules(): Collection * * @param string $filename * - * @return mixed + * @return ModuleInterface|null */ - private static function load(string $filename) + private static function load(string $filename): ?ModuleInterface { try { return include $filename;