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
40655397
Commit
40655397
authored
Feb 21, 2023
by
谢宇轩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复php8版本模板语法错误
parent
c5446821
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
SdkEndpointBuilder.php
src/Generation/SdkEndpointBuilder.php
+1
-1
Endpoint80000.temp
template/Endpoint80000.temp
+1
-4
No files found.
src/Generation/SdkEndpointBuilder.php
View file @
40655397
...
@@ -138,7 +138,7 @@ class SdkEndpointBuilder
...
@@ -138,7 +138,7 @@ class SdkEndpointBuilder
if
(
!
str_contains
(
$uri
,
"
{
$item
}
"
))
{
if
(
!
str_contains
(
$uri
,
"
{
$item
}
"
))
{
throw
new
\RuntimeException
(
sprintf
(
"endpoint [%s] method %s required argument not found in uri "
,
$name
,
$func
));
throw
new
\RuntimeException
(
sprintf
(
"endpoint [%s] method %s required argument not found in uri "
,
$name
,
$func
));
}
}
$uri
=
str_replace
(
"{"
.
$item
.
"}"
,
'
{$'
.
$item
.
'}'
,
$uri
);
$uri
=
str_replace
(
"{"
.
$item
.
"}"
,
'
$'
.
$item
,
$uri
);
}
}
}
}
...
...
template/Endpoint80000.temp
View file @
40655397
...
@@ -21,14 +21,11 @@ class {{ Endpoint }}
...
@@ -21,14 +21,11 @@ class {{ Endpoint }}
use
CallBackHelper
;
use
CallBackHelper
;
/** @var Application */
protected
Application
$application
;
/**
/**
* @param Application $application
* @param Application $application
*/
*/
public
function
__construct
(
public
function
__construct
(
protected
Application
$application
protected
readonly
Application
$application
){}
){}
{
%
for
item
in
Func
%
}
{
%
for
item
in
Func
%
}
...
...
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