]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/feature/class_FrameworkFeature.php
Continued:
[core.git] / framework / main / classes / feature / class_FrameworkFeature.php
index 0f67a15be50cb0c1a15dfdb12126d6ad73f824de..0557ce1b9ef582fab50e923b47d029ecb455973e 100644 (file)
@@ -74,7 +74,7 @@ class FrameworkFeature extends BaseFrameworkSystem {
         * @param       $featureName    Name of the feature to be checked
         * @return      $isEnabled              Whether the given feature is enabled
         */
-       public static function isFeatureEnabled ($featureName) {
+       public static function isFeatureEnabled (string $featureName) {
                // Is the cache set?
                if (!isset(self::$enabledFeatures[$featureName]['is_enabled'])) {
                        // Generate config key
@@ -98,7 +98,7 @@ class FrameworkFeature extends BaseFrameworkSystem {
         * @param       $featureName    Name of the feature to be checked on availability
         * @return      $isAvailable    Whether the given feature is available
         */
-       public static function isFeatureAvailable ($featureName) {
+       public static function isFeatureAvailable (string $featureName) {
                // Is the cache set?
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('FRAMEWORK-FEATURE: featureName=%s - CALLED!', $featureName));
                if (!isset(self::$enabledFeatures[$featureName]['is_available'])) {