agentejo / mongo-lite

Schemaless database on top of SQLite
160 stars 18 forks source link

create_function deprecated in php 7.2 #17

Open stephanedemotte opened 6 years ago

stephanedemotte commented 6 years ago

create_function in Database.php on line 82 deprecated in php 7.2

I try to use anomymous function, but i suck 🗡

:: edit

            $this->document_criterias[$id] = function($document) use ($criteria) {
              $str = UtilArrayQuery::buildCondition($criteria);
              return eval("return $str;");
            };

quick fix :)