Skip to content

Commit a1af14d

Browse files
committed
PHP 8.4 > Removed deprecated constant E_STRICT, as it is not in use since PHP 5.4 anymore.
1 parent 355392f commit a1af14d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/log/sfWebDebugLogger.class.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public function initialize(sfEventDispatcher $dispatcher, $options = [])
5656
* PHP error handler send PHP errors to log.
5757
*
5858
* PHP user space error handler can not handle E_ERROR, E_PARSE,
59-
* E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING,
60-
* and most of E_STRICT.
59+
* E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR and E_COMPILE_WARNING.
6160
*
6261
* @param string $errno the level of the error raised, as an integer
6362
* @param string $errstr the error message, as a string
@@ -76,11 +75,6 @@ public function handlePhpError($errno, $errstr, $errfile, $errline, $errcontext
7675
$message = sprintf(' %%s at %s on line %s (%s)', $errfile, $errline, str_replace('%', '%%', $errstr));
7776

7877
switch ($errno) {
79-
case E_STRICT:
80-
$this->dispatcher->notify(new sfEvent($this, 'application.log', ['priority' => sfLogger::ERR, sprintf($message, 'Strict notice')]));
81-
82-
break;
83-
8478
case E_NOTICE:
8579
$this->dispatcher->notify(new sfEvent($this, 'application.log', ['priority' => sfLogger::NOTICE, sprintf($message, 'Notice')]));
8680

0 commit comments

Comments
 (0)