We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1db324 commit c911987Copy full SHA for c911987
tests/spec/OpenApiTest.php
@@ -221,7 +221,7 @@ public function testSpecs($openApiFile)
221
}
222
223
// security
224
- $this->assertInstanceOf(\cebe\openapi\spec\SecurityRequirements::class, $openapi->security);
+ $openapi->security !== null && $this->assertInstanceOf(\cebe\openapi\spec\SecurityRequirements::class, $openapi->security);
225
$this->assertAllInstanceOf(\cebe\openapi\spec\SecurityRequirement::class, $openapi->security->getRequirements());
226
227
// tags
0 commit comments