Skip to content

Commit

Permalink
Drop obsolete E_STRICT error level (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk authored Oct 31, 2024
1 parent 5718904 commit c309661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Tracy/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ public static function errorTypeToString(int $type): string
E_USER_WARNING => 'User Warning',
E_NOTICE => 'Notice',
E_USER_NOTICE => 'User Notice',
E_STRICT => 'Strict standards',
E_DEPRECATED => 'Deprecated',
E_USER_DEPRECATED => 'User Deprecated',
];
Expand Down
4 changes: 2 additions & 2 deletions tests/Tracy.Bridges/TracyExtension.services.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $compiler->addExtension('tracy', new TracyExtension);
$compiler->addConfig([
'tracy' => [
'logSeverity' => E_USER_NOTICE,
'strictMode' => 'E_ALL & ~(E_STRICT|E_NOTICE)',
'strictMode' => 'E_ALL & ~(E_NOTICE)',
'scream' => ['E_DEPRECATED', 'E_USER_DEPRECATED'],
'keysToHide' => ['abc'],
],
Expand All @@ -49,7 +49,7 @@ Assert::same(Tracy\Debugger::getBlueScreen(), $container->getService('tracy.blue
Assert::same(Tracy\Debugger::getBar(), $container->getService('tracy.bar'));

Assert::same(E_USER_NOTICE, Tracy\Debugger::$logSeverity);
Assert::same(E_ALL & ~(E_STRICT | E_NOTICE), Tracy\Debugger::$strictMode);
Assert::same(E_ALL & ~(E_NOTICE), Tracy\Debugger::$strictMode);
Assert::same(E_DEPRECATED | E_USER_DEPRECATED, Tracy\Debugger::$scream);
Assert::contains('password', Tracy\Debugger::getBlueScreen()->keysToHide);
Assert::contains('abc', Tracy\Debugger::getBlueScreen()->keysToHide);

0 comments on commit c309661

Please sign in to comment.