Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Call to a member function toHex() #41

Open
KarlsDad opened this issue Aug 27, 2018 · 1 comment
Open

Uncaught Error: Call to a member function toHex() #41

KarlsDad opened this issue Aug 27, 2018 · 1 comment

Comments

@KarlsDad
Copy link

KarlsDad commented Aug 27, 2018

include('vendor/autoload.php');

use Jenssegers\ImageHash\ImageHash;
use Jenssegers\ImageHash\Implementations\DifferenceHash;

$hasher = new ImageHash(new DifferenceHash());
$hash = $hasher->hash('img/forest-copyright.jpg');

echo $hash->toHex();` <----- Fatal error: Uncaught Error: Call to a member function toHex() on string ...

Why?

@AnonymousArthur
Copy link

I have this issue as well. Seems like the ->hash() method returns a hex string rather than an object. I think the doc might be out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants