Skip to content

refactor: Code cleanup Pt3#39

Merged
Ninerian merged 1 commit into
code-cleanup-pt2from
code-cleanup-pt3
Oct 29, 2025
Merged

refactor: Code cleanup Pt3#39
Ninerian merged 1 commit into
code-cleanup-pt2from
code-cleanup-pt3

Conversation

@Ninerian

Copy link
Copy Markdown
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 <noreply@anthropic.com>
@Ninerian
Ninerian requested review from a team, MrLeonix and PujaSingh7655 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.

1 participant