Skip to content

Commit adb1835

Browse files
committed
TODO/ TO DISCUSS | Tests_Formatting_WpParseStr
1 parent 7912ce3 commit adb1835

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/phpunit/tests/formatting/WpParseStr.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ public function data_wp_parse_str() {
7474
'_baba' => 'dudu',
7575
),
7676
),
77+
78+
/*
79+
* TO DISCUSS:
80+
* Should we test array/object inputs ? And add safeguards in the function for those ?
81+
*
82+
* Default (current) behaviour for both arrays as well as objects:
83+
* - PHP 5.4-7.4: warning + returns `null`.
84+
* - PHP 8.0+: fatal TypeError.
85+
*/
7786
);
7887
}
7988

0 commit comments

Comments
 (0)