Commit dc772d8
authored
fix: prevent php warning in looks_like_json function
If $thing only contains a space it will generate a php warning when doing ltrim( $thing )[0]. This fixes the issue while still being compatible with php 5.4+.1 parent 20dc1ec commit dc772d8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
| 546 | + | |
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| |||
0 commit comments