Closed yamadashy closed 1 month ago
The pull request introduces several changes across multiple files, primarily focusing on updating PHP version specifications in workflow configurations, modifying the README to enhance image visibility, and refining parameters in configuration files. Additionally, new functionality is added to the FriendlyErrorFormatter
class to summarize error identifiers, improving the output format and detail of error reporting.
File | Change Summary |
---|---|
.github/workflows/tests.yml |
Updated PHP version from 8.2 to 8.3 in job 1; expanded PHP version matrix in job 2 to include 8.3 . |
README.md |
Removed a table of "Before" and "After" images; replaced with a single "After" image set to 100% width. |
extension.neon |
Adjusted lineBefore and lineAfter parameters for friendly from 3 to 2 . |
phpstan.neon.dist |
Updated PHPStan analysis level from 8 to 9 ; modified lineBefore and lineAfter values for the friendly section from 3 to 2 . |
src/FriendlyErrorFormatter.php |
Added writeGroupedErrorsSummary method to summarize error identifiers; updated formatErrors to include this summary; modified writeFileSpecificErrors for better detail; declared return type of getFormattedTip as ?string . |
sequenceDiagram
participant User
participant FriendlyErrorFormatter
participant AnalysisResult
participant Output
User->>FriendlyErrorFormatter: Request error formatting
FriendlyErrorFormatter->>AnalysisResult: Retrieve error identifiers
FriendlyErrorFormatter->>FriendlyErrorFormatter: Call writeGroupedErrorsSummary
FriendlyErrorFormatter->>Output: Format and display summary
FriendlyErrorFormatter->>Output: Format file specific errors
Output-->>User: Display formatted errors
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores