Skip to content

Commit

Permalink
Fixes #1388: cast prefix to string before passing it to strlen
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank de Jonge committed Dec 9, 2021
1 parent c995bb0 commit c8e93b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ public function applyPathPrefix($path)
*/
public function removePathPrefix($path)
{
return substr($path, strlen($this->getPathPrefix()));
return substr($path, strlen((string) $this->getPathPrefix()));
}
}

0 comments on commit c8e93b7

Please sign in to comment.