brevo-php icon indicating copy to clipboard operation
brevo-php copied to clipboard

TransactionalSMSApi constructor nullable parameters (PHP 8.4)

Open sigkoro opened this issue 9 months ago • 1 comments

The constructor of TransactionalSMSApi should be fixed the same way you fixed TransactionalEmailApi to be compatible with php 8.4.

public function __construct(
        ?ClientInterface $client = null,
        ?Configuration $config = null,
        ?HeaderSelector $selector = null
    ) {
        $this->client = $client ?: new Client();
        $this->config = $config ?: new Configuration();
        $this->headerSelector = $selector ?: new HeaderSelector();
    }

sigkoro avatar May 22 '25 08:05 sigkoro

@sowmyahora2001 could you consider this issue in the next release please ? btw you could do the same with all APIs i think.

sigkoro avatar Jun 25 '25 06:06 sigkoro