From 5e4875b9ad81f80a672be06774bab4cb04760345 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Sat, 12 Sep 2015 16:00:40 +0100 Subject: [PATCH] Merge rPF5f69cdda5b2c: T357: Put the string cast in the right place. --- app/Console/Commands/ImportMLPMA.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/ImportMLPMA.php b/app/Console/Commands/ImportMLPMA.php index 58524292..63b512f4 100644 --- a/app/Console/Commands/ImportMLPMA.php +++ b/app/Console/Commands/ImportMLPMA.php @@ -179,7 +179,7 @@ class ImportMLPMA extends Command if ($taggedYear !== null && $modifiedDate->year === $taggedYear) { $releasedAt = $modifiedDate; - } elseif ($taggedYear !== null && (string)Str::length($taggedYear) !== 4) { + } elseif ($taggedYear !== null && Str::length((string) $taggedYear) !== 4) { $this->error('This track\'s tagged year makes no sense! Using the track\'s last modified date...'); $releasedAt = $modifiedDate; } elseif ($taggedYear !== null && $modifiedDate->year !== $taggedYear) {