Skip to content

Commit 6483852

Browse files
authored
Merge pull request #89 from szepeviktor/typos
Fix typos
2 parents 48098ad + d63ff9c commit 6483852

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Utils/RenderHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function validationError(PropertyValidatorInterface $validator): string
7575
/**
7676
* check if the property may contain/accept null
7777
* - if the property is required the property may never contain null (if it's a null property null is already
78-
* contained in the proprety type hints)
78+
* contained in the property type hints)
7979
* - if the output type is requested null may be contained (if the property was not set)
8080
* if implicitNull is enabled null may be set for the property
8181
* - except the property contains a default value and implicit null is disabled. in this case null is not

tests/Basic/SchemaDependencyTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public function invalidSchemaDependencyCompositionDataProvider(): array
252252
}
253253

254254
/**
255-
* @dataProvider validSchemaDependencyNestedObejctDataProvider
255+
* @dataProvider validSchemaDependencyNestedObjectDataProvider
256256
*/
257257
public function testSchemaDependencyNestedObject(array $propertyValue): void
258258
{
@@ -270,7 +270,7 @@ public function testSchemaDependencyNestedObject(array $propertyValue): void
270270
}
271271
}
272272

273-
public function validSchemaDependencyNestedObejctDataProvider(): array
273+
public function validSchemaDependencyNestedObjectDataProvider(): array
274274
{
275275
return [
276276
'No properties provided' => [[]],

tests/Objects/StringPropertyTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function invalidPatternProvider(): array
248248
public function testUnknownFormatThrowsAnException(): void
249249
{
250250
$this->expectException(SchemaException::class);
251-
$this->expectExceptionMessage('Unsupported format onyNumbers');
251+
$this->expectExceptionMessage('Unsupported format onlyNumbers');
252252

253253
$this->generateClassFromFile('StringPropertyFormat.json');
254254
}
@@ -257,7 +257,7 @@ public function testStringFormatCheckIsValid(): void
257257
{
258258
$className = $this->generateClassFromFile(
259259
'StringPropertyFormat.json',
260-
(new GeneratorConfiguration())->addFormat('onyNumbers', new FormatValidatorFromRegEx('/^\d+$/')),
260+
(new GeneratorConfiguration())->addFormat('onlyNumbers', new FormatValidatorFromRegEx('/^\d+$/')),
261261
);
262262

263263
$object = new $className(['property' => '12345']);
@@ -270,11 +270,11 @@ public function testStringFormatCheckIsValid(): void
270270
public function testInvalidStringFormatCheck(string $value): void
271271
{
272272
$this->expectException(ErrorRegistryException::class);
273-
$this->expectExceptionMessage('Value for property must match the format onyNumbers');
273+
$this->expectExceptionMessage('Value for property must match the format onlyNumbers');
274274

275275
$className = $this->generateClassFromFile(
276276
'StringPropertyFormat.json',
277-
(new GeneratorConfiguration())->addFormat('onyNumbers', new FormatValidatorFromRegEx('/^\d+$/')),
277+
(new GeneratorConfiguration())->addFormat('onlyNumbers', new FormatValidatorFromRegEx('/^\d+$/')),
278278
);
279279

280280
new $className(['property' => $value]);

tests/Schema/StringPropertyTest/StringPropertyFormat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"properties": {
44
"property": {
55
"type": "string",
6-
"format": "onyNumbers"
6+
"format": "onlyNumbers"
77
}
88
}
99
}

0 commit comments

Comments
 (0)