Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oauth stub is missing the generateSignature() function #1502

Closed
nir-arad opened this issue Nov 11, 2020 · 2 comments
Closed

oauth stub is missing the generateSignature() function #1502

nir-arad opened this issue Nov 11, 2020 · 2 comments
Labels
Milestone

Comments

@nir-arad
Copy link

Describe the bug
With oauth stub enabled, the function Oauth::generateSignature() is not identified, and when used it is highlighted as an error.

To Reproduce

$oauth = new OAuth($api_key, $api_secret);
$oauth->setToken($access_token, $access_token_secret);
$nonce = mt_rand();
$oauth->setNonce($nonce);
$timestamp = time();
$oauth->setTimestamp($timestamp);
$sig = $oauth->generateSignature('POST', "https://api.twitter.com/1.1/statuses/update.json?status=my%20first%20tweet");

Expected behavior
intelephense should identify this function.

Screenshots
N/A

Platform and version

Version: 1.51.0 (user setup)
Commit: fcac248b077b55bae4ba5bab613fd6e9156c2f0c
Date: 2020-11-05T18:18:23.642Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.18363

Intelephense 1.5.4

Used with remote-ssh on a Fedora Core 31 machine:
Linux xxxHOSTNAMExxx 5.8.6-101.fc31.x86_64 #1 SMP Fri Sep 4 04:10:17 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

@bmewburn
Copy link
Owner

bmewburn commented Jan 1, 2021

@nir-arad
Copy link
Author

nir-arad commented Jan 1, 2021

Will you be opening a bug or should I?

@bmewburn bmewburn added this to the 1.7 milestone Mar 21, 2021
@bmewburn bmewburn closed this as completed Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants