Skip to content

Conversation

@kamil-zacek
Copy link
Contributor

Optimization for stringNotEmpty - use strict comparator ($value === '') instead of $value == ''.

Copilot AI review requested due to automatic review settings January 8, 2026 10:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes the stringNotEmpty method by replacing the loose comparison operator (notEq using ==) with a strict comparison operator (notSame using ===) when checking if a string is empty.

Key Changes:

  • Replace static::notEq($value, '', $message) with static::notSame($value, '', $message) in the stringNotEmpty method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shadowhand shadowhand merged commit de8474e into webmozarts:master Jan 8, 2026
15 checks passed
@shadowhand
Copy link
Collaborator

Thank you!

shadowhand added a commit that referenced this pull request Jan 8, 2026
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