Skip to content

Commit dea45ab

Browse files
committed
Deprecated E_STRICT in PHP 8.4
E_STRICT does not have any meaning since PHP 8.0 and is officially deprecated in PHP 8.4
1 parent f31fea1 commit dea45ab

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

res/template/config.php.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $CFG->admin = 'admin';
2222
$CFG->directorypermissions = 02777;
2323

2424
// Show debugging messages.
25-
$CFG->debug = (E_ALL | E_STRICT);
25+
$CFG->debug = PHP_VERSION_ID >= 80000 ? E_ALL : E_ALL | E_STRICT;
2626
$CFG->debugdisplay = 1;
2727

2828
// No emails.

tests/Fixture/example-config-with-chrome-capabilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
$CFG->directorypermissions = 02777;
2323

2424
// Show debugging messages.
25-
$CFG->debug = (E_ALL | E_STRICT);
25+
$CFG->debug = PHP_VERSION_ID >= 80000 ? E_ALL : E_ALL | E_STRICT;
2626
$CFG->debugdisplay = 1;
2727

2828
// No emails.

tests/Fixture/example-config-with-firefox-capabilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
$CFG->directorypermissions = 02777;
2323

2424
// Show debugging messages.
25-
$CFG->debug = (E_ALL | E_STRICT);
25+
$CFG->debug = PHP_VERSION_ID >= 80000 ? E_ALL : E_ALL | E_STRICT;
2626
$CFG->debugdisplay = 1;
2727

2828
// No emails.

tests/Fixture/example-config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
$CFG->directorypermissions = 02777;
2323

2424
// Show debugging messages.
25-
$CFG->debug = (E_ALL | E_STRICT);
25+
$CFG->debug = PHP_VERSION_ID >= 80000 ? E_ALL : E_ALL | E_STRICT;
2626
$CFG->debugdisplay = 1;
2727

2828
// No emails.

0 commit comments

Comments
 (0)