From 5f69cdda5b2c070d3e57e4c12104c672f6210a12 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Fri, 11 Sep 2015 14:10:45 -0700 Subject: [PATCH] T357: Put the string cast in the right place. --- app/commands/ImportMLPMA.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commands/ImportMLPMA.php b/app/commands/ImportMLPMA.php index a71801dd..a836d849 100644 --- a/app/commands/ImportMLPMA.php +++ b/app/commands/ImportMLPMA.php @@ -176,7 +176,7 @@ class ImportMLPMA extends Command { if ($taggedYear !== null && $modifiedDate->year === $taggedYear) { $releasedAt = $modifiedDate; - } else if ($taggedYear !== null && (string) Str::length($taggedYear) !== 4) { + } else if ($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;