This line throws exception:
| if ($keys[$row['id']]['foreign'][0] == null) { |
...because my sqlite (in php 8) return NULL in column 'to' in results from PRAGMA foreign_key_list(tablename)
Another columns has correct data.
This is simple fix:
if ($keys[$row['id']]['foreign'] //<== check if equal null && $keys[$row['id']]['foreign'][0] == null) { $keys[$row['id']]['foreign'] = null; }