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