Skip to content

Commit a786509

Browse files
ashleyadamsMASNathan
authored andcommitted
Removed use of ::class not supported by PHP < 5.5 (#81)
You are completely correct, thanks for your submission!!
1 parent e618a4a commit a786509

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Capture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ public function setDelay($delay)
518518
*/
519519
public function includeJs($script)
520520
{
521-
if (is_a($script, Url::class)) {
521+
if ($script instanceof Url) {
522522
$this->includedJsScripts[] = $script;
523523
} else {
524524
$this->includedJsSnippets[] = $script;

src/Image/Types.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
class Types
1010
{
1111
protected static $typesMap = array(
12-
Jpg::FORMAT => Jpg::class,
13-
Png::FORMAT => Png::class,
12+
Jpg::FORMAT => 'Screen\Image\Types\Jpg',
13+
Png::FORMAT => 'Screen\Image\Types\Png',
1414
);
1515

1616
/**

0 commit comments

Comments
 (0)