Skip to content

Commit

Permalink
Update schema.php
Browse files Browse the repository at this point in the history
fix: creation of dynamic property error in php8.2
  • Loading branch information
krovak authored and ikkez committed Feb 13, 2023
1 parent 69546a0 commit 1fc4cf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/db/sql/schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ public function addColumn($key,$args=NULL) {
$column=new Column($key,$this);
if ($args)
foreach ($args as $arg=>$val)
if (property_exists($column, $arg))
$column->{$arg}=$val;
// skip default pkey field
if (count($this->pkeys)==1 && in_array($key,$this->pkeys))
Expand Down

0 comments on commit 1fc4cf3

Please sign in to comment.