GithubHelp home page GithubHelp logo

Symfony \ Component \ Debug \ Exception \ FatalErrorException Can't inherit abstract function League\Fractal\Pagination\PaginatorInterface::count() (previously declared abstract in Countable) about fractal HOT 6 CLOSED

thephpleague avatar thephpleague commented on June 30, 2024
Symfony \ Component \ Debug \ Exception \ FatalErrorException Can't inherit abstract function League\Fractal\Pagination\PaginatorInterface::count() (previously declared abstract in Countable)

from fractal.

Comments (6)

bencorlett avatar bencorlett commented on June 30, 2024

It's provably a php bug. How do you use 5.3.3? :P

But really, anything pre 5.3.7 is so buggy

Sent from my iPad
Please excuse my brevity

On 28 Jan 2014, at 7:50 pm, Jelmer de Wit [email protected] wrote:

When using the Paginator on a Fractal collection, I get the following eror:

Symfony \ Component \ Debug \ Exception \ FatalErrorException
Can't inherit abstract function League\Fractal\Pagination\PaginatorInterface::count() (previously declared abstract in Countable)

On my server I run PHP 5.3.3. On my local machine I run PHP 5.4.21, no problem there. Commenting out line 24 in League/Fractal/Pagination/PaginatorInterface.php;

public function count();
prevents the error.


Reply to this email directly or view it on GitHub.

from fractal.

philsturgeon avatar philsturgeon commented on June 30, 2024

@jdwit Can you see if this commit fixed it? It should do, but this might be one where unit-tests don't completely have my back.

from fractal.

jdwit avatar jdwit commented on June 30, 2024

@philsturgeon I can confirm this commit fixes the issue.

from fractal.

vigneshmuthukrishnan avatar vigneshmuthukrishnan commented on June 30, 2024

Hi friends i have some problems
for laravel Pagination

FatalErrorException in C:\xampp\htdocs\new_laravel\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 146:
Cannot instantiate interface Illuminate\Contracts\Pagination\Paginator

from fractal.

bencorlett avatar bencorlett commented on June 30, 2024

Looks like you're having issues with dependency injection within your Laravel environment and out of the scope of this package

Sent from my iPhone

Please excuse my brevity

On 4 Oct. 2016, at 9:36 pm, vigneshmuthukrishnan [email protected] wrote:

Hi friends i have some problems
for laravel Pagination

FatalErrorException in C:\xampp\htdocs\new_laravel\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 146:
Cannot instantiate interface Illuminate\Contracts\Pagination\Paginator


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from fractal.

vigneshmuthukrishnan avatar vigneshmuthukrishnan commented on June 30, 2024

Thank you for information @bencorlett and I clear my issues.
composer update and change my controller code
Now pagination is working ...,

from fractal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.