Skip to content

Commit

Permalink
Support Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Mar 9, 2024
1 parent 1ef44d8 commit 16731d9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Static Analysis

on: workflow_dispatch # TODO[L11] [ push, pull_request ]
on: [ push, pull_request ]

jobs:
phpstan:
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"staudenmeir/eloquent-has-many-deep-contracts": "^1.2"
},
"require-dev": {
"awobaz/compoships": "^2.3",
"barryvdh/laravel-ide-helper": "^3.0",
"illuminate/pagination": "^11.0",
"korridor/laravel-has-many-merged": "^1.1",
Expand Down
4 changes: 0 additions & 4 deletions tests/Concatenation/ConcatenationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,13 @@ public function testWithTrashedIntermediateDeepModel()

public function testLeadingCompositeKey()
{
$this->markTestSkipped(); // TODO[L11]

$projects = Employee::find(131)->projectsFromRelations;

$this->assertEquals([101, 102], $projects->pluck('id')->all());
}

public function testIntermediateCompositeKey()
{
$this->markTestSkipped(); // TODO[L11]

$employees = Project::find(101)->employeesFromRelations;

$this->assertEquals([131, 132], $employees->pluck('id')->all());
Expand Down
2 changes: 1 addition & 1 deletion tests/Models/Employee.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class Employee extends Model
{
// TODO[L11] use Compoships;
use Compoships;
use HasRelationships;

public function projects(): HasManyDeep
Expand Down
2 changes: 1 addition & 1 deletion tests/Models/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Task extends Model
{
// TODO[L11] use Compoships;
use Compoships;

public function employee(): ComposhipsBelongsTo
{
Expand Down

0 comments on commit 16731d9

Please sign in to comment.