File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 35
35
*/
36
36
class JsonableBehavior extends Behavior {
37
37
38
- const OPTIONS_DEFAULT = JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_ERROR_INF_OR_NAN | JSON_PARTIAL_OUTPUT_ON_ERROR ;
39
-
40
38
/**
41
39
* @var string|false|null
42
40
*/
@@ -92,7 +90,8 @@ public function initialize(array $config = []) {
92
90
$ this ->_table ->schema ()->columnType ($ field , 'array ' );
93
91
}
94
92
if ($ this ->_config ['encodeParams ' ]['options ' ] === null ) {
95
- $ this ->_config ['encodeParams ' ]['options ' ] = static ::OPTIONS_DEFAULT ;
93
+ $ options = JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_ERROR_INF_OR_NAN | JSON_PARTIAL_OUTPUT_ON_ERROR ;
94
+ $ this ->_config ['encodeParams ' ]['options ' ] = $ options ;
96
95
}
97
96
}
98
97
You can’t perform that action at this time.
0 commit comments