|
8 | 8 | use Mpyw\LaravelMySqlSystemVariableManager\Replacers\FloatReplacerInterface; |
9 | 9 | use Mpyw\LaravelMySqlSystemVariableManager\Replacers\IntegerReplacerInterface; |
10 | 10 | use Mpyw\LaravelMySqlSystemVariableManager\Replacers\StringReplacerInterface; |
11 | | -use Mpyw\LaravelMySqlSystemVariableManager\Value as BindingValue; |
12 | 11 | use Mpyw\LaravelPdoEmulationControl\EmulationController; |
13 | | -use Mpyw\Unclosure\Value; |
| 12 | +use Mpyw\Unclosure\Value as ValueEffector; |
14 | 13 | use PDO; |
15 | 14 | use Mpyw\LaravelMySqlSystemVariableManager\SystemVariableGrammar as Grammar; |
16 | 15 | use PDOStatement; |
@@ -55,7 +54,7 @@ public function assign(array $values) |
55 | 54 | protected function withEmulatedStatement(string $query, array $values = []) |
56 | 55 | { |
57 | 56 | foreach ($this->pdos as &$pdo) { |
58 | | - $pdo = Value::withCallback( |
| 57 | + $pdo = ValueEffector::withCallback( |
59 | 58 | $pdo, |
60 | 59 | Closure::fromCallable([$this, 'withEmulatedStatementFor']), |
61 | 60 | $query, |
@@ -91,7 +90,7 @@ protected static function withEmulatedStatementFor(PDO $pdo, string $query, arra |
91 | 90 | */ |
92 | 91 | protected static function withStatementFor(PDO $pdo, string $query, array $values): PDO |
93 | 92 | { |
94 | | - $expressions = array_map([BindingValue::class, 'wrap'], $values); |
| 93 | + $expressions = array_map([Value::class, 'wrap'], $values); |
95 | 94 | $original = static::selectOriginalVariablesForReplacer($pdo, $expressions); |
96 | 95 | $statement = $pdo->prepare($query); |
97 | 96 |
|
|
0 commit comments