thrownewInfoParserException("The 'core_version_requirement' constraint ({$parsed_info['core_version_requirement']}) is not a valid value in $filename");
}
// If the 'core_version_requirement' constraint does not satisfy any
// Drupal 8 versions before 8.7.7 then 'core' cannot be set or it will
// effectively support all versions of Drupal 8 because
// 'core_version_requirement' will be ignored in previous versions.
thrownewInfoParserException("The 'core_version_requirement' constraint ({$parsed_info['core_version_requirement']}) requires the 'core' key not be set in ".$filename);
}
// 'core_version_requirement' can not be used to specify Drupal 8
// versions before 8.7.7 because these versions do not use the
// 'core_version_requirement' key. Do not throw the exception if the
// constraint also is satisfied by 8.0.0-alpha1 to allow constraints
thrownewInfoParserException("The 'core_version_requirement' can not be used to specify compatibility for a specific version before ".static::FIRST_CORE_VERSION_REQUIREMENT_SUPPORTED_VERSION." in $filename");
thrownewInfoParserException("'core: {$parsed_info['core']}' is not supported. Use 'core_version_requirement' to specify core compatibility. Only 'core: 8.x' is supported to provide backwards compatibility for Drupal 8 when needed in $filename");
}
// Determine if the extension is compatible with the current version of
name: Module with no core_version_requirement or core
$yml=<<<BROKEN
name: Module with no core_version_requirement
type: module
BROKEN,
'expected_error'=>"The 'core_version_requirement' key must be present in $file_path",
],
[
'yml'=><<<BROKEN
name: Module no core_version_requirement and invalid core
type: module
core: 9.x
BROKEN,
'expected_error'=>"'core: 9.x' is not supported. Use 'core_version_requirement' to specify core compatibility. Only 'core: 8.x' is supported to provide backwards compatibility for Drupal 8 when needed in $file_path",
],
[
'yml'=><<<BROKEN
name: Module with core_version_requirement and invalid core
type: module
core: 9.x
core_version_requirement: ^8 || ^9
BROKEN,
'expected_error'=>"'core: 9.x' is not supported. Use 'core_version_requirement' to specify core compatibility. Only 'core: 8.x' is supported to provide backwards compatibility for Drupal 8 when needed in $file_path",