Skip to content

Conversation

@Ninerian
Copy link
Contributor

  • raised phpstan level to 8 and fixed all issues

- Updated phpstan.neon.dist to level 8
- Added null checks for ReflectionClass::getConstructor() calls in test files
- Enhanced PluginSession to handle nullable instanceId parameter
- Used PHP 8+ null coalescing throw operator for clean error handling
- Improved null safety across test and source files

Key improvements:
- All ReflectionMethod calls now safely handle null returns
- deleteInstance method properly validates required instanceId parameter
- Modern PHP syntax for null safety with descriptive error messages
- No breaking changes to existing functionality

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@Ninerian Ninerian requested a review from a team as a code owner October 29, 2025 13:53
@Ninerian Ninerian changed the base branch from main to code-cleanup-pt2 October 29, 2025 13:54
@Ninerian Ninerian merged commit 1fa3c3c into code-cleanup-pt2 Oct 29, 2025
8 checks passed
@Ninerian Ninerian deleted the code-cleanup-pt3 branch October 29, 2025 13:57
@Ninerian Ninerian restored the code-cleanup-pt3 branch October 29, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants