Codeception\Lib\Generator\AbstractGenerator::ensureSettingsAreAllStrings PHP Method

ensureSettingsAreAllStrings() protected method

    protected function ensureSettingsAreAllStrings()
    {
        if (empty(static::$requiredSettings)) {
            return true;
        }
        foreach (static::$requiredSettings as $requiredSetting) {
            if (!is_string($this->settings[$requiredSetting])) {
                throw new \BadMethodCallException('Required template setting [{' . $requiredSetting . '}] is not a string.');
            }
        }
        return true;
    }