Skip to content

Commit d3bb55d

Browse files
committed
fix(resource): preserve existing construction path
1 parent a55c654 commit d3bb55d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/Api.php‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ public function setup(): Setup
104104
*/
105105
protected function resource(string $class): Resource
106106
{
107-
// Keep the original protected signature compatible with SDKs that override it.
108-
return $this->resourceWith($class);
107+
return new $class($this->runtime());
109108
}
110109

111110
/**

0 commit comments

Comments
 (0)