From 50f0af1e97ad0c7375f2e29acd1ad1a914eeaa5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Andrieu?= Date: Wed, 23 Nov 2016 13:50:28 +0100 Subject: [PATCH] Patch PHP preg_match --- src/AppBundle/PullRequests/BodyParser.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AppBundle/PullRequests/BodyParser.php b/src/AppBundle/PullRequests/BodyParser.php index 3ec6cb7..3fc3bf1 100644 --- a/src/AppBundle/PullRequests/BodyParser.php +++ b/src/AppBundle/PullRequests/BodyParser.php @@ -105,7 +105,7 @@ public function willDeprecateCode() */ public function isAFeature() { - return true === preg_match('/feature/', $this->getType()); + return 1 === preg_match('/feature/', $this->getType()); } /** @@ -113,7 +113,7 @@ public function isAFeature() */ public function isAnImprovement() { - return true === preg_match('/improvement/', $this->getType()); + return 1 === preg_match('/improvement/', $this->getType()); } /** @@ -121,7 +121,7 @@ public function isAnImprovement() */ public function isABugFix() { - return true === preg_match('/bug fix/', $this->getType()); + return 1 === preg_match('/bug fix/', $this->getType()); } /** @@ -129,7 +129,7 @@ public function isABugFix() */ public function isASmallFix() { - return true === preg_match('/small fix/', $this->getType()); + return 1 === preg_match('/small fix/', $this->getType()); } /** @@ -137,7 +137,7 @@ public function isASmallFix() */ public function isARefacto() { - return true === preg_match('/refacto/', $this->getType()); + return 1 === preg_match('/refacto/', $this->getType()); } /**