Skip to content

Commit 6c1c3c1

Browse files
authored
Feature l11 (#39)
1 parent 3406872 commit 6c1c3c1

39 files changed

+116
-147
lines changed

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
- name: 'Checkout Repository'
1818
uses: actions/checkout@v3
1919
- name: 'Dependency Review'
20-
uses: actions/dependency-review-action@v3
20+
uses: actions/dependency-review-action@v4

.github/workflows/run-tests.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ jobs:
1515
matrix:
1616
os: [ ubuntu-latest, windows-latest ]
1717
php: [ 8.2, 8.3 ]
18-
laravel: [ 10.* ]
18+
laravel: [ 11.* ]
1919
stability: [ prefer-lowest, prefer-stable ]
20-
include:
21-
- laravel: 10.*
22-
testbench: 8.*
2320

2421
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2522

@@ -41,7 +38,7 @@ jobs:
4138
4239
- name: Install dependencies
4340
run: |
44-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
41+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
4542
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4643
4744
- name: Set phpunit.xml
@@ -55,7 +52,7 @@ jobs:
5552
ZAMMAD_OBJECT_REFERENCE_ERROR_IGNORE: true
5653

5754
- name: Store test reports
58-
uses: actions/upload-artifact@v2
55+
uses: actions/upload-artifact@v4
5956
with:
6057
name: Store report
6158
retention-days: 1

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^8.2",
26-
"guzzlehttp/guzzle": "^7.8.1",
27-
"illuminate/contracts": "^10.0",
25+
"php": ">=8.2",
26+
"guzzlehttp/guzzle": "^7.8",
27+
"illuminate/contracts": "^11.0",
2828
"spatie/laravel-package-tools": "^1.16",
29-
"saloonphp/laravel-plugin": "^3.3",
30-
"saloonphp/saloon": "^3.6"
29+
"saloonphp/laravel-plugin": "^3.5",
30+
"saloonphp/saloon": "^3.7"
3131
},
3232
"require-dev": {
3333
"laravel/pint": "^1.13",
34-
"nunomaduro/collision": "^7.10",
35-
"nunomaduro/larastan": "^2.8",
34+
"nunomaduro/collision": "^8.1",
35+
"larastan/larastan": "^2.9",
3636
"pestphp/pest": "^2.3",
37-
"orchestra/testbench": "^8.20",
37+
"orchestra/testbench": "^9.0",
3838
"pestphp/pest-plugin-laravel": "^2.2",
39-
"pestphp/pest-plugin-arch": "^2.6",
39+
"pestphp/pest-plugin-arch": "^2.7",
4040
"phpstan/extension-installer": "^1.3",
4141
"phpstan/phpstan-deprecation-rules": "^1.1",
4242
"phpstan/phpstan-phpunit": "^1.3",

src/Classes/RequestClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct()
3030
$this->ignoreReferenceErrorIngore = config('zammad.object_reference_error_ignore');
3131
$this->objectHasReferenceError = config('zammad.objet_reference_error');
3232

33-
$this->connector = new ZammadConnector();
33+
$this->connector = new ZammadConnector;
3434
}
3535

3636
private function performRequest(Request $request): Response

src/DTO/Attachment.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ public function __construct(
2828
public int $size,
2929
public string $name,
3030
public string $type,
31-
) {
32-
}
31+
) {}
3332

3433
public function url(): string
3534
{

src/DTO/Comment.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ public function __construct(
8989
public Collection $attachments,
9090
public Carbon $updated_at,
9191
public Carbon $created_at,
92-
) {
93-
}
92+
) {}
9493

9594
public static function fake(
9695
?int $id = null,

src/DTO/ObjectAttribute.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ public function __construct(
3131
public int $position,
3232
public array $data_option,
3333
public ?array $data_option_new,
34-
) {
35-
}
34+
) {}
3635

3736
public static function fake(
3837
?int $id = null,

src/DTO/User.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ public function __construct(
3131
public Carbon $updated_at,
3232
public Carbon $created_at,
3333
public ?array $expanded = null,
34-
) {
35-
}
34+
) {}
3635

3736
public static function fake(
3837
?int $id = null,

src/Events/ZammadResponseLog.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,5 @@ class ZammadResponseLog
1313
use InteractsWithSockets;
1414
use SerializesModels;
1515

16-
public function __construct(public Response $response)
17-
{
18-
}
16+
public function __construct(public Response $response) {}
1917
}

src/Requests/AccessTokens/CreateAccessTokenRequest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ class CreateAccessTokenRequest extends Request implements HasBody
1515

1616
public function __construct(
1717
protected array $payload
18-
) {
19-
}
18+
) {}
2019

2120
public function resolveEndpoint(): string
2221
{

0 commit comments

Comments
 (0)