Skip to content

Commit

Permalink
Using identical comparison for path validation
Browse files Browse the repository at this point in the history
  • Loading branch information
githubfromgui committed Aug 30, 2022
1 parent 4dee0d0 commit 6ef0f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VersionStrategy/StaticVersionStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function applyVersion($path)
{
$versionized = sprintf($this->format, ltrim($path, '/'), $this->getVersion($path));

if ($path && '/' == $path[0]) {
if ($path && '/' === $path[0]) {
return '/'.$versionized;
}

Expand Down

0 comments on commit 6ef0f9f

Please sign in to comment.