Skip to content

Commit

Permalink
Turn off deprecation notices so that we work with php8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Oct 17, 2022
1 parent c296b3d commit feec790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/includes/logger.php
Expand Up @@ -237,7 +237,7 @@ public function level( $level ) {
$this->effectiveLevel = $this->level;
if ( !$this->hasTerm ) {
if ( $lastLevel < self::DEBUG && $this->level >= self::DEBUG ) {
$this->savedErrorReporting = error_reporting(E_ALL);
$this->savedErrorReporting = error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
$this->savedDisplayErrors = ini_set('display_errors', true);
} elseif ( $lastLevel >= self::DEBUG && $this->level < self::DEBUG ) {
error_reporting($this->savedErrorReporting);
Expand Down
2 changes: 1 addition & 1 deletion web/index.php
Expand Up @@ -18,7 +18,7 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//

error_reporting(E_ALL);
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

$debug = false;
if ( $debug ) {
Expand Down

0 comments on commit feec790

Please sign in to comment.