Skip to content

Conversation

@Ninerian
Copy link
Contributor

  • raised phpstan to level 7 and fixed all issues

@Ninerian Ninerian requested a review from a team as a code owner October 29, 2025 13:53
@Ninerian Ninerian requested review from m-seidel and staffmariusz and removed request for a team October 29, 2025 13:53
Ninerian and others added 2 commits October 29, 2025 14:56
- Updated phpstan.neon.dist to level 4
- Removed unused expressions in PluginSessionTest
- Fixed always-true ternary in SSODataTest
- Refined assertion in SSOTokenTest to avoid redundant type check
- Removed unreachable code after markTestSkipped statements
- Added proper assertions to make mock object usage meaningful

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

Co-Authored-By: Claude <[email protected]>
- Updated phpstan.neon.dist to level 5
- Fixed type parameter in HasInstanceId::hasInstanceId() method from Plain to UnencryptedToken
- Removed unused Plain token import
- Aligns with lcobucci/jwt library token type hierarchy

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

Co-Authored-By: Claude <[email protected]>
Ninerian and others added 3 commits October 29, 2025 14:59
- Updated phpstan.neon.dist to level 4
- Removed unused expressions in PluginSessionTest
- Fixed always-true ternary in SSODataTest
- Refined assertion in SSOTokenTest to avoid redundant type check
- Removed unreachable code after markTestSkipped statements
- Added proper assertions to make mock object usage meaningful

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

Co-Authored-By: Claude <[email protected]>
- Updated phpstan.neon.dist to level 6
- Added comprehensive array type annotations (array<string,mixed>)
- Added missing return type declarations for all methods
- Added missing property type declarations
- Fixed PHPUnit mock template type resolution
- Added proper DocBlock annotations for complex types
- Removed unused properties
- Applied fixes across src/ and test/ directories

Major improvements:
- AbstractToken.php: array types and return types
- SSOData traits: comprehensive type annotations
- Test classes: complete type coverage and mock annotations

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

Co-Authored-By: Claude <[email protected]>
- Updated phpstan.neon.dist to level 7
- Added non-empty-string validation for JWT library methods
- Enhanced AbstractToken with proper string validation for claim names and keys
- Fixed SSOToken and SSOTokenGenerator with empty string checks
- Improved SessionHandlerTrait type handling for session_id() return values
- Added proper class-string annotations in test files
- Maintained backward compatibility while ensuring type safety

Key improvements:
- hasClaim/getClaim methods validate non-empty claim names
- Key handling methods validate non-empty PEM strings and file paths
- Session handling properly manages string|false vs string|null types
- All string parameters validated before passing to strict library functions

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

Co-Authored-By: Claude <[email protected]>
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