diff --git a/src/PhantomInstaller/Installer.php b/src/PhantomInstaller/Installer.php index 495e4fb..003a82d 100644 --- a/src/PhantomInstaller/Installer.php +++ b/src/PhantomInstaller/Installer.php @@ -463,7 +463,7 @@ public static function getCdnUrl($version) $url = strtolower($url); // add version to URL when using "github.com/medium/phantomjs" - if(strpos('github.com/medium/phantomjs', $url) !== false) { + if(strpos($url, 'github.com/medium/phantomjs') !== false) { return 'https://github.com/medium/phantomjs/releases/download/v'.$version.'/'; }