Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 11.x Support #905

Merged
merged 1 commit into from
Mar 14, 2024
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
10 changes: 9 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
fail-fast: false
matrix:
php: [7.4, 8.0, 8.1, 8.2, 8.3]
laravel: [ 10.*, 9.*, 8.*, 7.* ]
laravel: [ 11.*, 10.*, 9.*, 8.*, 7.* ]
include:
- laravel: 11.*
testbench: 9.*
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
Expand All @@ -24,6 +26,12 @@ jobs:
- laravel: 7.*
testbench: 5.*
exclude:
- laravel: 11.*
php: 8.1
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 7.4
- laravel: 10.*
php: 7.4
- laravel: 10.*
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Thank you for choosing OwenIt\LaravelAuditing!

Version | Illuminate | Status | PHP Version
:----------|:---------------|:------------------------|:------------
13.x | 7.x.x - 10.x.x | Active support :rocket: | > = 7.3 \| 8.0
13.x | 7.x.x - 11.x.x | Active support :rocket: | > = 7.3 \| 8.0
12.x | 6.x.x - 9.x.x | Active support | > = 7.3 \| 8.0
11.x | 5.8.x - 8.x.x | End of life | > = 7.3
10.x | 5.8.x - 7.x.x | End of life | > = 7.2.5
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
],
"require": {
"php": "^7.3|^8.0",
"illuminate/console": "^7.0|^8.0|^9.0|^10.0",
"illuminate/database": "^7.0|^8.0|^9.0|^10.0",
"illuminate/filesystem": "^7.0|^8.0|^9.0|^10.0",
"illuminate/console": "^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/database": "^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/filesystem": "^7.0|^8.0|^9.0|^10.0|^11.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"phpunit/phpunit": "^9.6|^10.5|^11.0",
"mockery/mockery": "^1.0",
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0",
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0",
"laravel/legacy-factories": "*"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/AuditingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public function itWillNotAuditDueToUnsupportedDriver()
public function itWillNotAuditDueToClassWithoutDriverInterface()
{
// We just pass a FQCN that does not implement the AuditDriver interface
$this->app['config']->set('audit.driver', self::class);
$this->app['config']->set('audit.driver', Article::class);

$this->expectException(AuditingException::class);
$this->expectExceptionMessage('The driver must implement the AuditDriver contract');
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/AuditableObserverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function itExecutesTheAuditorSuccessfully(string $eventMethod, bool $expe
/**
* @return array
*/
public function auditableObserverTestProvider(): array
public static function auditableObserverTestProvider(): array
{
return [
[
Expand Down Expand Up @@ -130,7 +130,7 @@ public function auditableObserverTestProvider(): array
/**
* @return array
*/
public function auditableObserverDispatchTestProvider(): array
public static function auditableObserverDispatchTestProvider(): array
{
return [
[
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/AuditableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function itFailsWhenTheCustomAttributeGettersAreMissing(
/**
* @return array
*/
public function auditCustomAttributeGetterFailTestProvider(): array
public static function auditCustomAttributeGetterFailTestProvider(): array
{
return [
[
Expand Down Expand Up @@ -489,7 +489,7 @@ public function itReturnsTheAuditDataIncludingUserAttributes(
/**
* @return array
*/
public function userResolverProvider(): array
public static function userResolverProvider(): array
{
return [
[
Expand Down Expand Up @@ -1202,7 +1202,7 @@ public function itWorksWithStringKeyModels()
/**
* @return array
*/
public function auditableTransitionTestProvider(): array
public static function auditableTransitionTestProvider(): array
{
return [
//
Expand Down