diff --git a/src/Intervention/Image/Commands/TextCommand.php b/src/Intervention/Image/Commands/TextCommand.php index d91948a0..09d8267c 100644 --- a/src/Intervention/Image/Commands/TextCommand.php +++ b/src/Intervention/Image/Commands/TextCommand.php @@ -14,8 +14,8 @@ class TextCommand extends \Intervention\Image\Commands\AbstractCommand public function execute($image) { $text = $this->argument(0)->required()->value(); - $x = $this->argument(1, 0)->type('numeric')->value(); - $y = $this->argument(2, 0)->type('numeric')->value(); + $x = $this->argument(1)->type('numeric')->value(0); + $y = $this->argument(2)->type('numeric')->value(0); $callback = $this->argument(3)->type('closure')->value(); $fontclassname = sprintf('\Intervention\Image\%s\Font', diff --git a/src/Intervention/Image/Gd/Commands/InsertCommand.php b/src/Intervention/Image/Gd/Commands/InsertCommand.php index 5a34561b..884e76c1 100644 --- a/src/Intervention/Image/Gd/Commands/InsertCommand.php +++ b/src/Intervention/Image/Gd/Commands/InsertCommand.php @@ -12,7 +12,7 @@ class InsertCommand extends \Intervention\Image\Commands\AbstractCommand */ public function execute($image) { - $source = $this->argument(0)->value(); + $source = $this->argument(0)->required()->value(); $position = $this->argument(1)->type('string')->value(); $x = $this->argument(2)->type('integer')->value(0); $y = $this->argument(3)->type('integer')->value(0); diff --git a/src/Intervention/Image/Imagick/Commands/InsertCommand.php b/src/Intervention/Image/Imagick/Commands/InsertCommand.php index 1d23a7a1..83bd22dc 100644 --- a/src/Intervention/Image/Imagick/Commands/InsertCommand.php +++ b/src/Intervention/Image/Imagick/Commands/InsertCommand.php @@ -14,7 +14,7 @@ class InsertCommand extends \Intervention\Image\Commands\AbstractCommand */ public function execute($image) { - $source = $this->argument(0)->value(); + $source = $this->argument(0)->required()->value(); $position = $this->argument(1)->type('string')->value(); $x = $this->argument(2)->type('integer')->value(0); $y = $this->argument(3)->type('integer')->value(0);