PluginProbe
Depicter — Popup & Slider Builder / 1.9.2
Depicter — Popup & Slider Builder v1.9.2
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
← All changes | vendor/symfony/string/CodePointString.php +3 -3 trunk1.9.2 View file →
@@ -193,9 +193,9 @@
193 193
194 194 return $str;
195 195 }
196 196
197 - public function slice(int $start = 0, ?int $length = null): AbstractString
197 + public function slice(int $start = 0, int $length = null): AbstractString
198 198 {
199 199 $str = clone $this;
200 200 $str->string = mb_substr($this->string, $start, $length, 'UTF-8');
201 201
@@ -201,9 +201,9 @@
201 201
202 202 return $str;
203 203 }
204 204
205 - public function splice(string $replacement, int $start = 0, ?int $length = null): AbstractString
205 + public function splice(string $replacement, int $start = 0, int $length = null): AbstractString
206 206 {
207 207 if (!preg_match('//u', $replacement)) {
208 208 throw new InvalidArgumentException('Invalid UTF-8 string.');
209 209 }
@@ -215,9 +215,9 @@
215 215
216 216 return $str;
217 217 }
218 218
219 - public function split(string $delimiter, ?int $limit = null, ?int $flags = null): array
219 + public function split(string $delimiter, int $limit = null, int $flags = null): array
220 220 {
221 221 if (1 > $limit = $limit ?? \PHP_INT_MAX) {
222 222 throw new InvalidArgumentException('Split limit must be a positive integer.');
223 223 }