You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI surfaced two checks the unpushed branch had never run locally:
- sa/PHPMD flagged UnusedFormalParameter on no-op / contract-driven signatures.
Add @SuppressWarnings("PHPMD.UnusedFormalParameter") (quoted so PHPStan's
phpDoc parser accepts the dotted rule name) on NullSemanticLogger and on
SafeSemanticLogger::__unserialize, whose parameters are required by the
interface / magic-method contract but intentionally unused.
- codecov (100% target) flagged the no-op NullSemanticLogger methods and the
best-effort catch blocks in SafeSemanticLogger::event()/close() as uncovered.
NullSemanticLogger is a pure no-op null object, so its methods are marked
@codeCoverageIgnore; the SafeSemanticLogger catch blocks are the resilience
guarantee, so they get real failure tests instead.
Also address review nitpicks: merge the two stacked docblocks on
StructuredRepositoryLoggerInterface, and unlink the temp file in
SemanticLogTreeTrait.
0 commit comments