You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #33651 [Yaml] hint to the --parse-tags when parsing tags fails (xabbuh)
This PR was merged into the 4.4 branch.
Discussion
----------
[Yaml] hint to the --parse-tags when parsing tags fails
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | Fix#28465 (comment)
| License | MIT
| Doc PR |
Commits
-------
0121115 hint to the --parse-tags when parsing tags fails
$io->warning(sprintf('%d YAML files have valid syntax and %d contain errors.', $countFiles - $erroredFiles, $erroredFiles));
175
+
$io->warning(sprintf('%d YAML files have valid syntax and %d contain errors.%s', $countFiles - $erroredFiles, $erroredFiles, $suggestTagOption ? ' Use the --parse-tags option if you want parse custom tags.' : ''));
171
176
}
172
177
173
178
returnmin($erroredFiles, 1);
@@ -182,6 +187,10 @@ private function displayJson(SymfonyStyle $io, array $filesInfo)
182
187
if (!$v['valid']) {
183
188
++$errors;
184
189
}
190
+
191
+
if (isset($v['message']) && false !== strpos($v['message'], 'PARSE_CUSTOM_TAGS')) {
192
+
$v['message'] .= ' Use the --parse-tags option if you want parse custom tags.';
0 commit comments