From eafb59de52fbad4cb111c61713767e8655f08ba9 Mon Sep 17 00:00:00 2001 From: Piero Giusti Date: Mon, 2 May 2016 13:10:51 -0300 Subject: [PATCH] Fix class String to be compatible with PHP 7 --- src/BeSimple/SoapBundle/Converter/XopIncludeTypeConverter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BeSimple/SoapBundle/Converter/XopIncludeTypeConverter.php b/src/BeSimple/SoapBundle/Converter/XopIncludeTypeConverter.php index b83e38d9..a5c00b9e 100644 --- a/src/BeSimple/SoapBundle/Converter/XopIncludeTypeConverter.php +++ b/src/BeSimple/SoapBundle/Converter/XopIncludeTypeConverter.php @@ -12,7 +12,7 @@ use BeSimple\SoapBundle\Soap\SoapRequest; use BeSimple\SoapBundle\Soap\SoapResponse; -use BeSimple\SoapBundle\Util\String; +use BeSimple\SoapBundle\Util\String as StringHelper; use BeSimple\SoapCommon\Converter\TypeConverterInterface; /** @@ -40,7 +40,7 @@ public function convertXmlToPhp(SoapRequest $request, $data) $ref = $include->getAttribute('href'); - if (String::startsWith($ref, 'cid:')) { + if (StringHelper::startsWith($ref, 'cid:')) { $cid = urldecode(substr($ref, 4)); return $request->getSoapAttachments()->get($cid)->getContent();