File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 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
6060
6161 /**
6262 * --------------------------------------------------------------------------
63- * LOG DEPRECATIONS INSTEAD OF THROWING?
63+ * WHETHER TO THROW AN EXCEPTION ON DEPRECATED ERRORS
6464 * --------------------------------------------------------------------------
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.
6967 */
7068 public bool $ logDeprecations = true ;
7169
Original file line number Diff line number Diff line change 2525 */
2626
2727// Refuse to run when called from php-cgi
28- if (strpos (PHP_SAPI , 'cgi ' ) === 0 ) {
28+ if (str_starts_with (PHP_SAPI , 'cgi ' )) {
2929 exit ("The cli tool is not supported when running php-cgi. It needs php-cli to function! \n\n" );
3030}
3131
You can’t perform that action at this time.
0 commit comments