Skip to content

Commit

Permalink
fix: remove useless param
Browse files Browse the repository at this point in the history
  • Loading branch information
cxtom committed Mar 15, 2019
1 parent c0c4d1e commit dfad257
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/runtime/Ts2Php_Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@ static public function includes($haystack, $needle, $postion = 0){
* string.prototype.indexOf
* @param $haystack {string}
* @param $needle {string}
* @param $postion {number}
* @return {boolean}
* @return {number}
*/
static public function str_pos($haystack, $needle, $postion = 0){
static public function str_pos($haystack, $needle){
$pos = strpos($haystack, $needle);
return $pos === false ? -1 : $pos;
}
Expand Down

0 comments on commit dfad257

Please sign in to comment.