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