summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-08-29 16:34:49 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-08-29 16:34:49 +0100
commite9fd18363a906a73ba946d65139e8b01c0674c1b (patch)
tree7d3794f36ac0e06e5c6a18195361571854f48376 /index.php
parent619fbacc65d0311efd75704bd0f5b9169492a16e (diff)
downloadwebtrees-e9fd18363a906a73ba946d65139e8b01c0674c1b.tar.gz
webtrees-e9fd18363a906a73ba946d65139e8b01c0674c1b.tar.bz2
webtrees-e9fd18363a906a73ba946d65139e8b01c0674c1b.zip
Add type hint
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 519951a9cd..3f4db064de 100644
--- a/index.php
+++ b/index.php
@@ -106,11 +106,13 @@ $base_uri = preg_replace('/[^\/]+\.php(\?.*)?$/', '', $request_uri);
define('WT_BASE_URL', $base_uri);
// Convert PHP warnings/notices into exceptions
-set_error_handler(function ($errno, $errstr, $errfile, $errline) {
+set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline): bool {
// Ignore errors that are silenced with '@'
if (error_reporting() & $errno) {
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}
+
+ return true;
});
DebugBar::startMeasure('init database');