Comments (6)
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.
@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.
@philsturgeon I can confirm this commit fixes the issue.
from fractal.
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.
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 PaginationFatalErrorException 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.
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)
- How to remove the 'self' link from a relationship links object when using the JsonApiSerializer HOT 2
- [JsonApiSerializer] A way to return requested realtionship without attributes and links HOT 2
- Filters on relationships HOT 4
- How to transform when Parent Child Relation in same Table HOT 1
- Sparse Fieldsets without calculations HOT 2
- Modernize like it's 1.0 HOT 3
- What a current state of this project? PHP8 support plans? HOT 3
- Scope class toArray() method takes too much time HOT 4
- Possible incorrect pagination output from JsonApiSerializer HOT 2
- Support 7.4
- How to create custom ArraySerializer with the result of meta pagination array inside the collection array HOT 2
- JSON structure changed between v0.19.2 and v0.20.0 HOT 13
- Please use SEMVER on this package! HOT 7
- Breaking change between 0.19.2 and 0.20.0 HOT 1
- Update version 0.19.2 -> 0.19.3
- How to set `includes` for specific `includeItem` in the code for transformer?
- How to leave `data` resource key only for root transformer? HOT 1
- [Suggestion] Use a container to fetch transformers HOT 1
- How to make output of nested array
- Scope.php::fireTransformer is unable to handle `null` $transformer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fractal.