Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sobi-Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sigsiu.NET GmbH
Sobi-Framework
Commits
fdfc9649
Commit
fdfc9649
authored
Jan 06, 2021
by
Radek Suski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ParamsByName method name overriden 0 fixed
parent
6b2bbe97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/ParamsByName.php
Lib/ParamsByName.php
+4
-4
No files found.
Lib/ParamsByName.php
View file @
fdfc9649
...
...
@@ -23,15 +23,15 @@ defined( 'SOBI' ) || exit( 'Restricted access' );
trait
ParamsByName
{
/**
* @param string $
metho
d
* @param string $
calle
d
* @param array $args
*
* @return self
* @throws \ReflectionException
*/
public
function
&
__invoke
(
string
$
metho
d
,
array
$args
):
self
public
function
&
__invoke
(
string
$
calle
d
,
array
$args
):
self
{
$method
=
new
\
ReflectionMethod
(
$this
,
$
metho
d
);
$method
=
new
\
ReflectionMethod
(
$this
,
$
calle
d
);
$params
=
$method
->
getParameters
();
$argsProcessed
=
[];
if
(
count
(
$params
)
)
{
...
...
@@ -49,7 +49,7 @@ trait ParamsByName
}
}
}
call_user_func_array
(
[
'self'
,
$metho
d
],
$argsProcessed
);
call_user_func_array
(
[
$this
,
$calle
d
],
$argsProcessed
);
return
$this
;
}
}
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
Legal Notice / Impressum
|
Data Protection / Datenschutzinformation