We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91710ba commit 1334e61Copy full SHA for 1334e61
src/Builder.php
@@ -2,6 +2,8 @@
2
3
namespace ProAI\SuperMigrations;
4
5
+use BadMethodCallException;
6
+
7
class Builder
8
{
9
/**
@@ -79,7 +81,11 @@ public function unlock()
79
81
*/
80
82
public function __call($method, $parameters)
83
- if (!$this->lock && in_array($method, $this->passthru)) {
84
+ if (! in_array($method, $this->passthru)) {
85
+ throw new BadMethodCallException("Method [$method] does not exist.");
86
+ }
87
88
+ if (! $this->lock) {
89
array_unshift($parameters , $this->table);
90
91
return call_user_func_array([$this->schema, $method], $parameters);
0 commit comments