From cdb76e7115595c35780ede1251fc46095ef54efc Mon Sep 17 00:00:00 2001 From: odan Date: Thu, 13 Jun 2019 09:50:49 +0200 Subject: [PATCH] Update usage --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 58da5f9..36fc581 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ use Selective\ImageType\ImageTypeDetector; $file = new SplFileInfo('example.jpg'); $imageTypeDetector = new ImageTypeDetector(); -echo $imageTypeDetector->getImageTypeFromFile($file); // jpeg +echo $imageTypeDetector->getImageTypeFromFile($file)->toString(); // jpeg ``` ## Similar libraries @@ -45,4 +45,4 @@ echo $imageTypeDetector->getImageTypeFromFile($file); // jpeg ## License -* MIT \ No newline at end of file +* MIT