File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,10 @@ class Exceptions extends BaseConfig
60
60
61
61
/**
62
62
* --------------------------------------------------------------------------
63
- * LOG DEPRECATIONS INSTEAD OF THROWING?
63
+ * WHETHER TO THROW AN EXCEPTION ON DEPRECATED ERRORS
64
64
* --------------------------------------------------------------------------
65
- * By default, CodeIgniter converts deprecations into exceptions. Also,
66
- * starting in PHP 8.1 will cause a lot of deprecated usage warnings.
67
- * Use this option to temporarily cease the warnings and instead log those.
68
- * This option also works for user deprecations.
65
+ * If set to `true`, DEPRECATED errors are only logged and no exceptions are
66
+ * thrown. This option also works for user deprecations.
69
67
*/
70
68
public bool $ logDeprecations = true ;
71
69
Original file line number Diff line number Diff line change 25
25
*/
26
26
27
27
// Refuse to run when called from php-cgi
28
- if (strpos (PHP_SAPI , 'cgi ' ) === 0 ) {
28
+ if (str_starts_with (PHP_SAPI , 'cgi ' )) {
29
29
exit ("The cli tool is not supported when running php-cgi. It needs php-cli to function! \n\n" );
30
30
}
31
31
You can’t perform that action at this time.
0 commit comments