public function getFirstNotNull(array $keys, $type = self::CONFIG_ALL, $default = null)
    {
        foreach ($keys as $key) {
            $value = $this->get($key, $type);

            if (null !== $value) {
                return $value;
            }
        }

        return $default;
    }
public function getFirstNotNull(array $keys, $type = self::CONFIG_ALL, $default = null)
    {
        foreach ($keys as $key) {
            $value = $this->get($key, $type);

            if (null !== $value) {
                return $value;
            }
        }

        return $default;
    }
public function getFirstNotNull ( array $ keys , $ type = self :: CONFIG_ALL , $ default = null ) { foreach ( $ keys as $ key ) { $ value = $ this -> get ( $ key , $ type ) ; if ( null !== $ value ) { return $ value ; } } return $ default ; }
Returns the first none-null configuration value.

@param string[]                    $keys    Array of single level keys like "adapters" or property-path
"[adapters][github]" to check
@param string                      $type    Either Config::CONFIG_SYSTEM Config::CONFIG_LOCAL
or Config::CONFIG_ALL
@param string|int|float|bool|array $default Default value to use when no config is found (null)

@return string|int|float|bool|array
Returns the first none - null configuration value .