Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | public function __construct( |
||
13 | ?string $scope, |
||
14 | array $parents, |
||
15 | ) { |
||
16 | $scopes = \implode('->', \array_map( |
||
17 | static fn (?string $scope): string => $scope === null ? 'null' : "\"$scope\"", |
||
18 | [...\array_reverse($parents), $scope], |
||
19 | )); |
||
20 | parent::__construct( |
||
21 | $scope, |
||
22 | \sprintf('Scoped container has been leaked. Scope: %s.', $scopes), |
||
23 | ); |
||
26 |