diff --git a/src/Capture.php b/src/Capture.php index e1da84b1..6bfc6841 100644 --- a/src/Capture.php +++ b/src/Capture.php @@ -518,7 +518,7 @@ public function setDelay($delay) */ public function includeJs($script) { - if (is_a($script, Url::class)) { + if ($script instanceof Url) { $this->includedJsScripts[] = $script; } else { $this->includedJsSnippets[] = $script; diff --git a/src/Image/Types.php b/src/Image/Types.php index ec115b32..10515674 100644 --- a/src/Image/Types.php +++ b/src/Image/Types.php @@ -9,8 +9,8 @@ class Types { protected static $typesMap = array( - Jpg::FORMAT => Jpg::class, - Png::FORMAT => Png::class, + Jpg::FORMAT => 'Screen\Image\Types\Jpg', + Png::FORMAT => 'Screen\Image\Types\Png', ); /**