Skip to content

Commit

Permalink
Suppress deprecated warnings
Browse files Browse the repository at this point in the history
Noodlehaus\AbstractConfig is currently not compatible with its
interfaces because it does not declare their return types. In order to
get a working version of php-semver-checker without warnings we will
suppress those warnings until we can replace the hassankhan/config with
a different one that is also compatible with PHP 8+.
  • Loading branch information
tomzx committed Nov 8, 2021
1 parent 19f2cbf commit 41acb2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PHPSemVerChecker/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class Application extends SymfonyApplication
public function __construct()
{
parent::__construct('PHP Semantic Versioning Checker by Tom Rochette', self::VERSION);

// Suppress deprecated warnings
error_reporting(E_ALL ^E_DEPRECATED);
}

/**
Expand Down

0 comments on commit 41acb2f

Please sign in to comment.