Repository navigation
feat!: move to Laravel 12 and core-api 2.0 - #425
Merged
Merged
Conversation
Pins every diffIn* call as an explicit absolute or signed integer so results read the same on Carbon 2 and 3. Carbon 2 values are unchanged; tests pin direction and type at the priority sites.
Restate nullable on ->change() calls, which Laravel 11+ no longer preserves. Replace unsignedDecimal with decimal()->unsigned(), set DOUBLE(12,2) on routes in SQL since Blueprint::double() drops total and places, and check indexes through TableIndexes. Fresh MySQL schema is unchanged on Laravel 10.
Bumps the Laravel 12 dependency set and fixes the test fakes the new contracts break: Filesystem fakes, array() stubs, Grammar constructor, cknow/laravel-money currency config, Firebase client errors and loadMissing() needing a connection.
…il advisory ignore
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the server package to Laravel 12 for the next minor release, v0.7.0, into
release/v0.7.0. It goes with fleetbase/fleetbaserelease/v0.8.0.What changed
fleetbase/core-api^2.0, replacing the old range.illuminate/*andlaravel/framework^12.69, PHP^8.2, plus the dependency majors that go with core-api 2.0 where this package uses them: fcm^5.1, apn^5.5, twilio channel^4.1, milon/barcode^13, geocoder-laravel^13, cknow/laravel-money^8, Sanctum^4.^3(PHPUnit 11), Testbench^10, collision^8, var-dumper^7, PHPStan^2/ Larastan^3where used.composer auditon this branch reports no advisories, and there is nopolicy.advisoriesoraudit.ignore. The one remaining audit note is the abandonedhammerstone/fast-paginate, which core-api requires.new Grammar()now takes a connection: UtilsContractsTest, TrackingNumberTraitContractsTest and ModelAccessorContractsTest pass an in-memory SQLite connection.TypeErrorfromtoFcm(null)(fcm channel 5 types its argument), in 8 files.path(),putFile()andputFileAs()(place import, order photo capture, customer helper tests).scripts/pest-bootstrap.phpsets the ISO currency list for cknow/laravel-money 8 and addsfleetopsTestConnectionResolver(), because Laravel 12'sloadMissing()always builds a query. OrderCancelReasonTest, CommandContractsTest, TelematicControllerContractsTest and EventContractsTest use it.Prep work merged in
inputArrayrename), already merged intorelease/v0.7.0diffInchanges (chore/carbon3-diffin, carried here; not opened separately)The branch head is the complete Laravel 12 state, ready to link locally.
Depends on, in merge order
release/v0.7.0→main.CI stays red until those are tagged, because Composer can't resolve
fleetbase/core-api ^2.0from Packagist yet. The fork packages core-api needs are released: laravel-mysql-spatial 2.0.0, twilio 6.0.0 and countries 0.9.0.Tested locally
Against core-api#333 (
feat/laravel-12) through a Composer path repository, on PHP 8.2 and Laravel 12.71.composer audit: no advisories.Not run
Do not merge before core-api v2.0.0 is tagged.