Skip to content

Commit

Permalink
Removed use of ::class not supported by PHP < 5.5 (#81)
Browse files Browse the repository at this point in the history
You are completely correct, thanks for your submission!!
  • Loading branch information
ashleyadams authored and MASNathan committed Jan 20, 2017
1 parent e618a4a commit a786509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Capture.php
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Image/Types.php
Expand Up @@ -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',
);

/**
Expand Down

0 comments on commit a786509

Please sign in to comment.