Repository navigation
Laravel Batch v2.5.1
A bug-fix release for v2.5.0. All v2.5.0 users should upgrade, especially on PHP 7.
What's Changed
Fixed
- PHP 7.1 – 7.4: v2.5.0 failed with
syntax error, unexpected '|'. Nullable
parameters are now declared as?string, which works on PHP 7.1 through 8.5
and still avoids the PHP 8.4 deprecation notice. - MySQL / MariaDB:
updated_atis updated again for rows that change, in
update(),updateWithTwoIndex()andupdateMultipleCondition(). updated_atis now updated when a column changes fromNULLto a value.- An explicit
updated_atpassed for one row is kept when other rows in the
same call get the automatic timestamp. updateWithTwoIndex()writes values the same way as v2.4.1 again: leading
zeros are kept ('0912…'),falseis stored as0, and string values work
on PostgreSQL.updateMultipleCondition()no longer fails with
Method Illuminate\Support\Stringable::toString does not existon older
Laravel versions (#118).
updated_at is still only touched when a value actually changes (#120), and
now this works on every database.
Upgrading
No code changes are needed:
composer update mavinoo/laravel-batch
Tested on PHP 7.1 – 8.5, with Laravel 8 and 11, on MySQL/MariaDB, PostgreSQL and SQLite.
Full Changelog: v2.5.0...v2.5.1