Skip to content

ext/session: Remove redundant parentheses in session tests - #23609

Open
kamil-tekiela wants to merge 1 commit into
php:masterfrom
kamil-tekiela:Remove-redundant-parentheses-in-session
Open

ext/session: Remove redundant parentheses in session tests#23609
kamil-tekiela wants to merge 1 commit into
php:masterfrom
kamil-tekiela:Remove-redundant-parentheses-in-session

Conversation

@kamil-tekiela

Copy link
Copy Markdown
Member

No description provided.

@kamil-tekiela
kamil-tekiela force-pushed the Remove-redundant-parentheses-in-session branch from 8828c63 to e7b867b Compare September 7, 2026 17:48
@kamil-tekiela

Copy link
Copy Markdown
Member Author

Dropped session_id_error3.phpt from the PR because my editor kept changing the invisible characters and I can't be bothered fighting it.

@jorgsowa

jorgsowa commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

I am not sure I understand the purpose. What does it improve?

@kamil-tekiela

Copy link
Copy Markdown
Member Author

I am not sure I understand the purpose. What does it improve?

Users tend to get confused when faced with unnecessary parentheses, e.g. when concatenation is involved. Since these lines are not part of the tests but of the SKIPIF, we don't need to be concerned about this breaking the tests. It's just a stylistic change to make it easier for users to visually parse the code.

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.

2 participants