From 43b82d2534dfbb3266e15ed1c0e1c5b2bd5a8880 Mon Sep 17 00:00:00 2001 From: thinkverse Date: Thu, 29 Apr 2021 16:23:36 +0200 Subject: [PATCH 1/6] Add TypeError to changelog --- reference/strings/functions/explode.xml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/reference/strings/functions/explode.xml b/reference/strings/functions/explode.xml index 9040e00f3689..64c21549837b 100644 --- a/reference/strings/functions/explode.xml +++ b/reference/strings/functions/explode.xml @@ -190,6 +190,29 @@ Array + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + explode will now throw TypeError + when separator parameter is given an empty argument. + + + + + + + &reftitle.notes; ¬e.bin-safe; From db23d09e4b8bc6ba8beb9d026add21de5e1dd682 Mon Sep 17 00:00:00 2001 From: thinkverse Date: Thu, 29 Apr 2021 16:27:14 +0200 Subject: [PATCH 2/6] Update changelog description --- reference/strings/functions/explode.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/strings/functions/explode.xml b/reference/strings/functions/explode.xml index 64c21549837b..5bc7a0c17984 100644 --- a/reference/strings/functions/explode.xml +++ b/reference/strings/functions/explode.xml @@ -205,7 +205,7 @@ Array 8.0.0 explode will now throw TypeError - when separator parameter is given an empty argument. + when separator parameter is given an empty string (""). From 67029e8bcf1a73c9c8d191219ed860cba86641d3 Mon Sep 17 00:00:00 2001 From: thinkverse Date: Thu, 29 Apr 2021 16:39:32 +0200 Subject: [PATCH 3/6] Add note about seperator values at start of end of string --- reference/strings/functions/explode.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reference/strings/functions/explode.xml b/reference/strings/functions/explode.xml index 5bc7a0c17984..ca9f97764f56 100644 --- a/reference/strings/functions/explode.xml +++ b/reference/strings/functions/explode.xml @@ -84,7 +84,10 @@ contained in string and a negative limit is used, then an empty array will be returned, otherwise an array containing - string will be returned. + string will be returned. If separator + values appear at the start or end of string, said values + will be added as an empty array value either in the first or last + position of the returned array respectively. From 8c094010869502a7e85c224580a71127864cdb8a Mon Sep 17 00:00:00 2001 From: thinkverse Date: Thu, 29 Apr 2021 17:03:16 +0200 Subject: [PATCH 4/6] Change position of changelog --- reference/strings/functions/explode.xml | 46 ++++++++++++------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/reference/strings/functions/explode.xml b/reference/strings/functions/explode.xml index ca9f97764f56..6939036935a1 100644 --- a/reference/strings/functions/explode.xml +++ b/reference/strings/functions/explode.xml @@ -91,6 +91,29 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + explode will now throw TypeError + when separator parameter is given an empty string (""). + + + + + + + &reftitle.examples; @@ -193,29 +216,6 @@ Array - - &reftitle.changelog; - - - - - &Version; - &Description; - - - - - 8.0.0 - - explode will now throw TypeError - when separator parameter is given an empty string (""). - - - - - - - &reftitle.notes; ¬e.bin-safe; From 1881e3db8ea2f20815ad75d9b630e7b15f4805de Mon Sep 17 00:00:00 2001 From: thinkverse Date: Thu, 29 Apr 2021 17:10:57 +0200 Subject: [PATCH 5/6] Add fold marker comments --- reference/strings/functions/explode.xml | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/reference/strings/functions/explode.xml b/reference/strings/functions/explode.xml index 6939036935a1..a07041f20d10 100644 --- a/reference/strings/functions/explode.xml +++ b/reference/strings/functions/explode.xml @@ -6,7 +6,7 @@ Split a string by a string - + &reftitle.description; arrayexplode @@ -19,9 +19,9 @@ string formed by splitting it on boundaries formed by the string separator. - + - + &reftitle.parameters; @@ -68,9 +68,9 @@ string argument. - + - + &reftitle.returnvalues; Returns an array of strings @@ -89,9 +89,9 @@ will be added as an empty array value either in the first or last position of the returned array respectively. - + - + &reftitle.changelog; @@ -112,9 +112,9 @@ - + - + &reftitle.examples; @@ -214,14 +214,14 @@ Array - + - + &reftitle.notes; ¬e.bin-safe; - + - + &reftitle.seealso; @@ -233,7 +233,7 @@ Array implode - + + &reftitle.description; arrayexplode @@ -19,9 +19,9 @@ string formed by splitting it on boundaries formed by the string separator. - + - + &reftitle.parameters; @@ -68,9 +68,9 @@ string argument. - + - + &reftitle.returnvalues; Returns an array of strings @@ -89,9 +89,9 @@ will be added as an empty array value either in the first or last position of the returned array respectively. - + - + &reftitle.changelog; @@ -112,9 +112,9 @@ - + - + &reftitle.examples; @@ -214,14 +214,14 @@ Array - + - + &reftitle.notes; ¬e.bin-safe; - + - + &reftitle.seealso; @@ -233,7 +233,7 @@ Array implode - +