Skip to content

Commit

Permalink
Added custom error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Oct 11, 2023
1 parent 431d3f2 commit dbf8ee6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"phpunit/phpunit": "^8.5 || ^9.0 || ^10.0",
"symfony/config": "^5.0",
"symfony/console": "^5.0",
"symfony/runtime": "^5.4",
"symfony/dependency-injection": "^5.0",
"symfony/stopwatch": "^5.2",
"symfony/http-kernel": "^5.0",
Expand Down
17 changes: 17 additions & 0 deletions src/lib/ErrorHandler/IbexaErrorHandler.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Ibexa\Behat\ErrorHandler;

use Symfony\Component\Runtime\Internal\BasicErrorHandler;

class IbexaErrorHandler extends BasicErrorHandler
{
public static function register(bool $debug): void
{
parent::register($debug);

if (PHP_VERSION_ID > 80200) {
error_reporting(E_ALL & ~E_DEPRECATED);
}
}
}

0 comments on commit dbf8ee6

Please sign in to comment.