1
0
mirror of synced 2024-11-22 03:46:02 +03:00

Fixes and packages for proper PHP 7.0 support

This commit is contained in:
Pavel 2019-06-24 12:54:59 +03:00
parent a0f7b65275
commit 2b3c8ba057
8 changed files with 521 additions and 398 deletions

View File

@ -5,8 +5,10 @@ cache:
- $HOME/.composer/cache - $HOME/.composer/cache
php: php:
- '7.0'
- '7.1' - '7.1'
- '7.2' - '7.2'
- '7.3'
before_script: before_script:
- flags="-o" - flags="-o"

View File

@ -12,22 +12,31 @@
} }
], ],
"require": { "require": {
"php": ">=7.1", "php": ">=7.0",
"ext-curl": "*", "ext-curl": "*",
"ext-json": "*", "ext-json": "*",
"jms/serializer": "1.13.*", "jms/serializer": "1.14.*",
"symfony/validator": "^4.2", "symfony/validator": "3.*",
"doctrine/annotations": "^1.6", "doctrine/annotations": "1.4.*",
"doctrine/cache": "^1.8", "doctrine/cache": "1.6.*",
"guzzlehttp/guzzle": "6.3.*" "guzzlehttp/guzzle": "6.*",
"doctrine/instantiator": "1.0.*",
"symfony/translation": "3.*"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "7.4.*", "phpmd/phpmd": "2.*",
"phpmd/phpmd": "2.6.*",
"phpstan/phpstan": "0.9.*",
"squizlabs/php_codesniffer": "3.4.*", "squizlabs/php_codesniffer": "3.4.*",
"symfony/dotenv": "^4.2", "symfony/dotenv": "3.*",
"friendsofphp/php-cs-fixer": "^2.14" "friendsofphp/php-cs-fixer": "2.*",
"phpunit/phpunit": "6.*",
"nette/bootstrap": "2.*",
"nette/neon": "2.*",
"nette/php-generator": "3.0.*",
"phpstan/phpstan": "0.9.*",
"ocramius/package-versions": "1.2.*",
"nette/finder": "2.4.*",
"symfony/console": "3.*",
"symfony/debug": "3.*"
}, },
"support": { "support": {
"email": "support@retailcrm.ru" "email": "support@retailcrm.ru"

872
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -117,7 +117,7 @@ class ChannelSettings
/** /**
* @param bool $spamAllowed * @param bool $spamAllowed
*/ */
public function setSpamAllowed(bool $spamAllowed): void public function setSpamAllowed(bool $spamAllowed)
{ {
$this->spamAllowed = $spamAllowed; $this->spamAllowed = $spamAllowed;
} }

View File

@ -192,7 +192,7 @@ class ChannelSettingsItem
/** /**
* @param int $maxCharsCount * @param int $maxCharsCount
*/ */
public function setMaxCharsCount(int $maxCharsCount): void public function setMaxCharsCount(int $maxCharsCount)
{ {
$this->maxCharsCount = $maxCharsCount; $this->maxCharsCount = $maxCharsCount;
} }
@ -224,7 +224,7 @@ class ChannelSettingsItem
/** /**
* @param int $noteMaxCharsCount * @param int $noteMaxCharsCount
*/ */
public function setNoteMaxCharsCount(int $noteMaxCharsCount): void public function setNoteMaxCharsCount(int $noteMaxCharsCount)
{ {
$this->noteMaxCharsCount = $noteMaxCharsCount; $this->noteMaxCharsCount = $noteMaxCharsCount;
} }

View File

@ -83,7 +83,7 @@ trait CommonFields
/** /**
* @param \DateTime $since * @param \DateTime $since
*/ */
public function setSince(\DateTime $since): void public function setSince(\DateTime $since)
{ {
$this->since = $since; $this->since = $since;
} }
@ -99,7 +99,7 @@ trait CommonFields
/** /**
* @param \DateTime $until * @param \DateTime $until
*/ */
public function setUntil(\DateTime $until): void public function setUntil(\DateTime $until)
{ {
$this->until = $until; $this->until = $until;
} }

View File

@ -50,7 +50,7 @@ class UploadFileByUrlRequest
/** /**
* @param string $url * @param string $url
*/ */
public function setUrl(string $url): void public function setUrl(string $url)
{ {
$this->url = $url; $this->url = $url;
} }

View File

@ -72,7 +72,7 @@ trait CommonFields
/** /**
* @param int $statusCode * @param int $statusCode
*/ */
public function setStatusCode(int $statusCode): void public function setStatusCode(int $statusCode)
{ {
$this->statusCode = $statusCode; $this->statusCode = $statusCode;
} }