Skip to content

refactor(php): replace strpos and switch with modern idioms#13125

Open
ChristophWurst wants to merge 1 commit into
mainfrom
refactor/string-idioms
Open

refactor(php): replace strpos and switch with modern idioms#13125
ChristophWurst wants to merge 1 commit into
mainfrom
refactor/string-idioms

Conversation

@ChristophWurst

Copy link
Copy Markdown
Member
  • Replace mb_strpos() !== false with str_contains() in GroupsIntegration (email addresses are ASCII so the multibyte variant is unnecessary)
  • Convert switch on FlagExpression operator to match in MessageMapper
  • Convert switch on IMAP error code to nested match in CouldNotConnectException

Assisted-by: ClaudeCode:claude-sonnet-4-6

Ref #13077

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

- Replace mb_strpos() !== false with str_contains() in GroupsIntegration
  (email addresses are ASCII so the multibyte variant is unnecessary)
- Convert switch on FlagExpression operator to match in MessageMapper
- Convert switch on IMAP error code to nested match in CouldNotConnectException

Assisted-by: ClaudeCode:claude-sonnet-4-6
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant