j0k3r / graby

Graby helps you extract article content from web pages
MIT License
363 stars 73 forks source link

Call to undefined method Graby\Graby::setContentAsPrefetched() #287

Closed ezzdev closed 2 years ago

ezzdev commented 2 years ago

I am not sure why this method is not working

I wasnt able to find the method setContentAsPrefetched in source code

Can you help please

j0k3r commented 2 years ago

What version are you using?

ezzdev commented 2 years ago

"require": { "j0k3r/graby": "^1.20" }

j0k3r commented 2 years ago

Can you check your composer.lock instead?

ezzdev commented 2 years ago
{
            "name": "j0k3r/graby",
            "version": "1.20.1",
            "source": {
                "type": "git",
                "url": "https://github.com/j0k3r/graby.git",
                "reference": "c1fe00248ab7cbc2f58b6e98200d9c7d28285172"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/j0k3r/graby/zipball/c1fe00248ab7cbc2f58b6e98200d9c7d28285172",
                "reference": "c1fe00248ab7cbc2f58b6e98200d9c7d28285172",
                "shasum": ""
            },
j0k3r commented 2 years ago

Nothing changed on that version. Can you share the full stack trace of the error?

tcitworld commented 2 years ago

This method is available in 2.4.1, not 1.20.1 as shown by your composer.lock.

ezzdev commented 2 years ago

This method is available in 2.4.1, not 1.20.1 as shown by your composer.lock.

Exactly thank you issue solved