Sends your logs to files, sockets, inboxes, databases and various web services
This report summarizes scanner evidence for Seldaek/monolog, a PHP project with 21,399 GitHub stars. SynthScan examined 34,599 lines of code across 250 source files, recording 383 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 11.2 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 372 finding(s).
Are imports declared and package/API names verified? 11 finding(s).
Are wrappers, guards, and repeated structures necessary? 371 finding(s).
Which changes need focused human review? 383 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 383 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Monolog/UtilsTest.php | 45 | public static function providePathsToCanonicalize() | CODE |
| LOW | tests/Monolog/UtilsTest.php | 59 | public function testHandleJsonErrorFailure(int $code, string $msg) | CODE |
| LOW | tests/Monolog/UtilsTest.php | 65 | public static function providesHandleJsonErrorFailure() | CODE |
| LOW | tests/Monolog/UtilsTest.php | 108 | public static function provideIniValuesToConvertToBytes() | CODE |
| LOW⚡ | tests/Monolog/UtilsTest.php | 143 | public function testExpandIniShorthandBytes(string|null|bool $input, int|false $expected) | CODE |
| LOW⚡ | tests/Monolog/UtilsTest.php | 149 | public function testUnwrapFormatterReturnsPlainFormattersAsIs() | CODE |
| LOW⚡ | tests/Monolog/UtilsTest.php | 156 | public function testUnwrapFormatterResolvesNestedWrappers() | CODE |
| LOW⚡ | tests/Monolog/UtilsTest.php | 163 | public function testUnwrapFormatterTerminatesOnASelfWrappingFormatter() | CODE |
| LOW | tests/Monolog/UtilsTest.php | 186 | public function testGetSensitiveParameterNames(array $expected, string $class) | CODE |
| LOW | tests/Monolog/UtilsTest.php | 193 | public static function provideClassesWithSensitiveParameters(): array | CODE |
| LOW | tests/Monolog/SignalHandlerTest.php | 95 | public function testRegisterSignalHandler() | CODE |
| LOW | tests/Monolog/SignalHandlerTest.php | 132 | public function testRegisterDefaultPreviousSignalHandler($signo, $callPrevious, $expected) | CODE |
| LOW | tests/Monolog/SignalHandlerTest.php | 182 | public function testRegisterCallablePreviousSignalHandler($callPrevious) | CODE |
| LOW | tests/Monolog/SignalHandlerTest.php | 214 | public function testRegisterSyscallRestartingSignalHandler($restartSyscalls) | CODE |
| LOW | tests/Monolog/SignalHandlerTest.php | 267 | public function testRegisterAsyncSignalHandler($initialAsync, $desiredAsync, $expectedBefore, $expectedAfter) | CODE |
| LOW | tests/Monolog/RegistryTest.php | 121 | public function testFailsOnNonExistentLogger() | CODE |
| LOW | tests/Monolog/RegistryTest.php | 145 | public function testFailsOnUnspecifiedReplacement() | CODE |
| LOW | tests/Monolog/PsrLogCompatTest.php | 124 | public function testContextCanContainAnything() | CODE |
| LOW | tests/Monolog/PsrLogCompatTest.php | 147 | public function testContextExceptionKeyCanBeExceptionOrOtherValues() | CODE |
| LOW | tests/Monolog/ErrorHandlerTest.php | 104 | public function testCaptureStackTracesAreRenderedByFormatters() | CODE |
| LOW | tests/Monolog/ErrorHandlerTest.php | 128 | public function testCaptureStackTracesOnlyForGivenErrorTypes() | CODE |
| LOW | tests/Monolog/ErrorHandlerTest.php | 156 | public function testFatalHandlerAttachesStackTrace() | CODE |
| LOW | tests/Monolog/ErrorHandlerTest.php | 191 | public function testFatalHandlerLogsNativeBacktrace() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 106 | public function testLogPreventsCircularLogging() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 144 | public function testLogAlwaysHandledIfNoProcessorsArePresent() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 160 | public function testLogNotHandledIfProcessorsArePresent() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 263 | public function testProcessorsAreExecuted() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 281 | public function testProcessorsAreCalledOnlyOnce() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 312 | public function testProcessorsNotCalledWhenNotHandled() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 331 | public function testHandlersNotCalledBeforeFirstHandlingWhenProcessorsPresent() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 374 | public function testHandlersNotCalledBeforeFirstHandlingWhenProcessorsPresentWithAssocArray() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 412 | public function testBubblingWhenTheHandlerReturnsFalse() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 444 | public function testNotBubblingWhenTheHandlerReturnsTrue() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 561 | public function testTimezoneIsRespectedInUTC() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 583 | public function testTimezoneIsRespectedInOtherTimezone() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 606 | public function testClockPassedToTheConstructorTimestampsRecords() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 623 | public function testClockCanBeSetAndUnsetAtRuntime() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 650 | public function testClockInstantIsRenderedInTheLoggerTimezone() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 668 | public function testClockInstantIsReproducedExactly($instant, $loggerTimezone) | CODE |
| LOW | tests/Monolog/LoggerTest.php | 701 | public function testClockReturningTheMonologTypeIsUsedAsIs() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 715 | public function testClockDoesNotOverrideAnExplicitDateTime() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 730 | public function testClockIsUsedWhenMicrosecondTimestampsAreDisabled() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 747 | public function testClockIsUsedByIsHandling() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 804 | public function testUseMicrosecondTimestamps($micro, $assert, $assertFormat) | CODE |
| LOW | tests/Monolog/LoggerTest.php | 820 | public static function useMicrosecondTimestampsProvider() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 830 | public function testProcessorsDoNotInterfereBetweenHandlers() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 861 | public function testDefaultHandleException() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 884 | public function testCustomHandleException() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 1010 | public function testLogCycleDetectionWithFibersWithoutCycle() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 1035 | public function testLogCycleDetectionWithFibersWithCycle() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 1056 | public function testLogCycleDetectionRecoversAfterAbortedCycle() | CODE |
| LOW | tests/Monolog/Handler/DeduplicationHandlerTest.php | 21 | public function testFlushPassthruIfAllRecordsUnderTrigger() | CODE |
| LOW | tests/Monolog/Handler/DeduplicationHandlerTest.php | 41 | public function testFlushPassthruIfEmptyLog() | CODE |
| LOW | tests/Monolog/Handler/DeduplicationHandlerTest.php | 63 | public function testFlushSkipsIfLogExists() | CODE |
| LOW | tests/Monolog/Handler/DeduplicationHandlerTest.php | 84 | public function testFlushPassthruIfLogTooOld() | CODE |
| LOW | tests/Monolog/Handler/FrankenPhpHandlerTest.php | 36 | public function testConstructorThrowsWhenFrankenPhpIsNotAvailable() | CODE |
| LOW | tests/Monolog/Handler/FrankenPhpHandlerTest.php | 50 | public function testGetDefaultFormatterReturnsNormalizerFormatter() | CODE |
| LOW | tests/Monolog/Handler/WhatFailureGroupHandlerTest.php | 22 | public function testConstructorOnlyTakesHandler() | CODE |
| LOW | tests/Monolog/Handler/WhatFailureGroupHandlerTest.php | 94 | public function testHandleBatchUsesProcessors() | CODE |
| LOW | tests/Monolog/Handler/WhatFailureGroupHandlerTest.php | 140 | public function testProcessorsDoNotInterfereBetweenHandlers() | CODE |
| 311 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 49 | $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', "receiver@example.org\r\nFrom: faked@att | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 56 | $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 64 | $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 72 | $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 80 | $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 86 | $to = 'spammer@example.org'; | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 88 | $from = 'receiver@example.org'; | CODE |
| LOW | tests/Monolog/Handler/NativeMailerHandlerTest.php | 113 | $mailer = $this->newNativeMailerHandler('to@example.org', 'Alert: %level_name% %message%', 'from@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 125 | $mailer = new NativeMailerHandler('to@example.org', 'subject', 'from@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 133 | $this->assertSame('to@example.org', $params[0]); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 136 | $this->assertStringContainsString('From: from@example.org', $params[3]); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/Monolog/Formatter/NormalizerFormatter.php | 321 | // Frames called by the engine itself have no file/line: shutdown functions, | COMMENT |