Skip to content

Commit 8d109ee

Browse files
committed
fix misspell
1 parent f13a3cd commit 8d109ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/spec/Parameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected function performValidation()
118118
$this->addError('A Parameter Object MUST contain either a schema property, or a content property, but not both.');
119119
}
120120
if (! empty($this->content) && count($this->content) !== 1) {
121-
$this->addError('A Parameter Object MUST with Content property must have A SINGLE content type.');
121+
$this->addError('A Parameter Object with Content property MUST have A SINGLE content type.');
122122
}
123123

124124
$supportedSerializationStyles = [

tests/spec/ParameterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function testItValidatesContentCanHaveOnlySingleKey()
186186
, Parameter::class);
187187

188188
$result = $parameter->validate();
189-
$this->assertEquals(['A Parameter Object MUST with Content property must have A SINGLE content type.'], $parameter->getErrors());
189+
$this->assertEquals(['A Parameter Object with Content property MUST have A SINGLE content type.'], $parameter->getErrors());
190190
$this->assertFalse($result);
191191
}
192192

0 commit comments

Comments
 (0)