Merge rPF5f69cdda5b2c: T357: Put the string cast in the right place.

This commit is contained in:
Kelvin Zhang 2015-09-12 16:00:40 +01:00
parent 616b6e9ccf
commit 5e4875b9ad

View file

@ -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) {