DDC-1684: [GH-297] by peterjmit: Cast Doctrine\ORM\Query\Expr\Comparison::$_rightExpr to integer when false to fix DDC-1683 #2116

Closed
opened 2026-01-22 13:41:34 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 6, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of peterjmit:

Url: https://github.com/doctrine/doctrine2/pull/297

Message:

Hi

I posted the following bug report http://www.doctrine-project.org/jira/browse/DDC-1683 related to casting false values to strings.

public function **construct($leftExpr, $operator, $rightExpr)
{
    $this->_leftExpr  = $leftExpr;
    $this->_operator  = $operator;
    $this->_rightExpr = $rightExpr === false ? (int) $rightExpr : $rightExpr;
}
Originally created by @doctrinebot on GitHub (Mar 6, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: This issue is created automatically through a Github pull request on behalf of peterjmit: Url: https://github.com/doctrine/doctrine2/pull/297 Message: Hi I posted the following bug report http://www.doctrine-project.org/jira/browse/[DDC-1683](http://www.doctrine-project.org/jira/browse/DDC-1683) related to casting false values to strings. ``` php public function **construct($leftExpr, $operator, $rightExpr) { $this->_leftExpr = $leftExpr; $this->_operator = $operator; $this->_rightExpr = $rightExpr === false ? (int) $rightExpr : $rightExpr; } ```
admin added the Bug label 2026-01-22 13:41:34 +01:00
admin closed this issue 2026-01-22 13:41:35 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 14, 2012):

Comment created by @beberlei:

Duplicate of DDC-1683

@doctrinebot commented on GitHub (Mar 14, 2012): Comment created by @beberlei: Duplicate of [DDC-1683](http://www.doctrine-project.org/jira/browse/DDC-1683)
Author
Owner

@doctrinebot commented on GitHub (Mar 14, 2012):

Issue was closed with resolution "Duplicate"

@doctrinebot commented on GitHub (Mar 14, 2012): Issue was closed with resolution "Duplicate"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2116