Skip to content

Commit

Permalink
Merge pull request #16 from codebar-ag/feature-l11
Browse files Browse the repository at this point in the history
Laravel 11
  • Loading branch information
StanBarrows authored Oct 29, 2024
2 parents c49eea4 + 57130d0 commit 85c3250
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
os: [ ubuntu-latest, windows-latest ]
php: [ 8.2, 8.3 ]
laravel: [ 10.* ]
laravel: [ 11.* ]
stability: [ prefer-lowest, prefer-stable ]

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
}
],
"require": {
"php": "^8.1",
"illuminate/contracts": "^10.0",
"php": ">=8.2",
"illuminate/contracts": "^11.0",
"saloonphp/saloon": "^3.4",
"spatie/laravel-data": "^3.11",
"spatie/laravel-data": "^4.4",
"spatie/laravel-package-tools": "^1.16"
},
"require-dev": {
"laravel/pint": "^1.13",
"nunomaduro/collision": "^7.10",
"nunomaduro/larastan": "^2.8",
"orchestra/testbench": "^8.20",
"nunomaduro/collision": "^8.1",
"larastan/larastan": "^2.9",
"orchestra/testbench": "^9.0",
"pestphp/pest": "^2.31",
"pestphp/pest-plugin-arch": "^2.6",
"pestphp/pest-plugin-laravel": "^2.2",
Expand Down
3 changes: 1 addition & 2 deletions src/Data/Checklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public function __construct(
public string $orderHint,
public string $lastModifiedDateTime,
public ?string $lastModifiedByUserId,
) {
}
) {}

public static function fromData(string $key, array $data): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Data/Note.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class Note extends Data
public function __construct(
public string $contentType,
public string $content,
) {
}
) {}

public static function fromData(array $data): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Data/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public function __construct(
public string $previewPriority,
public string $lastModifiedDateTime,
public string $lastModifiedByUserId,
) {
}
) {}

public static function fromData(string $key, array $data): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Data/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public function __construct(
public array $createdBy,
public array $appliedCategories,
public array $assignments,
) {
}
) {}

public static function fromData(array $data): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Data/TaskDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function __construct(
public ?Note $notes,
public Collection $references,
public Collection $checklist,
) {
}
) {}

public static function fromData(array $data): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Requests/Bucket/GetBucketTasksRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ class GetBucketTasksRequest extends Request

public function __construct(
public readonly string $bucketId
) {
}
) {}

public function resolveEndpoint(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Requests/TaskDetails/GetTaskDetailsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class GetTaskDetailsRequest extends Request

public function __construct(
public readonly string $taskId
) {
}
) {}

public function resolveEndpoint(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Requests/TaskDetails/PatchTaskDetailsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ class PatchTaskDetailsRequest extends Request implements HasBody
public function __construct(
public readonly string $taskId,
public readonly string $etag
) {
}
) {}

public function defaultHeaders(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Requests/Tasks/GetTaskRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class GetTaskRequest extends Request

public function __construct(
public readonly string $taskId
) {
}
) {}

public function resolveEndpoint(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Requests/Tasks/PatchTaskRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ class PatchTaskRequest extends Request implements HasBody
public function __construct(
public readonly string $taskId,
public readonly string $etag
) {
}
) {}

public function defaultHeaders(): array
{
Expand Down

0 comments on commit 85c3250

Please sign in to comment.