PHP 7 compatibility

This commit is contained in:
Michael Veroux 2019-02-11 11:53:26 +01:00
parent cdeab44c2c
commit ad93b5ca49
8 changed files with 15 additions and 13 deletions

View File

@ -1,16 +1,16 @@
language: php language: php
php: php:
- 5.3
- 5.4
- 5.5
- 5.6 - 5.6
- 7.0
- 7.1
env: env:
- SYMFONY_VERSION=2.6.* - SYMFONY_VERSION=2.8.*
- SYMFONY_VERSION="dev-master symfony/debug:~2.7@dev symfony/http-kernel:~2.7@dev" - SYMFONY_VERSION="dev-master symfony/debug:~2.8@dev symfony/http-kernel:~2.8@dev"
before_script: before_script:
- phpenv config-add myphp.ini
- composer self-update - composer self-update
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update - composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update
- composer update --no-interaction --prefer-source - composer update --no-interaction --prefer-source
@ -22,4 +22,4 @@ script:
matrix: matrix:
allow_failures: allow_failures:
- env: SYMFONY_VERSION="dev-master symfony/debug:~2.7@dev symfony/http-kernel:~2.7@dev" - env: SYMFONY_VERSION="dev-master symfony/debug:~2.8@dev symfony/http-kernel:~2.8@dev"

2
myphp.ini Normal file
View File

@ -0,0 +1,2 @@
date.timezone = "Europe/Paris"
always_populate_raw_post_data = -1

View File

@ -12,7 +12,7 @@ namespace BeSimple\SoapBundle\Converter;
use BeSimple\SoapBundle\Soap\SoapRequest; use BeSimple\SoapBundle\Soap\SoapRequest;
use BeSimple\SoapBundle\Soap\SoapResponse; use BeSimple\SoapBundle\Soap\SoapResponse;
use BeSimple\SoapBundle\Util\String; use BeSimple\SoapBundle\Util\BsString;
use BeSimple\SoapCommon\Converter\TypeConverterInterface; use BeSimple\SoapCommon\Converter\TypeConverterInterface;
/** /**
@ -40,7 +40,7 @@ class XopIncludeTypeConverter implements TypeConverterInterface
$ref = $include->getAttribute('href'); $ref = $include->getAttribute('href');
if (String::startsWith($ref, 'cid:')) { if (BsString::startsWith($ref, 'cid:')) {
$cid = urldecode(substr($ref, 4)); $cid = urldecode(substr($ref, 4));
return $request->getSoapAttachments()->get($cid)->getContent(); return $request->getSoapAttachments()->get($cid)->getContent();

View File

@ -15,7 +15,7 @@ namespace BeSimple\SoapBundle\Util;
* *
* @author Christian Kerl <christian-kerl@web.de> * @author Christian Kerl <christian-kerl@web.de>
*/ */
class String class BsString
{ {
/** /**
* Checks if a string starts with a given string. * Checks if a string starts with a given string.

View File

@ -5,7 +5,7 @@ namespace BeSimple\SoapCommon\Type\KeyValue;
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;
use BeSimple\SoapCommon\Type\AbstractKeyValue; use BeSimple\SoapCommon\Type\AbstractKeyValue;
class Boolean extends AbstractKeyValue class BsBoolean extends AbstractKeyValue
{ {
/** /**
* @Soap\ComplexType("boolean") * @Soap\ComplexType("boolean")

View File

@ -5,7 +5,7 @@ namespace BeSimple\SoapCommon\Type\KeyValue;
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;
use BeSimple\SoapCommon\Type\AbstractKeyValue; use BeSimple\SoapCommon\Type\AbstractKeyValue;
class Float extends AbstractKeyValue class BsFloat extends AbstractKeyValue
{ {
/** /**
* @Soap\ComplexType("float") * @Soap\ComplexType("float")

View File

@ -5,7 +5,7 @@ namespace BeSimple\SoapCommon\Type\KeyValue;
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;
use BeSimple\SoapCommon\Type\AbstractKeyValue; use BeSimple\SoapCommon\Type\AbstractKeyValue;
class Int extends AbstractKeyValue class BsInt extends AbstractKeyValue
{ {
/** /**
* @Soap\ComplexType("int") * @Soap\ComplexType("int")

View File

@ -5,7 +5,7 @@ namespace BeSimple\SoapCommon\Type\KeyValue;
use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap; use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;
use BeSimple\SoapCommon\Type\AbstractKeyValue; use BeSimple\SoapCommon\Type\AbstractKeyValue;
class String extends AbstractKeyValue class BsString extends AbstractKeyValue
{ {
/** /**
* @Soap\ComplexType("string") * @Soap\ComplexType("string")