Skip to content

Commit

Permalink
Support Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
IonBazan committed Apr 14, 2024
1 parent b172ec2 commit 803cbbb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
include:
- php-versions: '7.0'
composer-flags: '--prefer-lowest'
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# CHANGELOG

## Unreleased
## v1.5.0 (2024-04-14)

- Support Laravel 11

## v1.4.0 (2022-11-21)

- Support Laravel 10

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"require": {
"php": ">=7.0",
"ext-json": "*",
"illuminate/console": "^5.4 || ^6 || ^7 || ^8 || ^9 || ^10",
"illuminate/container": "^5.4 || ^6 || ^7 || ^8 || ^9 || ^10"
"illuminate/console": "^5.4 || ^6 || ^7 || ^8 || ^9 || ^10 || ^11",
"illuminate/container": "^5.4 || ^6 || ^7 || ^8 || ^9 || ^10 || ^11"
},
"require-dev": {
"symfony/phpunit-bridge": "^4.4 || ^5 || ^6"
Expand Down
8 changes: 7 additions & 1 deletion tests/ContainerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ abstract class ContainerTestCase extends TestCase
{
protected function getTestContainer(): Container
{
$container = new Container();
$container = new class extends Container {
public function runningUnitTests(): bool // required for Laravel 11
{
return true;
}
};

$container->bind('service.d', ServiceStubD::class);
$container->bind('service.c', ServiceStubC::class);
$container->when(ServiceStubD::class)->needs('$test')->give('test'); // Invalid argument provided, should fail
Expand Down

0 comments on commit 803cbbb

Please sign in to comment.