jublo / codebird-php

Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
https://www.jublo.net/projects/codebird/php
GNU General Public License v3.0
777 stars 235 forks source link

Undefined index: statuses/update Line Number: 1703 #147

Closed mihroot closed 8 years ago

mihroot commented 8 years ago

PHP notification occurs when $method_template/key(in my case statuses/update) not exists in self::$_possible_files array.

mynetx commented 8 years ago

Can you give me a sample which calling code will cause this?

mihroot commented 8 years ago

Hi! Sorry for my late reply. Here is a sample:

$_twitter_client = new \Codebird\Codebird;

$_twitter_client->setToken('#####-###########', '#######################');
$_twitter_client->setConsumerKey('####', '####');

$_twitter_client->statuses_update(['status'=>'Hello world!']);
mynetx commented 8 years ago

Testing your patch was successful—no PHP Notice was thrown.

https://twitter.com/LarryMcTweet/status/681430422723649536