Skip to content

Commit d3b3fa9

Browse files
committed
refactor: Configuration can also be null
reduces the number of PHP 8.4 deprecation warnings
1 parent 3c1dd9a commit d3b3fa9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

swagger-config/marketing/php/templates/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use {{invokerPackage}}\ObjectSerializer;
3737
protected $config;
3838
protected $headerSelector;
3939
40-
public function __construct(Configuration $config = null)
40+
public function __construct(?Configuration $config = null)
4141
{
4242
$this->client = new Client([
4343
'defaults' => [

swagger-config/transactional/php/templates/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use {{invokerPackage}}\ObjectSerializer;
3636
{
3737
protected $config;
3838
39-
public function __construct(Configuration $config = null)
39+
public function __construct(?Configuration $config = null)
4040
{
4141
$this->config = $config ?: new Configuration();
4242
}

0 commit comments

Comments
 (0)