Skip to content

Commit

Permalink
Update Json.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Dec 23, 2024
1 parent 4e5ccd3 commit 12e03bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webfiori/json/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Json {
* will be ignored if the constant 'WF_VERBOSE' is defined and is set to true.
*
*/
public function __construct(array $initialData = [], string $propsStyle = null, string $lettersCase = null, bool $isFormatted = false) {
public function __construct(array $initialData = [], ?string $propsStyle = '', ?string $lettersCase = '', bool $isFormatted = false) {
$this->propsArr = [];

$this->setIsFormatted($isFormatted === true || (defined('WF_VERBOSE') && WF_VERBOSE === true));
Expand Down

0 comments on commit 12e03bc

Please sign in to comment.