sad-spirit / pg-builder

Query builder for Postgres backed by SQL parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use features of PHP 7.2

sad-spirit opened this issue · comments

  • Change read-only arrays to constants (e.g. Lexer::$keywords)
  • Some methods that accept arrays can accept (...$stuff) (e.g. new QualifiedName('foo', 'bar') rather than new QualifiedName(['foo', 'bar']))
  • Use traits (e.g. several leaf Nodes share the same setParentNode() implementation)
  • Binary numbers for Token constants

And the obvious: strict_types, scalar type hints, types for return values