Skip to content

Conversation

@Ninerian
Copy link
Contributor

  • added code quality dependencies
  • raised phpstan level to 5 and fixed all errors
  • updated phpunit to 10

@Ninerian Ninerian requested a review from a team as a code owner October 29, 2025 13:52
@Ninerian Ninerian requested review from Magnet-js and MrLeonix and removed request for a team October 29, 2025 13:52
Ninerian and others added 12 commits October 29, 2025 15:09
- 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]>
Comment on lines +5 to +7
branches:
- 'main'
- '**/**'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the goal here? Why not just

Suggested change
branches:
- 'main'
- '**/**'
branches:
- '**'

Comment on lines +10 to +12
branches:
- 'main'
- '**/**'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

* @see \Staffbase\plugins\sdk\SSOToken::CLAIM_AUDIENCE
*/
const CLAIM_AUDIENCE = 'aud';
public const CLAIM_AUDIENCE = 'aud';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want to switch to public when it is already marked as deprecated? 🤔

$this->assertEquals($sessionId, session_id());
}

public function testDestroyOtherSession()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the plan for this empty test?

$session->destroySession($sessionHash);
}

public function testDestroyOwnSession()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the plan for this empty test?

# CodeSniffer
phpcs.xml

/vendor/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one is already covered by line 13

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd love to have this information rather in .github/copilot-instructions.md
It would be cool to have some general file where all LLMs are looking into.

Since Claude itself is not (yet) company wide approved. It might be helpful for you to keep the CLAUDE.md on your machine and link the .github/copilot-instructions.md file in it where all the information is moved to.

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.

3 participants