File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
lib/internal/Magento/Framework/Module Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
+ declare (strict_types=1 );
8
+
7
9
/**
8
10
* Module statuses manager
9
11
*/
@@ -49,7 +51,7 @@ public function __construct(
49
51
/**
50
52
* @inheritdoc
51
53
*/
52
- public function isEnabled ($ moduleName )
54
+ public function isEnabled (string $ moduleName ): bool
53
55
{
54
56
return $ this ->moduleList ->has ($ moduleName );
55
57
}
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ interface ModuleManagerInterface
20
20
* @param string $moduleName Fully-qualified module name, e.g. Magento_Config
21
21
* @return boolean Whether or not the module is enabled in the configuration
22
22
*/
23
- public function isEnabled ($ moduleName );
23
+ public function isEnabled (string $ moduleName ): bool ;
24
24
}
You can’t perform that action at this time.
0 commit comments