Skip to content

Psalm to phpstan#417

Merged
tuj merged 5 commits into
release/3.0.0from
feature/psalm-to-phpstan
Apr 30, 2026
Merged

Psalm to phpstan#417
tuj merged 5 commits into
release/3.0.0from
feature/psalm-to-phpstan

Conversation

@tuj

@tuj tuj commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Link to ticket

https://leantime.itkdev.dk/#/tickets/showTicket/7329

Description

Changed code analysis from Psalm to PHPStan.

Regarding change to src/Controller/Api/AuthOidcController.php see https://symfony.com/doc/current/session.html#basic-usage. This change should be manually tested after deploy.

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@tuj tuj added this to the 3.0.0 milestone Apr 29, 2026
@tuj
tuj requested a review from turegjorup April 29, 2026 13:32
@tuj tuj self-assigned this Apr 29, 2026
@tuj tuj added the enhancement New feature or request label Apr 29, 2026
turegjorup and others added 2 commits April 30, 2026 11:52
Locks down that getUrls() persists oauth2provider/oauth2state/oauth2nonce
on the request session after the switch from autowired SessionInterface
to Request::getSession().

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
preg_replace can return null on runtime PCRE errors (backtrack/recursion
limits, /u with bad UTF-8) even after preg_match succeeded. The previous
casts silently turned that into an empty title, letting an event through
with no filter applied. The title filter is a correctness boundary, so on
PCRE error the event is now omitted with an error log instead.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

@turegjorup turegjorup left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Added two commits to handle review issues.

@tuj
tuj merged commit fb6b1b2 into release/3.0.0 Apr 30, 2026
17 checks passed
@tuj
tuj deleted the feature/psalm-to-phpstan branch April 30, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants