File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ 0.12.22] - 2019-10-22
8+
9+ ### Added
10+ - ` Schema::unboolSchemaData ` and ` Schema::unboolSchema ` to public visibility.
11+
712## [ 0.12.21] - 2019-10-01
813
914### Fixed
@@ -14,5 +19,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1419### Changed
1520- Export ` null ` value instead of skipping it for properties having ` null ` type.
1621
22+ [ 0.12.22 ] : https://github.com/swaggest/php-code-builder/compare/v0.12.21...v0.12.22
1723[ 0.12.21 ] : https://github.com/swaggest/php-code-builder/compare/v0.12.20...v0.12.21
1824[ 0.12.20 ] : https://github.com/swaggest/php-code-builder/compare/v0.12.19...v0.12.20
Original file line number Diff line number Diff line change @@ -1335,12 +1335,12 @@ public function makeObjectItem(Context $options = null)
13351335 }
13361336
13371337 /**
1338- * Resolves boolean schema into Schema instance
1338+ * Resolves boolean schema into Schema instance.
13391339 *
13401340 * @param mixed $schema
13411341 * @return mixed|Schema
13421342 */
1343- private static function unboolSchema ($ schema )
1343+ public static function unboolSchema ($ schema )
13441344 {
13451345 static $ trueSchema ;
13461346 static $ falseSchema ;
@@ -1363,10 +1363,12 @@ private static function unboolSchema($schema)
13631363 }
13641364
13651365 /**
1366+ * Converts bool value into an object schema.
1367+ *
13661368 * @param mixed $data
13671369 * @return \stdClass
13681370 */
1369- private static function unboolSchemaData ($ data )
1371+ public static function unboolSchemaData ($ data )
13701372 {
13711373 static $ trueSchema ;
13721374 static $ falseSchema ;
You can’t perform that action at this time.
0 commit comments