Skip to content

Commit

Permalink
refactor: Configuration can also be null
Browse files Browse the repository at this point in the history
reduces the number of PHP 8.4 deprecation warnings
  • Loading branch information
earthiverse committed Jan 9, 2025
1 parent 3c1dd9a commit d3b3fa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion swagger-config/marketing/php/templates/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use {{invokerPackage}}\ObjectSerializer;
protected $config;
protected $headerSelector;
public function __construct(Configuration $config = null)
public function __construct(?Configuration $config = null)
{
$this->client = new Client([
'defaults' => [
Expand Down
2 changes: 1 addition & 1 deletion swagger-config/transactional/php/templates/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use {{invokerPackage}}\ObjectSerializer;
{
protected $config;
public function __construct(Configuration $config = null)
public function __construct(?Configuration $config = null)
{
$this->config = $config ?: new Configuration();
}
Expand Down

0 comments on commit d3b3fa9

Please sign in to comment.