The $client->currentUser()->listWorkspaces() method doesn't use the buildCurrentUserUri method to build the URI, which causes it to use the /2.0/workspaces endpoint directly. That endpoint was deprecated in August and has since been removed
https://developer.atlassian.com/cloud/bitbucket/changelog/#CHANGE-2770
The
$client->currentUser()->listWorkspaces()method doesn't use thebuildCurrentUserUrimethod to build the URI, which causes it to use the/2.0/workspacesendpoint directly. That endpoint was deprecated in August and has since been removedhttps://developer.atlassian.com/cloud/bitbucket/changelog/#CHANGE-2770