From 44869051552347cc77c3dd182af8f2d8af02f910 Mon Sep 17 00:00:00 2001 From: Thibault Modat Date: Mon, 27 Feb 2017 12:07:16 +0100 Subject: [PATCH] Fix error TitleCaseFrench --- composer.json | 4 ++-- src/TitleCaseFrench.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 5708c56..725861b 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,8 @@ { "name": "jurihub/helpers", - "version": "1.0.6", + "version": "1.0.7", "dist": { - "url": "https://github.com/jurihub/helpers/archive/1.0.6.zip", + "url": "https://github.com/jurihub/helpers/archive/1.0.7.zip", "type": "zip" }, "require": { diff --git a/src/TitleCaseFrench.php b/src/TitleCaseFrench.php index 2a2db95..1803188 100644 --- a/src/TitleCaseFrench.php +++ b/src/TitleCaseFrench.php @@ -254,7 +254,7 @@ static public function capitalizeWord($txt, $index) $txtWithDash = explode("-", $txt); if (count($txtWithDash) === 2) { - return self::capitalizeFirst($txtWithDash[0]) . "-" + self::capitalizeFirstIfNeeded($txtWithDash[1]); + return self::capitalizeFirst($txtWithDash[0]) . "-" . self::capitalizeFirstIfNeeded($txtWithDash[1]); } // look for .