Skip to content

Conversation

@davebarnwell
Copy link
Owner

Summary

  • update requirements/support notes for PHP 8.3+ and DB drivers
  • clarify fetchOneWhere/getById nullable behavior
  • add phpstan command and refresh examples/typos

Testing

  • not run (docs only)

Copilot AI review requested due to automatic review settings January 30, 2026 22:30
@davebarnwell
Copy link
Owner Author

@codex review

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refreshes the README documentation to reflect current functionality and improve clarity. The changes include updating system requirements (PHP 8.3+, database driver support), adding the phpstan command for static analysis, clarifying nullable return values for getById() and fetchOneWhere(), and fixing various typos throughout.

Changes:

  • Updated requirements section to specify PHP 8.3+ and clarify database driver support (MySQL/MariaDB, PostgreSQL tested; SQLite supported but not tested)
  • Added phpstan static analysis command to testing section
  • Clarified nullable behavior: getById() and fetchOneWhere() return null when no records are found
  • Fixed multiple typos: "Catgory" → "Category", "categoies" → "categories", "Arbitary" → "Arbitrary"
  • Improved code formatting with proper markdown code blocks and consistent spacing in examples

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cbb584322b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}
* PHP >= 8.3
* PDO with MySQL/MariaDB or PostgreSQL drivers
* SQLite is supported in code paths but not covered by tests

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove unsupported SQLite support claim

The README now states SQLite is supported, but Model::insert() builds INSERT INTO ... SET ... for all non-PostgreSQL drivers; that syntax is MySQL-specific and will fail on SQLite as soon as you insert a row with any column values. This means users trying SQLite will hit SQL errors during normal inserts, so the documentation is misleading unless the insert path is updated to use SQLite-compatible syntax.

Useful? React with 👍 / 👎.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codex fix

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davebarnwell davebarnwell merged commit af96d07 into master Jan 30, 2026
4 checks passed
@davebarnwell davebarnwell deleted the docs/refresh-readme branch January 30, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants