Skip to content

fix(ci): resolve PHP 8.1 and PostgreSQL compatibility issues#48

Merged
benkhalife merged 1 commit into
mainfrom
fix/ci-php81-pgsql-compat
Jun 11, 2026
Merged

fix(ci): resolve PHP 8.1 and PostgreSQL compatibility issues#48
benkhalife merged 1 commit into
mainfrom
fix/ci-php81-pgsql-compat

Conversation

@benkhalife

Copy link
Copy Markdown
Member
  • Connection::handleException(): false → bool (false as standalone return type requires PHP 8.2+; union type false|X still works on 8.1)

  • IntegrationTestCase: add datetimeType() helper (TIMESTAMP for pgsql, DATETIME for mysql/sqlite) and boolDefault(bool) helper (TRUE/FALSE for pgsql, 1/0 for others)

  • ModelCrudTest, QueryTest, SoftDeleteTest: replace hardcoded DATETIME and DEFAULT 1 with the new cross-driver helpers

Fixes #47

- Connection::handleException(): false → bool (false as standalone
  return type requires PHP 8.2+; union type false|X still works on 8.1)

- IntegrationTestCase: add datetimeType() helper (TIMESTAMP for pgsql,
  DATETIME for mysql/sqlite) and boolDefault(bool) helper (TRUE/FALSE
  for pgsql, 1/0 for others)

- ModelCrudTest, QueryTest, SoftDeleteTest: replace hardcoded DATETIME
  and DEFAULT 1 with the new cross-driver helpers

Fixes #47
@benkhalife benkhalife merged commit 2b9be59 into main Jun 11, 2026
9 of 11 checks passed
@benkhalife benkhalife added the bug Something isn't working label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI failures on PHP 8.1 and PostgreSQL: false standalone type + DDL incompatibilities

1 participant