Skip to content

Commit d3fdb0d

Browse files
committed
small improvements
1 parent 79f4d28 commit d3fdb0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Attributes/Operation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ public function __construct(string $id = null, array $tags = [], string $securit
3232
$this->method = $method;
3333

3434
if ($security) {
35-
$this->security = class_exists($security) ? $security : app()->getNamespace().'OpenApi\\SecuritySchemes\\'.$security.'SecurityScheme';
35+
$this->security = class_exists($security) ? $security : app()->getNamespace().'OpenApi\\SecuritySchemes\\'.$security;
3636

3737
if (! is_a($this->security, SecuritySchemeFactory::class, true)) {
3838
throw new InvalidArgumentException(
39-
sprintf('Security class is either not declared or is not an instance of [%s]', SecuritySchemeFactory::class)
39+
sprintf('Security class is either not declared or is not an instance of %s', SecuritySchemeFactory::class)
4040
);
4141
}
4242
}

0 commit comments

Comments
 (0)