Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit a902110

Browse files
committed
Merge branch 'release/v2.14.0'
2 parents ff5c351 + 8c9a5fb commit a902110

File tree

17 files changed

+297
-9
lines changed

17 files changed

+297
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ jobs:
202202
- name: Install PHP with extensions
203203
uses: shivammathur/setup-php@v2
204204
with:
205-
php-version: 7.2
205+
php-version: 7.3
206206
extensions: json, mbstring, intl, apcu
207207
tools: composer, phive
208208
ini-values: assert.exception=1, zend.assertions=1, apc.enabled=1, apc.enable_cli=1
@@ -224,7 +224,7 @@ jobs:
224224
- name: Install box
225225
env:
226226
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
227-
run: phive install humbug/box --force-accept-unsigned
227+
run: phive install humbug/box@^3.11.1 --force-accept-unsigned
228228

229229
- name: Compile phar
230230
run: tools/box compile

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- master
6+
workflow_dispatch:
67
jobs:
78
build-and-deploy:
89
runs-on: ubuntu-latest
@@ -23,7 +24,7 @@ jobs:
2324
run: ./install-apigen.sh && php apigen.phar generate --debug --config build/apigen.neon
2425

2526
- name: Install SSH Client 🔑
26-
uses: webfactory/ssh-agent@v0.2.0
27+
uses: webfactory/ssh-agent@v0.4.1
2728
with:
2829
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
2930

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# [2.14.0](https://github.com/commercetools/commercetools-php-sdk/compare/v2.13.0...v2.14.0) (2021-03-02)
2+
3+
### Features
4+
5+
* **Store** support Custom fields for stores
6+
* **Cart** support cart replicate for stores
7+
8+
### Bug Fixes
9+
10+
* **ErrorResponse:** add getter for inner exception ([96413a7](https://github.com/commercetools/commercetools-php-sdk/commit/96413a76ffa90954cbf2f496f4c71e3634c01740)), closes [#601](https://github.com/commercetools/commercetools-php-sdk/issues/601)
11+
12+
113
# [2.13.0](https://github.com/commercetools/commercetools-php-sdk/compare/v2.12.1...v2.13.0) (2021-01-11)
214

315

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"require-dev": {
4444
"guzzlehttp/guzzle": "^7.0 || ^6.0",
4545
"phpunit/phpunit": "^8.5",
46-
"symplify/easy-coding-standard": "^7.2",
46+
"symplify/easy-coding-standard-prefixed": "^8.3.48 || ^9.2.1",
4747
"doctrine/cache": "^1.6",
4848
"monolog/monolog": "^1.12",
4949
"symfony/yaml": "^4.0 || ^3.4.38",

ecs.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6+
use Symplify\EasyCodingStandard\ValueObject\Option;
7+
8+
return static function (ContainerConfigurator $containerConfigurator): void {
9+
$containerConfigurator->import(__DIR__ . '/tools/psr2.php');
10+
11+
$parameters = $containerConfigurator->parameters();
12+
$parameters->set(Option::PATHS, [
13+
__DIR__ . '/src',
14+
]);
15+
$parameters->set(Option::SKIP, [
16+
__DIR__ . 'src/Core/Builder'
17+
]);
18+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commercetools-php-sdk-changelog",
3-
"version": "2.13.0",
3+
"version": "2.14.0",
44
"description": "commercetools PHP SDK changelog generator package description",
55
"homepage": "https://github.com/commercetools/commercetools-php-sdk",
66
"bugs": "https://github.com/commercetools/commercetools-php-sdk/issues",

phive.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="humbug/box" version="^3.8.4" installed="3.8.4" location="./tools/box" copy="false"/>
3+
<phar name="humbug/box" version="^3.11.1" installed="3.11.1" location="./tools/box" copy="false"/>
44
</phive>

src/Core/AbstractHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
abstract class AbstractHttpClient
1616
{
17-
const VERSION = '2.13.0-dev';
17+
const VERSION = '2.14.0';
1818

1919
/**
2020
* @var AdapterInterface

src/Core/Helper/Annotate/AnnotationGenerator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,8 @@ function ($link) {
588588
$factoryMethod = $requestClass->getMethod('ofDraft');
589589
$params = $factoryMethod->getParameters();
590590
$draftParam = current($params);
591-
$type = $draftParam->getClass();
591+
$typeClass = new \ReflectionClass($draftParam->getType()->getName());
592+
$type = $typeClass;
592593
$uses[] = 'use ' . $type->getName() . ';';
593594
if ($domain == 'CustomObjects') {
594595
$methodParams[] = [

src/Core/Helper/Annotate/ReflectedClass.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ protected function reflectConstructorArgs()
231231
if ($parameter->isOptional()) {
232232
continue;
233233
}
234-
$typeClass = $parameter->getClass();
234+
if ($parameter->getType() == null) {
235+
continue;
236+
}
237+
$typeClass = new \ReflectionClass($parameter->getType()->getName());
235238
$typeName = '';
236239
if (!is_null($typeClass)) {
237240
$typeName = $typeClass->getShortName();

0 commit comments

Comments
 (0)