Skip to content

Commit f53b993

Browse files
committed
add setLocale
1 parent 9fec9ed commit f53b993

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `twitter-streaming-api` will be documented in this file
44

5+
## 1.2.0 - 2017-05-23
6+
7+
- add `setLocale`
8+
59
## 1.1.0 - 2017-02-07
610

711
- add ability to follow a user's tweets using `setFollow()`

src/PublicStream.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,16 @@ public function whenTweets($twitterUserIds, callable $whenTweets)
5959

6060
return $this;
6161
}
62-
62+
6363
/**
64+
* Restricts tweets to the given language, given by an ISO 639-1 code
65+
* (http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
66+
*
6467
* @param string $lang
65-
* Restricts tweets to the given language, given by an ISO 639-1 code (http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
6668
*
6769
* @return $this
6870
*/
69-
public function setLocale($lang)
71+
public function setLocale(string $lang)
7072
{
7173
$this->stream->setLang($lang);
7274

0 commit comments

Comments
 (0)