gearbox-solutions / eloquent-filemaker

A Model extension and Eloquent driver for Laravel connecting to FileMaker through the Data API
https://gearboxgo.com
MIT License
54 stars 16 forks source link

fix: FMBaseBuilder::portalData(): Argument #1 ($array) must be of typ… #57

Closed phpsa closed 1 year ago

phpsa commented 1 year ago

Fixes issue after updating from 1.0.9 to 1.1.1

TypeError: GearboxSolutions\EloquentFileMaker\Database\Query\FMBaseBuilder::portalData(): Argument #1 ($array) must be of type array, null given, called in /app/xxx-api/vendor/gearbox-solutions/eloquent-filemaker/src/Database/Eloquent/FMEloquentBuilder.php on line 175

/app/xxx-api/vendor/gearbox-solutions/eloquent-filemaker/src/Database/Query/FMBaseBuilder.php:673
/app/xxx-api/vendor/gearbox-solutions/eloquent-filemaker/src/Database/Eloquent/FMEloquentBuilder.php:175
/app/xxx-api/vendor/gearbox-solutions/eloquent-filemaker/src/Database/Eloquent/FMModel.php:303
/app/xxx-api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1131
...
Smef commented 1 year ago

Thanks! Our tests should have caught this, but they're not all automated yet and one was missed.

Smef commented 1 year ago

This has been released in 1.1.2.