From 41acb2fb71da703a716d22a854a5c24292f2027f Mon Sep 17 00:00:00 2001 From: Tom Rochette Date: Sun, 7 Nov 2021 22:38:31 -0500 Subject: [PATCH] Suppress deprecated warnings 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+. --- src/PHPSemVerChecker/Console/Application.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PHPSemVerChecker/Console/Application.php b/src/PHPSemVerChecker/Console/Application.php index ca81c0d..1210215 100644 --- a/src/PHPSemVerChecker/Console/Application.php +++ b/src/PHPSemVerChecker/Console/Application.php @@ -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); } /**