Skip to content

Commit b246145

Browse files
committed
1 parent ace1e0e commit b246145

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Attributes/Extension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use InvalidArgumentException;
77
use Vyuldashev\LaravelOpenApi\Factories\ExtensionFactory;
88

9-
#[Attribute]
9+
#[Attribute(Attribute::IS_REPEATABLE)]
1010
class Extension
1111
{
1212
public ?string $factory;

src/Attributes/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use InvalidArgumentException;
77
use Vyuldashev\LaravelOpenApi\Factories\ResponseFactory;
88

9-
#[Attribute(Attribute::TARGET_METHOD)]
9+
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
1010
class Response
1111
{
1212
public string $factory;

src/RouteInformation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ class RouteInformation
4141

4242
/**
4343
* @param Route $route
44-
* @return HigherOrderTapProxy|mixed|RouteInformation
44+
* @return RouteInformation
4545
* @throws ReflectionException
4646
*/
47-
public static function createFromRoute(Route $route): mixed
47+
public static function createFromRoute(Route $route): RouteInformation
4848
{
4949
return tap(new static(), static function (self $instance) use ($route): void {
5050
$method = collect($route->methods())

0 commit comments

Comments
 (0)