Skip to content

Commit c88cf51

Browse files
committed
Strictly define the types for ModuleManagerInterface::isEnabled
1 parent 3f43dfe commit c88cf51

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/internal/Magento/Framework/Module/Manager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
declare(strict_types=1);
8+
79
/**
810
* Module statuses manager
911
*/
@@ -49,7 +51,7 @@ public function __construct(
4951
/**
5052
* @inheritdoc
5153
*/
52-
public function isEnabled($moduleName)
54+
public function isEnabled(string $moduleName): bool
5355
{
5456
return $this->moduleList->has($moduleName);
5557
}

lib/internal/Magento/Framework/Module/ModuleManagerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ interface ModuleManagerInterface
2020
* @param string $moduleName Fully-qualified module name, e.g. Magento_Config
2121
* @return boolean Whether or not the module is enabled in the configuration
2222
*/
23-
public function isEnabled($moduleName);
23+
public function isEnabled(string $moduleName): bool;
2424
}

0 commit comments

Comments
 (0)