Skip to content

Commit 994faee

Browse files
committed
refactor(client): Update constructor in DotCMSClient for improved type handling
Change the constructor of DotCMSClient to accept a Config object directly, enhancing type clarity and maintaining consistency in dependency injection.
1 parent 1c8a801 commit 994faee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DotCMSClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class DotCMSClient
2525
*
2626
* @param Config $config The configuration for the client
2727
*/
28-
public function __construct(private readonly Config $config)
28+
public function __construct(Config $config)
2929
{
3030
$this->httpClient = new HttpClient($config);
3131
$this->pageService = new PageService($this->httpClient);

0 commit comments

Comments
 (0)