Skip to content

Conversation

@Blurazzle
Copy link
Contributor

Pull Request Description:
This PR fixes a few missed spots in the PHP 8.4 compatibility update by properly supporting Odbc\Connection.

Changes:

  • Updated function docblock to include Odbc\Connection.
  • Fixed type-checking logic to recognize Odbc\Connection.
  • Adjusted ODBC transport handling to ensure compatibility.

- Added support for running unit tests using SQLite by introducing `mockDb2UsingSqlite` config option.
- Refactored DSN handling with a `buildDsn` method for better maintainability.
- Fixed issues with ODBC connection handling, improving compatibility with PHP 8.4.
- Updated tests to dynamically determine the DSN based on the configuration.

This makes it easier to run tests without an IBM i system and allows for automated testing across multiple PHP versions.
Updated the `$databaseNameOrResource` parameter to support `Odbc\Connection`, expanding compatibility for database connections.
@NattyNarwhal NattyNarwhal merged commit 4ffeae6 into zendtech:master Mar 31, 2025
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