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