summaryrefslogtreecommitdiff
path: root/app/Statistics.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-02-23 21:43:24 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-02-23 21:55:46 +0000
commit87cca37c8b5ee0f07397179f377cdfde768951bb (patch)
tree6ec3a1b0e7c0040928ee0ce2936c1b445f15fa8d /app/Statistics.php
parent67992b6a3e78399bd33189954a5f08bb23b02503 (diff)
downloadwebtrees-87cca37c8b5ee0f07397179f377cdfde768951bb.tar.gz
webtrees-87cca37c8b5ee0f07397179f377cdfde768951bb.tar.bz2
webtrees-87cca37c8b5ee0f07397179f377cdfde768951bb.zip
Refactor module components
Diffstat (limited to 'app/Statistics.php')
-rw-r--r--app/Statistics.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Statistics.php b/app/Statistics.php
index 869f6450c9..60b4fe04fc 100644
--- a/app/Statistics.php
+++ b/app/Statistics.php
@@ -2613,9 +2613,9 @@ class Statistics implements
*/
public function callBlock(string $block = '', ...$params): ?string
{
- /** @var ModuleBlockInterface $module */
+ /** @var ModuleBlockInterface|null $module */
$module = $this->module_service
- ->findByComponent('block', $this->tree, Auth::user())
+ ->findByComponent(ModuleBlockInterface::class, $this->tree, Auth::user())
->filter(function (ModuleInterface $module) use ($block): bool {
return $module->name() === $block && $module->name() !== 'html';
})