summaryrefslogtreecommitdiff
path: root/app/Report/ReportParserBase.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-03-13 19:09:51 +0000
committerGreg Roach <greg@subaqua.co.uk>2022-03-13 20:07:44 +0000
commit79a908a76a3ac4bd7ac61f1009270226ded403aa (patch)
tree64e07939210a38359fe45c1dfd7b9f792c66cae5 /app/Report/ReportParserBase.php
parent246e8de0f2484cc0dc5d6542bb15cdee3740a2e6 (diff)
downloadwebtrees-79a908a76a3ac4bd7ac61f1009270226ded403aa.tar.gz
webtrees-79a908a76a3ac4bd7ac61f1009270226ded403aa.tar.bz2
webtrees-79a908a76a3ac4bd7ac61f1009270226ded403aa.zip
Dynamic method access
Diffstat (limited to 'app/Report/ReportParserBase.php')
-rw-r--r--app/Report/ReportParserBase.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/Report/ReportParserBase.php b/app/Report/ReportParserBase.php
index 94d501f4a6..62aa32382f 100644
--- a/app/Report/ReportParserBase.php
+++ b/app/Report/ReportParserBase.php
@@ -23,7 +23,6 @@ use DomainException;
use Exception;
use XMLParser;
-use function call_user_func;
use function fclose;
use function feof;
use function fread;
@@ -113,7 +112,7 @@ class ReportParserBase
$method = $name . 'StartHandler';
if (method_exists($this, $method)) {
- call_user_func([$this, $method], $attrs);
+ $this->$method($attrs);
}
}
@@ -130,7 +129,7 @@ class ReportParserBase
$method = $name . 'EndHandler';
if (method_exists($this, $method)) {
- call_user_func([$this, $method]);
+ $this->$method();
}
}