PHP errors for cool kids
This report summarizes scanner evidence for filp/whoops, a PHP project with 13,230 GitHub stars. SynthScan examined 9,331 lines of code across 71 source files, recording 62 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 6.9 (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? 62 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 53 finding(s).
Which changes need focused human review? 62 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 62 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/Whoops/RunTest.php | 22 | public function testImplementsRunInterface() | CODE |
| LOW | tests/Whoops/RunTest.php | 27 | public function testConstantsAreAccessibleFromTheClass() | CODE |
| LOW | tests/Whoops/RunTest.php | 114 | public function testPushClosureBecomesHandler() | CODE |
| LOW | tests/Whoops/RunTest.php | 434 | public function testErrorWrappedInException() | CODE |
| LOW | tests/Whoops/RunTest.php | 485 | public function testOutputBufferCleanupStopsAtNonRemovableBuffer() | CODE |
| LOW | tests/Whoops/RunTest.php | 544 | public function testSendHttpCodeWrongCode() | CODE |
| LOW | tests/Whoops/RunTest.php | 564 | public function testSendExitCodeDefaultCode() | CODE |
| LOW | tests/Whoops/RunTest.php | 573 | public function testSendExitCodeWrongCode() | CODE |
| LOW | tests/Whoops/RunTest.php | 618 | public function testShutdownHandlerDoesNotRunIfUnregistered() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 128 | public function testAddTraceFunctionArgsToOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 158 | public function testGetSetTraceFunctionArgsOutputLimit() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 207 | public function testReturnsWithoutFramesOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 230 | public function testReturnsWithoutPreviousExceptions() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 253 | public function testReturnsWithPreviousExceptions() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 288 | public function testReturnsWithFramesOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 322 | public function testReturnsWithFramesAndArgsOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 369 | public function testReturnsWithFramesAndLimitedArgsOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 408 | public function testReturnsWithLoggerOnlyOutput() | CODE |
| LOW | tests/Whoops/Handler/PlainTextHandlerTest.php | 424 | public function testGetFrameArgsOutputUsesDumper() | CODE |
| LOW | tests/Whoops/Handler/PrettyPageHandlerTest.php | 85 | public function testSetInvalidResourcesPath() | CODE |
| LOW | tests/Whoops/Handler/PrettyPageHandlerTest.php | 134 | public function testSetCallbackDataTables() | CODE |
| LOW | tests/Whoops/Handler/JsonResponseHandlerTest.php | 34 | private function getJsonResponseFromHandler($withTrace = false, $jsonApi = false) | CODE |
| LOW | tests/Whoops/Util/MiscTest.php | 24 | public function provideTranslateException() | CODE |
| LOW | tests/Whoops/Util/TemplateHelperTest.php | 57 | public function testEscapeButPreserveUris() | CODE |
| LOW | tests/Whoops/Util/TemplateHelperTest.php | 70 | public function testEscapeButPreserveUrisRejectsDangerousSchemes() | CODE |
| LOW | tests/Whoops/Util/TemplateHelperTest.php | 92 | public function testEscapeButPreserveUrisAllowsHttpAndHttpsSchemes() | CODE |
| LOW | tests/Whoops/Util/TemplateHelperTest.php | 155 | public function testRenderEscapesHeaderHtmlAttributes() | CODE |
| LOW | tests/Whoops/Util/TemplateHelperTest.php | 181 | public function testRenderEscapesFrameEditorHref() | CODE |
| LOW | tests/Whoops/Exception/FrameTest.php | 112 | public function testGetFileContentsWhenFrameIsNotRelatedToSpecificFile($fakeFilename) | CODE |
| LOW | tests/Whoops/Exception/FrameCollectionTest.php | 54 | private function getFrameCollectionInstance($frames = null) | CODE |
| LOW | tests/Whoops/Exception/FrameCollectionTest.php | 193 | public function testCollectionIsSerializable() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 67 | public function testReturnsCorrectExceptionName() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 79 | public function testExceptionIsStoredAndReturned() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 90 | public function testGetFramesReturnsCollection() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 101 | public function testGetFramesWithFiltersReturnsCollection() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 119 | public function testGetFramesWithFiltersReturnsEmptyCollection() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 151 | public function testNegativeHasPreviousException() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 162 | public function testGetPreviousExceptionsReturnsListOfExceptions() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 179 | public function testGetPreviousExceptionsReturnsEmptyListIfThereAreNoPreviousExceptions() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 191 | public function testGetPreviousExceptionMessages() | CODE |
| LOW | tests/Whoops/Exception/InspectorTest.php | 209 | public function testGetPreviousExceptionCodes() | CODE |
| LOW | src/Whoops/Handler/PlainTextHandler.php | 144 | public function addTraceFunctionArgsToOutput($addTraceFunctionArgsToOutput = null) | CODE |
| LOW | src/Whoops/Handler/PlainTextHandler.php | 165 | public function setTraceFunctionArgsOutputLimit($traceFunctionArgsOutputLimit) | CODE |
| LOW | src/Whoops/Handler/PlainTextHandler.php | 198 | public function getTraceFunctionArgsOutputLimit() | CODE |
| LOW | src/Whoops/Handler/XmlResponseHandler.php | 17 | class XmlResponseHandler extends Handler | CODE |
| LOW | src/Whoops/Handler/JsonResponseHandler.php | 16 | class JsonResponseHandler extends Handler | CODE |
| LOW | src/Whoops/Inspector/InspectorInterface.php | 29 | public function getPreviousExceptionMessages(); | CODE |
| LOW | src/Whoops/Inspector/InspectorInterface.php | 34 | public function getPreviousExceptionCodes(); | CODE |
| LOW | src/Whoops/Inspector/InspectorInterface.php | 54 | public function getPreviousExceptionInspector(); | CODE |
| LOW | src/Whoops/Exception/Formatter.php | 21 | public static function formatExceptionAsDataArray(InspectorInterface $inspector, $shouldAddTrace, array $frameFilter | CODE |
| LOW | src/Whoops/Exception/Inspector.php | 77 | public function getPreviousExceptionMessages() | CODE |
| LOW | src/Whoops/Exception/Inspector.php | 88 | public function getPreviousExceptionCodes() | CODE |
| LOW | src/Whoops/Exception/Inspector.php | 143 | public function getPreviousExceptionInspector() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/API Documentation.md | 61 | #=> Whoops\Run | COMMENT |
| LOW | docs/API Documentation.md | 81 | #=> bool | COMMENT |
| LOW | docs/API Documentation.md | 181 | // Returns the number of frames in the collection | COMMENT |
| LOW | docs/API Documentation.md | 221 | // within a class/instance. | COMMENT |
| LOW | docs/API Documentation.md | 241 | // given range of line numbers. i.e: Frame::getFileLines(0, 3) | COMMENT |
| LOW | docs/API Documentation.md | 341 | // Adds a key=>value table of arbitrary data, labeled by $label, to | COMMENT |
| LOW | docs/API Documentation.md | 361 | PrettyPageHandler::setPageTitle(string $title) | COMMENT |
| LOW | docs/API Documentation.md | 401 | // rest of the application. Useful if, for example, you integrate | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/Whoops/Handler/PrettyPageHandler.php | 189 | // @todo: Make this more robust | COMMENT |