Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php 7.0 support #108

Open
wants to merge 1 commit into
base: 0.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor/
composer.lock
phpunit.xml
.idea/*
2 changes: 1 addition & 1 deletion Converter/TypeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition;
use BeSimple\SoapBundle\Util\Assert;
use BeSimple\SoapBundle\Util\QName;
use BeSimple\SoapBundle\Util\String;
use BeSimple\SoapBundle\Util\Strings;

/**
* @author Christian Kerl <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions Converter/XopIncludeTypeConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

use BeSimple\SoapBundle\Soap\SoapRequest;
use BeSimple\SoapBundle\Soap\SoapResponse;
use BeSimple\SoapBundle\Util\String;
use BeSimple\SoapBundle\Util\Strings;

/**
* @author Christian Kerl <[email protected]>
Expand All @@ -39,7 +39,7 @@ public function convertXmlToPhp(SoapRequest $request, $data)

$ref = $include->getAttribute('href');

if (String::startsWith($ref, 'cid:')) {
if (Strings::startsWith($ref, 'cid:')) {
$cid = urldecode(substr($ref, 4));

return $request->getSoapAttachments()->get($cid)->getContent();
Expand Down
4 changes: 2 additions & 2 deletions ServiceDefinition/Dumper/WsdlTypeStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition;
use BeSimple\SoapBundle\ServiceDefinition\Loader\AnnotationComplexTypeLoader;
use BeSimple\SoapBundle\ServiceDefinition\Strategy\ComplexType;
use BeSimple\SoapBundle\Util\String;
use BeSimple\SoapBundle\Util\Strings;

use Zend\Soap\Exception;
use Zend\Soap\Wsdl as BaseWsdl;
Expand Down Expand Up @@ -68,7 +68,7 @@ public function addComplexType($type)
throw new \LogicException(sprintf('Cannot add complex type "%s", no context is set for this composite strategy.', $type));
}

$strategy = String::endsWith($type, '[]') ? $this->getArrayStrategy() : $this->getTypeStrategy();
$strategy = Strings::endsWith($type, '[]') ? $this->getArrayStrategy() : $this->getTypeStrategy();

return $strategy->addComplexType($type);
}
Expand Down
2 changes: 1 addition & 1 deletion Util/String.php → Util/Strings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @author Christian Kerl <[email protected]>
*/
class String
class Strings
{
/**
* Checks if a string starts with a given string.
Expand Down