Skip to content

Commit

Permalink
Add spport to PHP 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bissolli committed Jun 15, 2019
1 parent e28f895 commit a7b98a9
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 70 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
],
"require": {
"php": ">=7.1.0",
"paquettg/php-html-parser": "^1.7",
"nesbot/carbon": "~1.32"
"nesbot/carbon": "~1.32",
"paquettg/php-html-parser": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "~5.5"
Expand Down
136 changes: 69 additions & 67 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function loadTweets()
Tweet::create([
'id' => $tweet->{'data-tweet-id'},
'username' => $tweet->{'data-screen-name'},
'is_retweet' => count($tweet->find('.js-retweet-text')[0]) > 0,
'is_retweet' => !is_null($tweet->find('.js-retweet-text')[0]),
'content' => $this->sanitizeNodeText($tweet->find('.tweet-text')[0]),
'created_at' => Carbon::createFromTimestampMs($this->sanitizeNodeAttr($tweet->find('.tweet-timestamp span')[0], 'data-time-ms')),
'replies_count' => $this->countAttr($tweet->find('.ProfileTweet-action--reply .ProfileTweet-actionCount'), 'data-tweet-stat-count'),
Expand Down

0 comments on commit a7b98a9

Please sign in to comment.