private function validatePhpdoc($config): void
    {
        // Check that dirs key exists
        if (! Validator::key('phpdoc', Validator::arrayType())->validate($config)) {
            throw new InvalidConfigException('"phpdoc" parameter is not an array.');
        }
        // Validate each phpdoc
        if (! Validator::arrayVal()
            ->each(Validator::stringType(), Validator::stringType())->validate($config['phpdoc'])
        ) {
            throw new InvalidConfigException('Some annotation in "phpdoc" parameter are not strings.');
        }
    }
private function validatePhpdoc($config): void
    {
        // Check that dirs key exists
        if (! Validator::key('phpdoc', Validator::arrayType())->validate($config)) {
            throw new InvalidConfigException('"phpdoc" parameter is not an array.');
        }
        // Validate each phpdoc
        if (! Validator::arrayVal()
            ->each(Validator::stringType(), Validator::stringType())->validate($config['phpdoc'])
        ) {
            throw new InvalidConfigException('Some annotation in "phpdoc" parameter are not strings.');
        }
    }
private function validatePhpdoc ( $ config ) : void { // Check that dirs key exists if ( ! Validator :: key ( 'phpdoc' , Validator :: arrayType ( ) ) -> validate ( $ config ) ) { throw new InvalidConfigException ( '"phpdoc" parameter is not an array.' ) ; } // Validate each phpdoc if ( ! Validator :: arrayVal ( ) -> each ( Validator :: stringType ( ) , Validator :: stringType ( ) ) -> validate ( $ config [ 'phpdoc' ] ) ) { throw new InvalidConfigException ( 'Some annotation in "phpdoc" parameter are not strings.' ) ; } }
Validate the phpdoc key in the config array.

@param mixed $config The configuration.

@throws InvalidConfigException If the phpdoc is invalid (source or target).
Validate the phpdoc key in the config array .