From 87d294cb14a9d2373fbdde3f213b20a1245a6156 Mon Sep 17 00:00:00 2001 From: kooped Date: Wed, 23 Sep 2020 13:10:14 +1000 Subject: [PATCH] Use class constants Use class constants for fully qualified class name resolution --- src/ImgixConvertTasks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImgixConvertTasks.php b/src/ImgixConvertTasks.php index 994fbcb..f348052 100644 --- a/src/ImgixConvertTasks.php +++ b/src/ImgixConvertTasks.php @@ -30,7 +30,7 @@ public function run($request) $objects = Image::get(); $count = $objects->count(); foreach ($objects as $image) { - $image->setClassName('Imgix')->write(); + $image->setClassName(Imgix::class)->write(); } echo "Converted {$count} Image objects to Imgix Objects"; } @@ -54,7 +54,7 @@ public function run($request) $objects = Imgix::get(); $count = $objects->count(); foreach ($objects as $image) { - $image->setClassName('Image')->write(); + $image->setClassName(Image::class)->write(); } echo "Converted {$count} Imgix objects to Image Objects"; }