From c30d25938864c5b55d7eeeefc11236cd847272ef Mon Sep 17 00:00:00 2001 From: Carnage Date: Wed, 20 Mar 2024 14:18:05 +0000 Subject: [PATCH] Update membrane dependencies --- composer.json | 4 ++-- src/ServiceProvider.php | 4 ++-- tests/Middleware/RequestValidationTest.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 03001c2..defc05d 100644 --- a/composer.json +++ b/composer.json @@ -20,8 +20,8 @@ "illuminate/http": "^9.0 || ^10.0", "illuminate/support": "^9.0 || ^10.0", "nyholm/psr7": "^1.8", - "membrane/membrane": "^0.6.0", - "membrane/openapi-router": "0.2.1", + "membrane/membrane": "dev-main", + "membrane/openapi-router": "^0.4.0", "symfony/psr-http-message-bridge": "^2.1" }, "require-dev": { diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 35f3034..dfe7a1c 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -7,8 +7,8 @@ use Membrane\Builder\Builder; use Membrane\Laravel\Middleware\RequestValidation; use Membrane\Membrane; -use Membrane\OpenAPIRouter\Router\Router; -use Membrane\OpenAPIRouter\Router\ValueObject\RouteCollection; +use Membrane\OpenAPIRouter\Router; +use Membrane\OpenAPIRouter\RouteCollection; class ServiceProvider extends \Illuminate\Support\ServiceProvider { diff --git a/tests/Middleware/RequestValidationTest.php b/tests/Middleware/RequestValidationTest.php index 4d5a2ba..18c5446 100644 --- a/tests/Middleware/RequestValidationTest.php +++ b/tests/Middleware/RequestValidationTest.php @@ -12,7 +12,7 @@ use Membrane\Laravel\ToPsr7; use Membrane\Laravel\ToSymfony; use Membrane\OpenAPI\Exception\CannotProcessSpecification; -use Membrane\OpenAPI\Method; +use Membrane\OpenAPIReader\ValueObject\Valid\Enum\Method; use Membrane\Result\Result; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; @@ -29,7 +29,7 @@ class RequestValidationTest extends TestCase #[Test] public function registersResultInstanceInContainer(): void { - $url = '/pets?limit=5&tags[]=cat&tags[]=tabby'; + $url = '/pets?limit=5&tags=cat&tags=tabby'; $expected = Result::valid([ 'path' => [], 'query' => ['limit' => 5, 'tags' => ['cat', 'tabby']],