private function ensureFieldConfigurationIsValid(array $entityConfig, string $entityName, string $section)
    {
        if (!isset($entityConfig[$section]['fields']) || !\count($entityConfig[$section]['fields'])) {
            return;
        }

        throw new ConflictingConfigurationException(\sprintf(
            '"%s" and "%s" are mutually conflicting. Pick just one of them in %s YAML configuration',
            'exclude_fields',
            'fields',
            \sprintf('easy_admin > entities > %s > %s', $entityName, $section)
        ));
    }
private function ensureFieldConfigurationIsValid(array $entityConfig, string $entityName, string $section)
    {
        if (!isset($entityConfig[$section]['fields']) || !\count($entityConfig[$section]['fields'])) {
            return;
        }

        throw new ConflictingConfigurationException(\sprintf(
            '"%s" and "%s" are mutually conflicting. Pick just one of them in %s YAML configuration',
            'exclude_fields',
            'fields',
            \sprintf('easy_admin > entities > %s > %s', $entityName, $section)
        ));
    }
private function ensureFieldConfigurationIsValid ( array $ entityConfig , string $ entityName , string $ section ) { if ( ! isset ( $ entityConfig [ $ section ] [ 'fields' ] ) || ! \ count ( $ entityConfig [ $ section ] [ 'fields' ] ) ) { return ; } throw new ConflictingConfigurationException ( \ sprintf ( '"%s" and "%s" are mutually conflicting. Pick just one of them in %s YAML configuration' , 'exclude_fields' , 'fields' , \ sprintf ( 'easy_admin > entities > %s > %s' , $ entityName , $ section ) ) ) ; }
Explicit "fields" option and "exclude_fields" won't work together

@param mixed[] $entityConfig
@param string  $entityName
@param string  $section

@throws ConflictingConfigurationException
Explicit fields option and exclude_fields won t work together