Skip to content

Commit

Permalink
Merge pull request #48 from greg0ire/sa-higher
Browse files Browse the repository at this point in the history
Reach higher levels of static analysis
  • Loading branch information
greg0ire authored Jun 2, 2023
2 parents 3a75743 + 92a6797 commit 68ba072
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Doctrine/Deprecations/Deprecation.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

use function array_key_exists;
use function array_reduce;
use function assert;
use function debug_backtrace;
use function sprintf;
use function strpos;
Expand Down Expand Up @@ -175,6 +176,8 @@ private static function delegateTriggerToBackend(string $message, array $backtra
'link' => $link,
];

assert(self::$logger !== null);

self::$logger->notice($message, $context);
}

Expand Down
2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<psalm
errorLevel="4"
errorLevel="3"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
Expand Down

0 comments on commit 68ba072

Please sign in to comment.