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
3 changes: 1 addition & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:

- name: Install dependencies
run: |
composer config allow-plugins.pestphp/pest-plugin true
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" pestphp/pest --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: XDEBUG_MODE=coverage php vendor/bin/pest --coverage --min=100
122 changes: 62 additions & 60 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,65 @@
{
"name": "justbetter/laravel-akeneo-client",
"description": "A Laravel package for the Akeneo API",
"type": "package",
"license": "MIT",
"homepage": "https://github.com/justbetter/laravel-akeneo-client",
"authors": [
{
"name": "Ramon Rietdijk",
"email": "ramon@justbetter.nl",
"role": "Developer"
}
],
"require": {
"php": "^8.2|^8.3",
"akeneo/api-php-client": "^11.0",
"guzzlehttp/guzzle": "^7.5",
"laravel/framework": "^10.0|^11.0"
},
"require-dev": {
"laravel/pint": "^1.6",
"larastan/larastan": "^2.5",
"orchestra/testbench": "^8.11|^9.0",
"phpstan/phpstan-mockery": "^1.1",
"phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
"JustBetter\\AkeneoClient\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"JustBetter\\AkeneoClient\\Tests\\": "tests"
}
},
"scripts": {
"test": "phpunit",
"analyse": "phpstan",
"style": "pint --test",
"quality": [
"@test",
"@analyse",
"@style"
"name": "justbetter/laravel-akeneo-client",
"description": "A Laravel package for the Akeneo API",
"type": "package",
"license": "MIT",
"homepage": "https://github.com/justbetter/laravel-akeneo-client",
"authors": [
{
"name": "Ramon Rietdijk",
"email": "ramon@justbetter.nl",
"role": "Developer"
}
],
"fix-style": "pint"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"php-http/discovery": true
}
},
"extra": {
"laravel": {
"providers": [
"JustBetter\\AkeneoClient\\ServiceProvider"
]
}
},
"minimum-stability": "dev",
"prefer-stable": true
"require": {
"php": "^8.2|^8.3",
"akeneo/api-php-client": "^11.4",
"guzzlehttp/guzzle": "^7.5",
"laravel/framework": "^10.0|^11.0"
},
"require-dev": {
"larastan/larastan": "^2.9",
"laravel/pint": "^1.18",
"orchestra/testbench": "^8.27|^9.5",
"pestphp/pest": "^2.0",
"phpstan/phpstan-mockery": "^1.1",
"phpunit/phpunit": "^10.5"
},
"autoload": {
"psr-4": {
"JustBetter\\AkeneoClient\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"JustBetter\\AkeneoClient\\Tests\\": "tests"
}
},
"scripts": {
"test": "phpunit",
"analyse": "phpstan",
"style": "pint --test",
"quality": [
"@test",
"@analyse",
"@style"
],
"fix-style": "pint"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"php-http/discovery": true,
"pestphp/pest-plugin": true
}
},
"extra": {
"laravel": {
"providers": [
"JustBetter\\AkeneoClient\\ServiceProvider"
]
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
4 changes: 2 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ parameters:
- src
- tests
level: 8
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
ignoreErrors:
- identifier: missingType.iterableValue
3 changes: 1 addition & 2 deletions src/Actions/DispatchEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class DispatchEvent implements DispatchesEvents
{
public function __construct(
public ResolvesEvents $resolvesEvents
) {
}
) {}

public function dispatch(array $event): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function sendRequest(RequestInterface $request): ResponseInterface
->toPsrResponse();
}

public function sendAsyncRequest(RequestInterface $request): PromiseInterface|Promise
public function sendAsync(RequestInterface $request): PromiseInterface|Promise
{
/** @var Promise $promise */
$promise = $this->buildHttpRequest($request)
Expand Down
2 changes: 1 addition & 1 deletion src/Client/ClientBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public function __construct(string $baseUri)
{
parent::__construct($baseUri);

$this->httpClient = new Client();
$this->httpClient = new Client;
}
}