summaryrefslogtreecommitdiff
path: root/app/Report/ReportParserBase.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-10-22 00:19:43 +0100
committerGreg Roach <fisharebest@webtrees.net>2019-10-22 00:19:43 +0100
commitb19e047d78b7721fa9b530ea3026f960e2398415 (patch)
treedcac29e7c12bd33077cf6c17f22ce685f258c75f /app/Report/ReportParserBase.php
parent96949fc5d698c963bb4db5041d27fc204405861a (diff)
downloadwebtrees-b19e047d78b7721fa9b530ea3026f960e2398415.tar.gz
webtrees-b19e047d78b7721fa9b530ea3026f960e2398415.tar.bz2
webtrees-b19e047d78b7721fa9b530ea3026f960e2398415.zip
Static analysis tools dislike variable method calls.
Diffstat (limited to 'app/Report/ReportParserBase.php')
-rw-r--r--app/Report/ReportParserBase.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/Report/ReportParserBase.php b/app/Report/ReportParserBase.php
index 31e683ebe7..3614bc8330 100644
--- a/app/Report/ReportParserBase.php
+++ b/app/Report/ReportParserBase.php
@@ -22,6 +22,9 @@ namespace Fisharebest\Webtrees\Report;
use DomainException;
use Exception;
+use function call_user_func;
+use function method_exists;
+
/**
* Class ReportParserBase
*/
@@ -98,7 +101,7 @@ class ReportParserBase
$method = $name . 'StartHandler';
if (method_exists($this, $method)) {
- $this->$method($attrs);
+ call_user_func([$this, $method], $attrs);
}
}
@@ -115,7 +118,7 @@ class ReportParserBase
$method = $name . 'EndHandler';
if (method_exists($this, $method)) {
- $this->$method();
+ call_user_func([$this, $method]);
}
}