laravel-ardent / ardent

Self-validating, secure and smart models for Laravel's Eloquent ORM
BSD 3-Clause "New" or "Revised" License
1.39k stars 211 forks source link

Method declaration incompatibility - morphTo, Laravel 5.6.18 #311

Closed dobrebydlo closed 6 years ago

dobrebydlo commented 6 years ago

PHP Warning: Declaration of LaravelArdent\Ardent\Ardent::morphTo($name = NULL, $type = NULL, $id = NULL) should be compatible with Illuminate\Database\Eloquent\Model::morphTo($name = NULL, $type = NULL, $id = NULL, $ownerKey = NULL) in /.../vendor/laravelbook/ardent/src/Ardent/Ardent.php on line 25

exupero commented 6 years ago

I had to revert to Laravel 5.5.28 before this error disappeared, so it appears to be a problem with Laravel 5.6 in general.

spyp commented 6 years ago

its fixed right now with version 3.5