Skip to content
Merged
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
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,30 @@ jobs:
php-version: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
steps:
- name: Check out code into the workspace
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: pcov

- name: Composer cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ env.HOME }}/.composer/cache
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}

- name: Install dependencies
run: composer install -o

- name: Configure matchers
uses: mheap/phpunit-matcher-action@v1

- name: Run tests
run: composer run-script phpunit-ci

- name: Coverage
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
verbose: true
1 change: 1 addition & 0 deletions src/Factory/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ public function createClient(string $apiUrl, string $apiKey): Client
->setStreamFactory($this->streamFactory)
->setRequestFactory($this->requestFactory)
->setUriFactory($this->uriFactory)
->setEventDispatcher($this->eventDispatcher)
->appendRequestHandlers($this->requestHandlers)
->appendResponseHandlers($this->responseHandlers)
->build();
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/EventDispatcherAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ trait EventDispatcherAwareTrait
*
* @param \Psr\EventDispatcher\EventDispatcherInterface|null $eventDispatcher
*
* @return object
* @return static
*/
public function setEventDispatcher(?EventDispatcherInterface $eventDispatcher): object
{
Expand Down