Skip to content

Commit 13cda60

Browse files
Skip validation of services that make the CI fail
1 parent 0ad1ca9 commit 13cda60

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Compiler/CheckTypeDeclarationsPass.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,24 @@ final class CheckTypeDeclarationsPass extends AbstractRecursivePass
3737
private const SCALAR_TYPES = ['int', 'float', 'bool', 'string'];
3838

3939
private $autoload;
40+
private $ignoredServices;
4041

4142
/**
4243
* @param bool $autoload Whether services who's class in not loaded should be checked or not.
4344
* Defaults to false to save loading code during compilation.
4445
*/
45-
public function __construct(bool $autoload = false)
46+
public function __construct(bool $autoload = false, array $ignoredServices = [])
4647
{
4748
$this->autoload = $autoload;
49+
$this->ignoredServices = array_flip($ignoredServices);
4850
}
4951

5052
/**
5153
* {@inheritdoc}
5254
*/
5355
protected function processValue($value, $isRoot = false)
5456
{
55-
if (!$value instanceof Definition) {
57+
if (!$value instanceof Definition || isset($this->ignoredServices[$this->currentId])) {
5658
return parent::processValue($value, $isRoot);
5759
}
5860

0 commit comments

Comments
 (0)