Skip to content

Commit

Permalink
Merge pull request #1 from tkaratug/laravel-10-support
Browse files Browse the repository at this point in the history
Add laravel 10 && php 8.2 support
  • Loading branch information
tkaratug authored Feb 19, 2023
2 parents 7828a24 + 0e5566b commit ece0012
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
}
],
"require": {
"php": "^8.0|^8.1",
"illuminate/contracts": "^8.0|^9.0"
"php": "^8.0|^8.1|^8.2",
"illuminate/contracts": "^8.0|^9.0|^10.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions src/Traits/HasScopeAssertion.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function assertScopeCalled(string $scope, string $model, ?int $times = nu
return true;
});

$this->assertTrue(in_array($scope, $triggeredScopes[$model]));
$this->assertContains($scope, $triggeredScopes[$model]);

if (!is_null($times)) {
$this->assertCount(
Expand All @@ -29,4 +29,4 @@ public function assertScopeCalled(string $scope, string $model, ?int $times = nu
);
}
}
}
}

0 comments on commit ece0012

Please sign in to comment.