Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
Easy Http SDK
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Back End
Easy Http SDK
Commits
83b9ab8e
Commit
83b9ab8e
authored
Mar 06, 2023
by
谢宇轩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改几处不严格的变量类型
parent
e4d0a1a3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
SdkRequest.php
src/Http/SdkRequest.php
+1
-1
Option.php
src/Option.php
+1
-2
No files found.
src/Http/SdkRequest.php
View file @
83b9ab8e
...
...
@@ -165,7 +165,7 @@ class SdkRequest extends Request
*/
public
function
withRequestID
(
?
string
$uuid
=
null
)
:
self
{
$this
->
uuid
=
$uuid
;
$this
->
uuid
=
$uuid
??
""
;
$RequestIDMiddleware
=
new
RequestIDMiddleware
(
$this
->
uuid
);
$this
->
middlewares
[]
=
$RequestIDMiddleware
;
return
$this
;
...
...
src/Option.php
View file @
83b9ab8e
...
...
@@ -122,8 +122,7 @@ abstract class Option
*/
public
function
getAuthExpires
()
:
int
{
return
static
::
AUTH_CACHE_EXPIRES_AT
??
30000
;
return
empty
(
static
::
AUTH_CACHE_EXPIRES_AT
)
?
self
::
AUTH_CACHE_EXPIRES_AT
:
static
::
AUTH_CACHE_EXPIRES_AT
;
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment