Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
fc78e5897b | |||
|
0a862dd86b | ||
5a3547894a | |||
1d05f3efeb | |||
831ed64871 | |||
502a0c8641 | |||
4a99094294 | |||
|
c379815f76 |
6 changed files with 24 additions and 9 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -17,24 +17,30 @@ jobs:
|
||||||
php-version: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
|
php-version: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code into the workspace
|
- name: Check out code into the workspace
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup PHP ${{ matrix.php-version }}
|
- name: Setup PHP ${{ matrix.php-version }}
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php-version }}
|
php-version: ${{ matrix.php-version }}
|
||||||
coverage: pcov
|
coverage: pcov
|
||||||
|
|
||||||
- name: Composer cache
|
- name: Composer cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ env.HOME }}/.composer/cache
|
path: ${{ env.HOME }}/.composer/cache
|
||||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer install -o
|
run: composer install -o
|
||||||
|
|
||||||
- name: Configure matchers
|
- name: Configure matchers
|
||||||
uses: mheap/phpunit-matcher-action@v1
|
uses: mheap/phpunit-matcher-action@v1
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: composer run-script phpunit-ci
|
run: composer run-script phpunit-ci
|
||||||
|
|
||||||
- name: Coverage
|
- name: Coverage
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
verbose: true
|
verbose: true
|
||||||
|
|
6
.github/workflows/code_quality.yml
vendored
6
.github/workflows/code_quality.yml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code into the workspace
|
- name: Check out code into the workspace
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Run PHPCS
|
- name: Run PHPCS
|
||||||
uses: chekalsky/phpcs-action@v1
|
uses: chekalsky/phpcs-action@v1
|
||||||
phpmd:
|
phpmd:
|
||||||
|
@ -21,7 +21,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code into the workspace
|
- name: Check out code into the workspace
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Run PHPMD
|
- name: Run PHPMD
|
||||||
uses: GeneaLabs/action-reviewdog-phpmd@1.0.0
|
uses: GeneaLabs/action-reviewdog-phpmd@1.0.0
|
||||||
with:
|
with:
|
||||||
|
@ -35,7 +35,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code into the workspace
|
- name: Check out code into the workspace
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Run PHPStan
|
- name: Run PHPStan
|
||||||
uses: docker://oskarstark/phpstan-ga:1.8.0
|
uses: docker://oskarstark/phpstan-ga:1.8.0
|
||||||
with:
|
with:
|
||||||
|
|
4
.github/workflows/documentation.yml
vendored
4
.github/workflows/documentation.yml
vendored
|
@ -19,7 +19,7 @@ jobs:
|
||||||
pages_threshold: major_outage
|
pages_threshold: major_outage
|
||||||
- name: Check out code into the workspace
|
- name: Check out code into the workspace
|
||||||
if: success() && ${{ github.ref != 'refs/heads/master' }}
|
if: success() && ${{ github.ref != 'refs/heads/master' }}
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Setup PHP 8.3
|
- name: Setup PHP 8.3
|
||||||
if: ${{ github.ref != 'refs/heads/master' }}
|
if: ${{ github.ref != 'refs/heads/master' }}
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
|
@ -27,7 +27,7 @@ jobs:
|
||||||
php-version: "8.3"
|
php-version: "8.3"
|
||||||
- name: Cache phpDocumentor
|
- name: Cache phpDocumentor
|
||||||
id: cache-phpdocumentor
|
id: cache-phpdocumentor
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: phpDocumentor.phar
|
path: phpDocumentor.phar
|
||||||
key: phpdocumentor
|
key: phpdocumentor
|
||||||
|
|
|
@ -285,6 +285,7 @@ class ClientFactory implements ClientFactoryInterface, EventDispatcherAwareInter
|
||||||
->setStreamFactory($this->streamFactory)
|
->setStreamFactory($this->streamFactory)
|
||||||
->setRequestFactory($this->requestFactory)
|
->setRequestFactory($this->requestFactory)
|
||||||
->setUriFactory($this->uriFactory)
|
->setUriFactory($this->uriFactory)
|
||||||
|
->setEventDispatcher($this->eventDispatcher)
|
||||||
->appendRequestHandlers($this->requestHandlers)
|
->appendRequestHandlers($this->requestHandlers)
|
||||||
->appendResponseHandlers($this->responseHandlers)
|
->appendResponseHandlers($this->responseHandlers)
|
||||||
->build();
|
->build();
|
||||||
|
|
|
@ -170,4 +170,12 @@ class ProductOffer
|
||||||
* @JMS\SerializedName("barcode")
|
* @JMS\SerializedName("barcode")
|
||||||
*/
|
*/
|
||||||
public $barcode;
|
public $barcode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
* @JMS\Type("string")
|
||||||
|
* @JMS\SerializedName("site")
|
||||||
|
*/
|
||||||
|
public $site;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ trait EventDispatcherAwareTrait
|
||||||
*
|
*
|
||||||
* @param \Psr\EventDispatcher\EventDispatcherInterface|null $eventDispatcher
|
* @param \Psr\EventDispatcher\EventDispatcherInterface|null $eventDispatcher
|
||||||
*
|
*
|
||||||
* @return object
|
* @return static
|
||||||
*/
|
*/
|
||||||
public function setEventDispatcher(?EventDispatcherInterface $eventDispatcher): object
|
public function setEventDispatcher(?EventDispatcherInterface $eventDispatcher): object
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue