Skip to content
Snippets Groups Projects
Commit b141f6b6 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix NullableReturnStatement (2x)

parent 832ca60a
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ namespace SimpleSAML\Module\admin\Controller;
use SimpleSAML\Locale\Translate;
use SimpleSAML\Module;
use SimpleSAML\XHTML\Template;
use Webmozart\Assert\Assert;
/**
* A class to handle the menu in admin pages.
......@@ -88,6 +89,7 @@ final class Menu
{
$template->data['menu'] = $this->options;
Module::callHooks('adminmenu', $template);
Assert::isInstanceOf($template, Template::class);
return $template;
}
}
......@@ -7,6 +7,7 @@ namespace SimpleSAML\Module\cron;
use SimpleSAML\Configuration;
use SimpleSAML\Logger;
use SimpleSAML\Module;
use Webmozart\Assert\Assert;
/**
* Handles interactions with SSP's cron system/hooks.
......@@ -51,6 +52,7 @@ class Cron
];
Module::callHooks('cron', $croninfo);
Assert::isArray($croninfo);
foreach ($summary as $s) {
Logger::debug('Cron - Summary: ' . $s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment