diff --git a/include/functions.inc b/include/functions.inc
index 71842772fb1342e4c0a9aca934371545998005ee..7946508fc8949873fe0ccf384fde00237c4b01f4 100644
--- a/include/functions.inc
+++ b/include/functions.inc
@@ -1573,9 +1573,11 @@ function fopenWithErrorHandling (...$args)
 {
   $errors = [];
   set_error_handler(
-    function ($errno, $errstr, $errfile, $errline, $errcontext) use (&$errors)
+    function (int $errno, string $errstr, string $errfile, int $errline, array $errcontext) use (&$errors): bool
     {
       $errors[] = $errstr;
+
+      return TRUE;
     }
   );
   $fh = @fopen(...$args);
diff --git a/include/simpleplugin/attributes/class_DateAttribute.inc b/include/simpleplugin/attributes/class_DateAttribute.inc
index fa7981fce80979c79c25fac8369b4fb0ce1edeb4..59820d400143877beb160a3dca7b3380a3875052 100644
--- a/include/simpleplugin/attributes/class_DateAttribute.inc
+++ b/include/simpleplugin/attributes/class_DateAttribute.inc
@@ -396,7 +396,7 @@ class EpochDaysDateAttribute extends DateAttribute
 
   protected function ldapToDate ($ldapValue)
   {
-    $date = DateTime::createFromFormat('U', $ldapValue * static::$secondsPerDay, timezone::utc());
+    $date = DateTime::createFromFormat('U', (string)($ldapValue * static::$secondsPerDay), timezone::utc());
     if ($date !== FALSE) {
       return $date;
     } else {
diff --git a/include/simpleplugin/class_Attribute.inc b/include/simpleplugin/class_Attribute.inc
index b9f81b8dfe6c6d37d444e216db6c5097b4125226..190cd6c26287236d82940bd6645949c78aa4fe4c 100644
--- a/include/simpleplugin/class_Attribute.inc
+++ b/include/simpleplugin/class_Attribute.inc
@@ -778,6 +778,11 @@ class Attribute
     return $js;
   }
 
+  function renderFormInput (): string
+  {
+    throw new \FusionDirectoryException('Not implemented in base class (abstract method)');
+  }
+
   function renderTemplateInput (): string
   {
     return $this->renderFormInput();
diff --git a/plugins/addons/dashboard/class_dashboard.inc b/plugins/addons/dashboard/class_dashboard.inc
index 13cac88f2f4002538b930eaf06c547eff5efd58a..7de55de5f2b4c5dcc845e1b04cc4f53e81b93819 100644
--- a/plugins/addons/dashboard/class_dashboard.inc
+++ b/plugins/addons/dashboard/class_dashboard.inc
@@ -114,7 +114,7 @@ class dashboard extends simplePlugin
     usort($stats,
       function ($a, $b)
       {
-        return ($b['priority'] < $a['priority']);
+        return ($a['priority'] <=> $b['priority']);
       }
     );