π Major Release - PHP 8.4+ & Modern Architecture
β¨ New Features
- API Endpoint: New
GenerateCommentActionto generate comment messages via REST API - Route Names: All routes now have named routes for better maintainability
π§ Improvements
- PHP Version: Upgraded to PHP ^8.4
- Strict Types: Added
declare(strict_types=1)to all PHP files - Constructor Property Promotion: All classes use modern PHP 8.4 syntax with
readonly - Strict Comparisons: All loose
==/!=replaced with strict===/!== - Removed
empty(): Replaced with explicit null/empty-string checks - Dependency Injection: Improved DI in
ProcessAggregatedEventsjob - Simplified ServiceProvider: Using
mergeConfigFrom()instead of manual scandir loop
π Bug Fixes
- Fixed ServiceProvider namespace (
CSlant\GithubProjectβCSlant\GitHubProject) - Fixed double
validatePayloadForComment()call inWebhookService - Fixed lang file copy-paste errors
- Removed redundant
Cache::forget()afterCache::pull() - Removed dead
array_mapidentity function inaggregateMessages()
π Security
- Removed stack trace/file/line leak in
GenerateCommentActionerror response
π§Ή Code Cleanup
- Removed empty
registerCommands()method - Removed empty
Constants/andHttp/directories - Fixed
provides()return type annotation - Cleaned up PHPStan baseline (removed overly broad wildcards)
- Net: -133 lines removed
π₯ Breaking Changes
- PHP
^8.4now required - Namespace corrected from
CSlant\GithubProjecttoCSlant\GitHubProject
π¦ Dependencies Updated
orchestra/testbench: ^10.0pestphp/pest: ^4.0nunomaduro/larastan: ^3.9phpstan/phpstan: ^2.0
Full Changelog: v1.2.0...v2.0.0