Repository navigation
Conversation
test: adapt HtmlRenderer test to PHP 8.6 error message PHP 8.6 no longer includes the file name in the `file()` warning prefix. Psalm does not support PHP 8.6 yet, so the static analysis matrix stays at 8.5. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Psalm found errors in other files |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #192 +/- ##
=========================================
Coverage 87.18% 87.18%
Complexity 225 225
=========================================
Files 19 19
Lines 710 710
=========================================
Hits 619 619
Misses 91 91 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #192 +/- ##
=========================================
Coverage 87.18% 87.18%
Complexity 225 225
=========================================
Files 19 19
Lines 710 710
=========================================
Hits 619 619
Misses 91 91 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
chore: fix Psalm 7 issues Psalm 7 enables taint analysis, which found that the cURL block in `development.php` printed the command (built from the request or an exception message) without escaping. The other reports are false positives: `ReflectionClass` received an object, the template closure reads its arguments via `func_get_arg()` on purpose, and `ErrorHandler` echoes already rendered output. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Psalm didn’t find any errors! |
1 similar comment
|
Psalm didn’t find any errors! |
fix: escape cURL command in the development error page The bridge ships its own copy of the development template, so the upstream XSS fix (yiisoft/error-handler#192) has to be ported by hand. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewer's GuideImplementationReplace ReflectionClass with ReflectionObject for throwable descriptions and suppress Psalm 7 false positives around rendered output and template arguments.
UIEscape rendered cURL commands in both the textarea and clipboard attribute to prevent unescaped HTML output.
ConfigurationAdd PHP 8.6 to the build and dependency-analysis matrices, extend the Composer PHP constraint, and update the Psalm constraint for Psalm 7.
DocumentationDocument PHP 8.6 support in the requirements and changelog.
TestsMake the renderer warning assertion account for PHP 8.6’s changed file() warning text.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Psalm didn’t find any errors! |
3 similar comments
|
Psalm didn’t find any errors! |
|
Psalm didn’t find any errors! |
|
Psalm didn’t find any errors! |
|
Psalm didn’t find any errors! |
3 similar comments
|
Psalm didn’t find any errors! |
|
Psalm didn’t find any errors! |
|
Psalm didn’t find any errors! |
composer.jsonand adds 8.6 to the build and dependency analyser matrices.file()warning prefix (file(): Failed to open stream…instead offile(not-exist): …), so theHtmlRenderertest now expects a version-specific message; renderer behaviour is unchanged.^6.21 || ^7.20. Psalm 7 runs taint analysis and found that the cURL block of the HTML debug page printed the command (built from the request or an exception message) unescaped; it is now escaped like the throwable block next to it.ReflectionClassis replaced byReflectionObject(Psalm took the object for a class-name string), and two statement-level suppressions cover the template closure that reads its arguments viafunc_get_arg()and theechoof already rendered output inErrorHandler.static.ymlstays at 8.5; dev dependencies on 8.6 install only with--ignore-platform-req=php.Summary by Sourcery
Add PHP 8.6 compatibility while securing cURL debug output and maintaining static-analysis support.
New Features:
Bug Fixes:
Enhancements:
CI:
Documentation:
Tests: