Symfony version(s) affected: 4.4, 5.3
In this bug report I mean the usage of the pass in the lint:container usage. I am not aware of other usages.
When calling lint:container it won't report broken services that are marked as deprecated.
If the service is deprecated it calls the parent processValue function and with this skips the validation.
if (!$value instanceof Definition || $value->hasErrors() || $value->isDeprecated()) {
return parent::processValue($value, $isRoot);
}