We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24f67ea commit 186b7efCopy full SHA for 186b7ef
1 file changed
system/Database/BaseConnection.php
@@ -336,7 +336,9 @@ abstract class BaseConnection implements ConnectionInterface
336
public function __construct(array $params)
337
{
338
foreach ($params as $key => $value) {
339
- $this->{$key} = $value;
+ if (property_exists($this, $key)) {
340
+ $this->{$key} = $value;
341
+ }
342
}
343
344
$queryClass = str_replace('Connection', 'Query', static::class);
0 commit comments