Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

Commit

Permalink
Updated Vendors
Browse files Browse the repository at this point in the history
[+]: update "portable-utf8" from 2.x -> 3.x 
[+]: update "anti-xss" from 1.x -> 2.x
  • Loading branch information
voku authored and brad-jones committed Sep 23, 2016
1 parent 0c228cb commit 33c00ae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -2,6 +2,7 @@ language: php

php:
- "hhvm"
- "7.1"
- "7.0"
- "5.6"
- "5.5"
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -14,15 +14,15 @@
"require":
{
"php": "^5.4 || ^7.0",
"voku/portable-utf8": "^2.0",
"voku/portable-utf8": "^3.0",
"icecave/parity": "^1.0"
},
"require-dev":
{
"couscous/couscous": "^1.5",
"codegyre/robo": "^0.7",
"phpunit/phpunit": "^4.8",
"voku/anti-xss": "^1.2",
"voku/anti-xss": "^2.0",
"voku/urlify": "^2.0",
"icanboogie/inflector": "^1.4",
"satooshi/php-coveralls": "^1.0"
Expand Down
7 changes: 6 additions & 1 deletion src/Methods/Misc.php
Expand Up @@ -113,7 +113,7 @@ public function repeat($multiplier)
/**
* Returns a reversed string. A multibyte version of strrev().
*
* @return Stringy Object with a reversed $str
* @return static Object with a reversed $str
*/
public function reverse()
{
Expand Down Expand Up @@ -211,6 +211,11 @@ public function tidy()
*/
public function countSubstr($substring, $caseSensitive = true)
{
if (!isset($this->scalarString[0]))
{
return 0;
}

if ($caseSensitive)
{
return UTF8::substr_count
Expand Down

0 comments on commit 33c00ae

Please sign in to comment.