Skip to content

Commit 0402d4a

Browse files
committed
Merge branch 'master' into 2.0-dev
2 parents 964e0d4 + 64ed484 commit 0402d4a

File tree

7 files changed

+39
-39
lines changed

7 files changed

+39
-39
lines changed

Tests/InflectorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
3+
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
44
* @license GNU General Public License version 2 or later; see LICENSE
55
*/
66

Tests/NormaliseTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
3+
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
44
* @license GNU General Public License version 2 or later; see LICENSE
55
*/
66

Tests/StringHelperTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
3+
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
44
* @license GNU General Public License version 2 or later; see LICENSE
55
*/
66

src/Inflector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Part of the Joomla Framework String Package
44
*
5-
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
5+
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
66
* @license GNU General Public License version 2 or later; see LICENSE
77
*/
88

src/Normalise.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Part of the Joomla Framework String Package
44
*
5-
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
5+
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
66
* @license GNU General Public License version 2 or later; see LICENSE
77
*/
88

src/StringHelper.php

+33-33
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Part of the Joomla Framework String Package
44
*
5-
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
5+
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
66
* @license GNU General Public License version 2 or later; see LICENSE
77
*/
88

@@ -130,7 +130,7 @@ public static function is_ascii($str)
130130
*
131131
* @return integer Unicode ordinal for the character
132132
*
133-
* @link https://secure.php.net/ord
133+
* @link https://www.php.net/ord
134134
* @since 1.4.0
135135
*/
136136
public static function ord($chr)
@@ -147,9 +147,9 @@ public static function ord($chr)
147147
* @param string $search String being searched for
148148
* @param integer $offset Optional, specifies the position from which the search should be performed
149149
*
150-
* @return mixed Number of characters before the first match or FALSE on failure
150+
* @return integer|boolean Number of characters before the first match or FALSE on failure
151151
*
152-
* @link https://secure.php.net/strpos
152+
* @link https://www.php.net/strpos
153153
* @since 1.3.0
154154
*/
155155
public static function strpos($str, $search, $offset = false)
@@ -171,9 +171,9 @@ public static function strpos($str, $search, $offset = false)
171171
* @param string $search String being searched for.
172172
* @param integer $offset Offset from the left of the string.
173173
*
174-
* @return mixed Number of characters before the last match or false on failure
174+
* @return integer|boolean Number of characters before the last match or false on failure
175175
*
176-
* @link https://secure.php.net/strrpos
176+
* @link https://www.php.net/strrpos
177177
* @since 1.3.0
178178
*/
179179
public static function strrpos($str, $search, $offset = 0)
@@ -190,9 +190,9 @@ public static function strrpos($str, $search, $offset = 0)
190190
* @param integer $offset Number of UTF-8 characters offset (from left)
191191
* @param integer $length Optional length in UTF-8 characters from offset
192192
*
193-
* @return mixed string or FALSE if failure
193+
* @return string|boolean
194194
*
195-
* @link https://secure.php.net/substr
195+
* @link https://www.php.net/substr
196196
* @since 1.3.0
197197
*/
198198
public static function substr($str, $offset, $length = false)
@@ -215,9 +215,9 @@ public static function substr($str, $offset, $length = false)
215215
*
216216
* @param string $str String being processed
217217
*
218-
* @return mixed Either string in lowercase or FALSE is UTF-8 invalid
218+
* @return string|boolean Either string in lowercase or FALSE is UTF-8 invalid
219219
*
220-
* @link https://secure.php.net/strtolower
220+
* @link https://www.php.net/strtolower
221221
* @since 1.3.0
222222
*/
223223
public static function strtolower($str)
@@ -235,9 +235,9 @@ public static function strtolower($str)
235235
*
236236
* @param string $str String being processed
237237
*
238-
* @return mixed Either string in uppercase or FALSE is UTF-8 invalid
238+
* @return string|boolean Either string in uppercase or FALSE is UTF-8 invalid
239239
*
240-
* @link https://secure.php.net/strtoupper
240+
* @link https://www.php.net/strtoupper
241241
* @since 1.3.0
242242
*/
243243
public static function strtoupper($str)
@@ -254,7 +254,7 @@ public static function strtoupper($str)
254254
*
255255
* @return integer Number of UTF-8 characters in string.
256256
*
257-
* @link https://secure.php.net/strlen
257+
* @link https://www.php.net/strlen
258258
* @since 1.3.0
259259
*/
260260
public static function strlen($str)
@@ -274,7 +274,7 @@ public static function strlen($str)
274274
*
275275
* @return string UTF-8 String
276276
*
277-
* @link https://secure.php.net/str_ireplace
277+
* @link https://www.php.net/str_ireplace
278278
* @since 1.3.0
279279
*/
280280
public static function str_ireplace($search, $replace, $str, $count = null)
@@ -300,7 +300,7 @@ public static function str_ireplace($search, $replace, $str, $count = null)
300300
*
301301
* @return string
302302
*
303-
* @link https://secure.php.net/str_pad
303+
* @link https://www.php.net/str_pad
304304
* @since 1.4.0
305305
*/
306306
public static function str_pad($input, $length, $padStr = ' ', $type = STR_PAD_RIGHT)
@@ -318,7 +318,7 @@ public static function str_pad($input, $length, $padStr = ' ', $type = STR_PAD_R
318318
*
319319
* @return array
320320
*
321-
* @link https://secure.php.net/str_split
321+
* @link https://www.php.net/str_split
322322
* @since 1.3.0
323323
*/
324324
public static function str_split($str, $splitLen = 1)
@@ -337,9 +337,9 @@ public static function str_split($str, $splitLen = 1)
337337
*
338338
* @return integer < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.
339339
*
340-
* @link https://secure.php.net/strcasecmp
341-
* @link https://secure.php.net/strcoll
342-
* @link https://secure.php.net/setlocale
340+
* @link https://www.php.net/strcasecmp
341+
* @link https://www.php.net/strcoll
342+
* @link https://www.php.net/setlocale
343343
* @since 1.3.0
344344
*/
345345
public static function strcasecmp($str1, $str2, $locale = false)
@@ -394,9 +394,9 @@ public static function strcasecmp($str1, $str2, $locale = false)
394394
*
395395
* @return integer < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.
396396
*
397-
* @link https://secure.php.net/strcmp
398-
* @link https://secure.php.net/strcoll
399-
* @link https://secure.php.net/setlocale
397+
* @link https://www.php.net/strcmp
398+
* @link https://www.php.net/strcoll
399+
* @link https://www.php.net/setlocale
400400
* @since 1.3.0
401401
*/
402402
public static function strcmp($str1, $str2, $locale = false)
@@ -449,7 +449,7 @@ public static function strcmp($str1, $str2, $locale = false)
449449
*
450450
* @return integer The length of the initial segment of str1 which does not contain any of the characters in str2
451451
*
452-
* @link https://secure.php.net/strcspn
452+
* @link https://www.php.net/strcspn
453453
* @since 1.3.0
454454
*/
455455
public static function strcspn($str, $mask, $start = null, $length = null)
@@ -478,7 +478,7 @@ public static function strcspn($str, $mask, $start = null, $length = null)
478478
*
479479
* @return string the sub string
480480
*
481-
* @link https://secure.php.net/stristr
481+
* @link https://www.php.net/stristr
482482
* @since 1.3.0
483483
*/
484484
public static function stristr($str, $search)
@@ -495,7 +495,7 @@ public static function stristr($str, $search)
495495
*
496496
* @return string The string in reverse character order
497497
*
498-
* @link https://secure.php.net/strrev
498+
* @link https://www.php.net/strrev
499499
* @since 1.3.0
500500
*/
501501
public static function strrev($str)
@@ -515,7 +515,7 @@ public static function strrev($str)
515515
*
516516
* @return integer
517517
*
518-
* @link https://secure.php.net/strspn
518+
* @link https://www.php.net/strspn
519519
* @since 1.3.0
520520
*/
521521
public static function strspn($str, $mask, $start = null, $length = null)
@@ -545,7 +545,7 @@ public static function strspn($str, $mask, $start = null, $length = null)
545545
*
546546
* @return string
547547
*
548-
* @link https://secure.php.net/substr_replace
548+
* @link https://www.php.net/substr_replace
549549
* @since 1.3.0
550550
*/
551551
public static function substr_replace($str, $repl, $start, $length = null)
@@ -570,7 +570,7 @@ public static function substr_replace($str, $repl, $start, $length = null)
570570
*
571571
* @return string The trimmed string
572572
*
573-
* @link https://secure.php.net/ltrim
573+
* @link https://www.php.net/ltrim
574574
* @since 1.3.0
575575
*/
576576
public static function ltrim($str, $charlist = false)
@@ -599,7 +599,7 @@ public static function ltrim($str, $charlist = false)
599599
*
600600
* @return string The trimmed string
601601
*
602-
* @link https://secure.php.net/rtrim
602+
* @link https://www.php.net/rtrim
603603
* @since 1.3.0
604604
*/
605605
public static function rtrim($str, $charlist = false)
@@ -628,7 +628,7 @@ public static function rtrim($str, $charlist = false)
628628
*
629629
* @return string The trimmed string
630630
*
631-
* @link https://secure.php.net/trim
631+
* @link https://www.php.net/trim
632632
* @since 1.3.0
633633
*/
634634
public static function trim($str, $charlist = false)
@@ -659,7 +659,7 @@ public static function trim($str, $charlist = false)
659659
* else consider the string of words separated by the delimiter, apply the ucfirst to each words
660660
* and return the string with the new delimiter
661661
*
662-
* @link https://secure.php.net/ucfirst
662+
* @link https://www.php.net/ucfirst
663663
* @since 1.3.0
664664
*/
665665
public static function ucfirst($str, $delimiter = null, $newDelimiter = null)
@@ -686,7 +686,7 @@ public static function ucfirst($str, $delimiter = null, $newDelimiter = null)
686686
*
687687
* @return string String with first char of each word uppercase
688688
*
689-
* @link https://secure.php.net/ucwords
689+
* @link https://www.php.net/ucwords
690690
* @since 1.3.0
691691
*/
692692
public static function ucwords($str)
@@ -755,7 +755,7 @@ public static function valid($str)
755755
* @return boolean TRUE if string is valid UTF-8
756756
*
757757
* @see StringHelper::valid
758-
* @link https://secure.php.net/manual/en/reference.pcre.pattern.modifiers.php#54805
758+
* @link https://www.php.net/manual/en/reference.pcre.pattern.modifiers.php#54805
759759
* @since 1.3.0
760760
*/
761761
public static function compliant($str)

src/phputf8/utf8.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* and https://github.com/php/php-src/commit/97df99a6d7d96a886ac143337fecad775907589a
4343
* for additional references
4444
*/
45-
if ( PHP_VERSION_ID < 80000 && ini_get('mbstring.func_overload') & MB_OVERLOAD_STRING ) {
45+
if ( PHP_VERSION_ID < 80000 && ((int) ini_get('mbstring.func_overload')) & MB_OVERLOAD_STRING ) {
4646
trigger_error('String functions are overloaded by mbstring',E_USER_ERROR);
4747
}
4848
mb_internal_encoding('UTF-8');

0 commit comments

Comments
 (0)