src/Viserio/Component/WebServer/WebServerConfig.php
public static function getOptionValidators(): array
    {
        return [
            'document_root' => static function ($value): void {
                if (! \is_dir($value)) {
                    throw new OptionsResolverInvalidArgumentException(\sprintf('The document root directory [%s] does not exist.', $value));
                }
            },
            'router' => static function ($value): void {
                if (! \is_string($value)) {
                    throw OptionsResolverInvalidArgumentException::invalidType('router', $value, ['string'], self::class);
                }

                if (\realpath($value) === false) {
                    throw new OptionsResolverInvalidArgumentException(\sprintf('Router script [%s] does not exist.', $value));
                }
            },
            'host'           => ['string', 'null'],
            'port'           => ['int', 'string', 'null'],
            'disable-xdebug' => ['bool'],
        ];
    }
public static function getOptionValidators(): array
    {
        return [
            'document_root' => static function ($value): void {
                if (! \is_dir($value)) {
                    throw new OptionsResolverInvalidArgumentException(\sprintf('The document root directory [%s] does not exist.', $value));
                }
            },
            'router' => static function ($value): void {
                if (! \is_string($value)) {
                    throw OptionsResolverInvalidArgumentException::invalidType('router', $value, ['string'], self::class);
                }

                if (\realpath($value) === false) {
                    throw new OptionsResolverInvalidArgumentException(\sprintf('Router script [%s] does not exist.', $value));
                }
            },
            'host'           => ['string', 'null'],
            'port'           => ['int', 'string', 'null'],
            'disable-xdebug' => ['bool'],
        ];
    }
{@inheritdoc}