| @@ 1623-1629 (lines=7) @@ | ||
| 1620 | $bindIndex = 1; |
|
| 1621 | foreach ($params as $value) { |
|
| 1622 | $typeIndex = $bindIndex + $typeOffset; |
|
| 1623 | if (isset($types[$typeIndex])) { |
|
| 1624 | $type = $types[$typeIndex]; |
|
| 1625 | list($value,) = $this->getBindingInfo($value, $type); |
|
| 1626 | $resolvedParams[$bindIndex] = $value; |
|
| 1627 | } else { |
|
| 1628 | $resolvedParams[$bindIndex] = $value; |
|
| 1629 | } |
|
| 1630 | ++$bindIndex; |
|
| 1631 | } |
|
| 1632 | } else { |
|
| @@ 1635-1641 (lines=7) @@ | ||
| 1632 | } else { |
|
| 1633 | // Named parameters |
|
| 1634 | foreach ($params as $name => $value) { |
|
| 1635 | if (isset($types[$name])) { |
|
| 1636 | $type = $types[$name]; |
|
| 1637 | list($value,) = $this->getBindingInfo($value, $type); |
|
| 1638 | $resolvedParams[$name] = $value; |
|
| 1639 | } else { |
|
| 1640 | $resolvedParams[$name] = $value; |
|
| 1641 | } |
|
| 1642 | } |
|
| 1643 | } |
|
| 1644 | ||