CIDI / kennethware-2.0

Tools to facilitate rapid course development in Instructure Canvas.
https://usu.instructure.com/courses/305202
GNU Affero General Public License v3.0
39 stars 29 forks source link

TrivialOAuthDataStore.php Function Declaration Errors #29

Open millerjm opened 8 years ago

millerjm commented 8 years ago

The code in lines 38-44 of https://github.com/CIDI/kennethware-2.0/blob/master/wizard/resources/TrivialOAuthDataStore.php function declarations are incorrect and throws these errors:

Strict Standards: Declaration of TrivialOAuthDataStore::new_request_token() should be compatible with OAuthDataStore::new_request_token($consumer, $callback = NULL) in/usr/local/designtools/wizard/resources/TrivialOAuthDataStore.php on line 0

Strict Standards: Declaration of TrivialOAuthDataStore::new_access_token() should be compatible with OAuthDataStore::new_access_token($token, $consumer, $verifier = NULL) in/usr/local/designtools/wizard/resources/TrivialOAuthDataStore.php on line 0

I modified those lines to the code below to match OAuth.php and no longer get the errors:

    function new_request_token($consumer, $callback = null) {}
    function new_access_token($token, $consumer, $verifier = null) {}

See attached for the updated file that I'm using.
TrivialOAuthDataStore.zip