diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-02-23 21:43:24 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-02-23 21:55:46 +0000 |
| commit | 87cca37c8b5ee0f07397179f377cdfde768951bb (patch) | |
| tree | 6ec3a1b0e7c0040928ee0ce2936c1b445f15fa8d /app/Statistics.php | |
| parent | 67992b6a3e78399bd33189954a5f08bb23b02503 (diff) | |
| download | webtrees-87cca37c8b5ee0f07397179f377cdfde768951bb.tar.gz webtrees-87cca37c8b5ee0f07397179f377cdfde768951bb.tar.bz2 webtrees-87cca37c8b5ee0f07397179f377cdfde768951bb.zip | |
Refactor module components
Diffstat (limited to 'app/Statistics.php')
| -rw-r--r-- | app/Statistics.php | 4 |
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'; }) |
