Skip to content

Commit 6249d9d

Browse files
minor #51173 Add some PHPDoc (HypeMC)
This PR was merged into the 6.4 branch. Discussion ---------- Add some PHPDoc | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Helps IDEs with autocompletion/code navigation. Commits ------- 5bcdbe5987 Add some PHPDoc
2 parents 704d0be + c22325f commit 6249d9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

DependencyInjection/Compiler/ProfilerPass.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ public function process(ContainerBuilder $container)
4242
$template = null;
4343

4444
$collectorClass = $container->findDefinition($id)->getClass();
45-
$isTemplateAware = is_subclass_of($collectorClass, TemplateAwareDataCollectorInterface::class);
46-
if (isset($attributes[0]['template']) || $isTemplateAware) {
45+
if (isset($attributes[0]['template']) || is_subclass_of($collectorClass, TemplateAwareDataCollectorInterface::class)) {
4746
$idForTemplate = $attributes[0]['id'] ?? $collectorClass;
4847
if (!$idForTemplate) {
4948
throw new InvalidArgumentException(sprintf('Data collector service "%s" must have an id attribute in order to specify a template.', $id));

0 commit comments

Comments
 (0)