@@ -55,7 +55,7 @@ class Client extends BaseClient
5555 * @throws \Psr\SimpleCache\InvalidArgumentException
5656 * @throws \GuzzleHttp\Exception\GuzzleException
5757 */
58- public function buildConfig (array $ jsApiList , bool $ debug = false , bool $ beta = false , bool $ json = true , array $ openTagList = [], string $ url = null )
58+ public function buildConfig (array $ jsApiList , bool $ debug = false , bool $ beta = false , bool $ json = true , array $ openTagList = [], ? string $ url = null )
5959 {
6060 $ config = array_merge (compact ('debug ' , 'beta ' , 'jsApiList ' , 'openTagList ' ), $ this ->configSignature ($ url ));
6161
@@ -78,7 +78,7 @@ public function buildConfig(array $jsApiList, bool $debug = false, bool $beta =
7878 * @throws \Psr\SimpleCache\InvalidArgumentException
7979 * @throws \GuzzleHttp\Exception\GuzzleException
8080 */
81- public function getConfigArray (array $ apis , bool $ debug = false , bool $ beta = false , array $ openTagList = [], string $ url = null )
81+ public function getConfigArray (array $ apis , bool $ debug = false , bool $ beta = false , array $ openTagList = [], ? string $ url = null )
8282 {
8383 return $ this ->buildConfig ($ apis , $ debug , $ beta , false , $ openTagList , $ url );
8484 }
@@ -135,7 +135,7 @@ public function getTicket(bool $refresh = false, string $type = 'jsapi'): array
135135 * @throws \GuzzleHttp\Exception\GuzzleException
136136 * @throws \Psr\SimpleCache\InvalidArgumentException
137137 */
138- protected function configSignature (string $ url = null , string $ nonce = null , $ timestamp = null ): array
138+ protected function configSignature (? string $ url = null , ? string $ nonce = null , $ timestamp = null ): array
139139 {
140140 $ url = $ url ?: $ this ->getUrl ();
141141 $ nonce = $ nonce ?: Support \Str::quickRandom (10 );
0 commit comments