Skip to content

Commit 70cbcce

Browse files
committed
minor #22931 SCA with Php Inspections (EA Extended): 2.7 (kalessil)
This PR was squashed before being merged into the 2.7 branch (closes #22931). Discussion ---------- SCA with Php Inspections (EA Extended): 2.7 | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Static Code Analysis with Php Inspections (EA Extended): dead code and control flow tweaks. Commits ------- 598ae56cc9 SCA with Php Inspections (EA Extended): 2.7
2 parents 4085234 + 0ee9d82 commit 70cbcce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Templating/Helper/AssetsHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function getVersion($path = null, $packageName = null)
7878

7979
// packageName is null and path not, so path is a path or a packageName
8080
try {
81-
$package = $this->packages->getPackage($path);
81+
$this->packages->getPackage($path);
8282
} catch (\InvalidArgumentException $e) {
8383
// path is not a package, so it should be a path
8484
return $this->packages->getVersion($path);

0 commit comments

Comments
 (0)