Skip to content

Commit

Permalink
Uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Nov 20, 2024
1 parent 6ec8bc3 commit 65e6caa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Type/Doctrine/Query/QueryResultTypeWalkerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ public function getTestData(): iterable
$this->constantArray([
[new ConstantStringType('minusInt'), $this->stringifies() ? new ConstantStringType('-1') : new ConstantIntegerType(-1)],
[new ConstantStringType('minusFloat'), $this->stringifies() ? $this->numericString() : new ConstantFloatType(-0.1)],
[new ConstantStringType('minusIntRange'), $this->stringifies() ? $this->numericString(true) : IntegerRangeType::fromInterval(null, 0)],
[new ConstantStringType('minusIntRange'), $this->stringifies() ? $this->numericString(true, true) : IntegerRangeType::fromInterval(null, 0)],
]),
'
SELECT -1 as minusInt,
Expand Down Expand Up @@ -1683,21 +1683,21 @@ private function stringifies(): bool
private function intOrStringified(): Type
{
return $this->stringifies()
? $this->numericString(true)
? $this->numericString(true, true)
: new IntegerType();
}

private function uintOrStringified(): Type
{
return $this->stringifies()
? $this->numericString(true)
? $this->numericString(true, true)
: $this->uint();
}

private function floatOrStringified(): Type
{
return $this->stringifies()
? $this->numericString()
? $this->numericString(false, true)
: new FloatType();
}

Expand Down

0 comments on commit 65e6caa

Please sign in to comment.