Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-16 07:01:44 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-05-16 10:36:04 +0300
commitdc8c92bfd8433a92bdec5389fa54552ae6039e75 (patch)
tree249b15e6215bd5160ddfeb87b6019febd4ebab74 /test/bootstrap-dist.php
parentaf148ad92bba790ae9180f2b730d89a06c986c8d (diff)
Enable strict mode in test files
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'test/bootstrap-dist.php')
-rw-r--r--test/bootstrap-dist.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/bootstrap-dist.php b/test/bootstrap-dist.php
index cbe3289c3e..b22ddaf5eb 100644
--- a/test/bootstrap-dist.php
+++ b/test/bootstrap-dist.php
@@ -5,13 +5,14 @@
*
* @package PhpMyAdmin-test
*/
+declare(strict_types=1);
/**
* Set precision to sane value, with higher values
* things behave slightly unexpectedly, for example
* round(1.2, 2) returns 1.199999999999999956.
*/
-ini_set('precision', 14);
+ini_set('precision', '14');
// Let PHP complain about all errors
error_reporting(E_ALL);
@@ -21,7 +22,7 @@ date_default_timezone_set('UTC');
// Adding phpMyAdmin sources to include path
set_include_path(
- get_include_path() . PATH_SEPARATOR . dirname(realpath("../index.php"))
+ get_include_path() . PATH_SEPARATOR . dirname((string) realpath("../index.php"))
);
// Setting constants for testing