@@ -29,8 +29,8 @@ public function __construct(
2929 private string $ accessKey ,
3030 private string $ secretKey ,
3131 private ?string $ securityToken = null ,
32- Extensions $ extensions = null ,
33- LoggerConfiguration $ loggerConfiguration = null
32+ ? Extensions $ extensions = null ,
33+ ? LoggerConfiguration $ loggerConfiguration = null
3434 ) {
3535 // https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/developer-guide/SellingPartnerApiDeveloperGuide.md#include-a-user-agent-header-in-all-requests
3636 $ this ->userAgent = 'Library amazon-php/sp-api-php (language=PHP ' . \phpversion () . '; Platform= ' . \php_uname ('s ' ) . ' ' . \php_uname ('r ' ) . ' ' . \php_uname ('m ' ) . ') ' ;
@@ -158,7 +158,7 @@ public function setLogLevel(string $api, string $operationMethod, string $logLev
158158 return $ this ;
159159 }
160160
161- public function setSkipLogging (string $ api , string $ operation = null ) : self
161+ public function setSkipLogging (string $ api , ? string $ operation = null ) : self
162162 {
163163 if ($ operation !== null ) {
164164 $ this ->loggerConfiguration ->skipAPIOperation ($ api , $ operation );
@@ -171,7 +171,7 @@ public function setSkipLogging(string $api, string $operation = null) : self
171171 return $ this ;
172172 }
173173
174- public function setEnableLogging (string $ api , string $ operation = null ) : self
174+ public function setEnableLogging (string $ api , ? string $ operation = null ) : self
175175 {
176176 if ($ operation !== null ) {
177177 $ this ->loggerConfiguration ->enableAPIOperation ($ api , $ operation );
@@ -184,7 +184,7 @@ public function setEnableLogging(string $api, string $operation = null) : self
184184 return $ this ;
185185 }
186186
187- public function loggingEnabled (string $ api , string $ operation = null ) : bool
187+ public function loggingEnabled (string $ api , ? string $ operation = null ) : bool
188188 {
189189 return !$ this ->loggerConfiguration ->isSkipped ($ api , $ operation );
190190 }
0 commit comments