Skip to content

Commit

Permalink
Fix number format registration (thephpleague#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
milous authored Feb 10, 2022
1 parent c3daf7c commit cc3a4a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Schema/TypeFormats/FormatsContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public static function addDefaults(): void
self::registerFormat('string', 'ipv6', StringIP6::class);

// number
self::registerFormat('string', 'float', NumberFloat::class);
self::registerFormat('string', 'double', NumberDouble::class);
self::registerFormat('number', 'float', NumberFloat::class);
self::registerFormat('number', 'double', NumberDouble::class);
}

/**
Expand Down

0 comments on commit cc3a4a1

Please sign in to comment.