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.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 0.12.22] - 2019-10-22
8
+
9
+ ### Added
10
+ - ` Schema::unboolSchemaData ` and ` Schema::unboolSchema ` to public visibility.
11
+
7
12
## [ 0.12.21] - 2019-10-01
8
13
9
14
### Fixed
@@ -14,5 +19,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
19
### Changed
15
20
- Export ` null ` value instead of skipping it for properties having ` null ` type.
16
21
22
+ [ 0.12.22 ] : https://github.com/swaggest/php-code-builder/compare/v0.12.21...v0.12.22
17
23
[ 0.12.21 ] : https://github.com/swaggest/php-code-builder/compare/v0.12.20...v0.12.21
18
24
[ 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)
1335
1335
}
1336
1336
1337
1337
/**
1338
- * Resolves boolean schema into Schema instance
1338
+ * Resolves boolean schema into Schema instance.
1339
1339
*
1340
1340
* @param mixed $schema
1341
1341
* @return mixed|Schema
1342
1342
*/
1343
- private static function unboolSchema ($ schema )
1343
+ public static function unboolSchema ($ schema )
1344
1344
{
1345
1345
static $ trueSchema ;
1346
1346
static $ falseSchema ;
@@ -1363,10 +1363,12 @@ private static function unboolSchema($schema)
1363
1363
}
1364
1364
1365
1365
/**
1366
+ * Converts bool value into an object schema.
1367
+ *
1366
1368
* @param mixed $data
1367
1369
* @return \stdClass
1368
1370
*/
1369
- private static function unboolSchemaData ($ data )
1371
+ public static function unboolSchemaData ($ data )
1370
1372
{
1371
1373
static $ trueSchema ;
1372
1374
static $ falseSchema ;
You can’t perform that action at this time.
0 commit comments