1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

Rename defaultValue filter to casting

This commit is contained in:
kodumbeats 2021-08-31 14:00:28 -04:00
parent 656914f8dc
commit 53b8a1c245
2 changed files with 2 additions and 2 deletions

View file

@ -174,7 +174,7 @@ $collections = [
'required' => false,
'default' => null,
'array' => false,
'filters' => ['defaultValue'],
'filters' => ['casting'],
],
[
'$id' => 'signed',

View file

@ -184,7 +184,7 @@ DatabaseOld::addFilter('encrypt',
/**
* New DB Filters
*/
Database::addFilter('defaultValue',
Database::addFilter('casting',
function($value) {
return json_encode(['value' => $value]);
},