Updated deps, changes for php 8.4, testing doesn't work
This commit is contained in:
parent
db48067d6b
commit
b74af5450a
6 changed files with 365 additions and 288 deletions
|
@ -175,7 +175,7 @@ namespace MensBeam\Catcher;
|
|||
abstract class Handler {
|
||||
public const CONTENT_TYPE = null;
|
||||
|
||||
public const NON_FATAL_ERROR = \E_NOTICE | \E_USER_NOTICE | \E_STRICT | \E_WARNING | \E_COMPILE_WARNING | \E_USER_WARNING | \E_DEPRECATED | \E_USER_DEPRECATED;
|
||||
public const NON_FATAL_ERROR = \E_NOTICE | \E_USER_NOTICE | \E_WARNING | \E_COMPILE_WARNING | \E_USER_WARNING | \E_DEPRECATED | \E_USER_DEPRECATED;
|
||||
|
||||
// Control constants
|
||||
public const BUBBLES = 1;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"mensbeam/self-sealing-callable": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^10",
|
||||
"phpunit/phpunit": "^11",
|
||||
"phake/phake": "^4.4",
|
||||
"mikey179/vfsstream": "^1.6"
|
||||
}
|
||||
|
|
642
composer.lock
generated
642
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -180,6 +180,7 @@ class Catcher {
|
|||
*/
|
||||
public function handleError(int $code, string $message, ?string $file = null, ?int $line = null): bool {
|
||||
if ($code && $code & error_reporting()) {
|
||||
var_export(self::isErrorFatal($code));
|
||||
$error = new Error($message, $code, $file, $line);
|
||||
if ($this->errorHandlingMethod > self::THROW_NO_ERRORS && ($this->errorHandlingMethod === self::THROW_ALL_ERRORS || self::isErrorFatal($code)) && !$this->isShuttingDown) {
|
||||
$this->lastThrowable = $error;
|
||||
|
|
|
@ -14,7 +14,7 @@ use MensBeam\Catcher,
|
|||
abstract class Handler {
|
||||
public const CONTENT_TYPE = null;
|
||||
|
||||
public const NON_FATAL_ERROR = \E_NOTICE | \E_USER_NOTICE | \E_STRICT | \E_WARNING | \E_COMPILE_WARNING | \E_USER_WARNING | \E_DEPRECATED | \E_USER_DEPRECATED;
|
||||
public const NON_FATAL_ERROR = \E_NOTICE | \E_USER_NOTICE | \E_WARNING | \E_COMPILE_WARNING | \E_USER_WARNING | \E_DEPRECATED | \E_USER_DEPRECATED;
|
||||
|
||||
// Control constants
|
||||
public const BUBBLES = 1;
|
||||
|
@ -316,7 +316,6 @@ abstract class Handler {
|
|||
switch ($throwable->getCode()) {
|
||||
case \E_NOTICE:
|
||||
case \E_USER_NOTICE:
|
||||
case \E_STRICT:
|
||||
$this->_logger->notice($message, $context);
|
||||
break;
|
||||
case \E_WARNING:
|
||||
|
|
|
@ -61,9 +61,6 @@ class ThrowableController {
|
|||
case \E_COMPILE_WARNING:
|
||||
$this->errorType = 'Compile Warning';
|
||||
break;
|
||||
case \E_STRICT:
|
||||
$this->errorType = 'Runtime Notice';
|
||||
break;
|
||||
case \E_RECOVERABLE_ERROR:
|
||||
$this->errorType = 'Recoverable Error';
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue