getherbert / herbert

The WordPress Plugin Framework:
http://getherbert.com/
634 stars 95 forks source link

Fatal error: Declaration ofPaginator::render() must be compatible with Paginator::render($view = NULL) to Fatal error: Declaration of Paginator::render() must be compatible with Paginator::render($view = NULL) #166

Closed giwrgos88 closed 7 years ago

giwrgos88 commented 7 years ago

I'm getting the following error message when I'm trying to use the Illuminate\Pagination on two plugins that I developed with herbert. If i disable the one of the two the active plugin starts working again. Does anyone else had the same issue?

where is my code

$results = $this->model
->with('seller')
->with('buyer')
->with('author')
->with(array('property.meta' => function ($query) {
    $query->where('meta_key', 'ref-code');
}))
->orderBy('created_at', 'DESC')->paginate(Helper::get('paginate'), ['*'], 'paged');

The error

Fatal error: Declaration of Illuminate\Pagination\Paginator::render(Illuminate\Contracts\Pagination\Presenter $presenter = NULL) must be compatible with Illuminate\Contracts\Pagination\Paginator::render($view = NULL) in /home/test/public_html/wp-content/plugins/test-plugin/vendor/illuminate/pagination/Paginator.php on line 15