Releases: dg/dibi
Releases · dg/dibi
Released version 5.1.1
A quality-focused release that hardens dibi's type system and squashes a couple of real-world bugs.
🐛 Bug Fixes
- PostgreSQL – fixed a type error when passing
nullas the error code tocreateException()(#473) - PHP 8.5 compatibility –
Row::getIterator()now properly casts to array, andResult::normalize()handlesnullcolumn types without triggering deprecation warnings (#467) - Stricter null checking across
Connection,DateTime, andResult– replaced loose?:with??to avoid swallowing legitimate falsy values like0
♻️ Code Refactoring
- Comprehensive native type improvements – added
mixed,void,never, and union types (int|string) to method signatures across drivers, interfaces, and core classes - Callable properties normalized to
\ClosureinHashMapandResult, making the internal type system more predictable - Switched to singleline
declare(strict_types=1)statements across all source and test files
Released version 5.1.0
- requires PHP 8.2
- uses PHP 8.2 features
- supports PHP 8.5
- readonly & promoted properties
- optimized global function calls
- removed support for SQLServer < 2012, PostgreSQL < 9.3
Released version 5.0.2
Released version 5.0.1
- added DibiExtension3
- PostgreReflector: detect IDENTITY columns as autoincrement
- PostgreReflector: fix autoincrement column detection
- SqliteDriver: disables exceptions (is enabled since PHP 8.3)
- used PhpStorm Language attribute
- fix:
PDO::errorInfo()can return NULL as a code, but Exception does not accept NULL code - Fluent:
execute()has conditional return type
Released version 5.0.0
- requires PHP 8.0
- added object translators (#420)
- added PHP 8 typehints
- removed Dibi\Strict
Released version 4.2.8
- drivers: removed auto-free feature
Released version 4.2.7
Released version 4.2.6
- Translator: convert BackedEnum to scalar
MySqliDriver::getResource()fixed access to resource being closed prior to the call in PHP 8 (#410)- coding style
Released version 4.2.5
- support for PHP 8.1
- Date 0000-01-01 is valid #402
- Profiler is not used in CLI mode
Helpers::detectType(): detect PostgreSQL range types as Type::TEXT- PostgreReflector: fix reflection of matview columns on PostgreSQL 12+