Skip to content

Commit

Permalink
fixed several functional test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
konradoboza committed Jun 3, 2024
1 parent ef8f512 commit 10da034
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/Server/Controller/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -948,13 +948,11 @@ public function assignUserToUserGroup($userId, Request $request)

/**
* Extracts and returns an item id from a path, e.g. /1/2/58 => 58.
*
* @return mixed
*/
private function extractLocationIdFromPath(string $path)
private function extractLocationIdFromPath(string $path): int
{
$pathParts = explode('/', $path);

return array_pop($pathParts);
return (int)array_pop($pathParts);
}
}

0 comments on commit 10da034

Please sign in to comment.