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

Update TelegramRequest.php #1054

Merged
merged 1 commit into from
Apr 5, 2023
Merged

Update TelegramRequest.php #1054

merged 1 commit into from
Apr 5, 2023

Conversation

irpcpro
Copy link
Contributor

@irpcpro irpcpro commented Apr 3, 2023

in construct when properties could be null, type of these setter methods value should be also include type of null. in other case these errors will throw :
Argument #1 ($accessToken) must be of type string, null given
Argument #1 ($endpoint) must be of type string, null given
Argument #1 ($method) must be of type string, null given

in construct when properties could be null, type of these setter methods value should be also include type of null.
in other case these errors will throw :
Argument irazasyed#1 ($accessToken) must be of type string, null given
Argument irazasyed#1 ($endpoint) must be of type string, null given
Argument irazasyed#1 ($method) must be of type string, null given
@codecov
Copy link

codecov bot commented Apr 3, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (2aff248) 43.76% compared to head (23c5f81) 43.76%.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #1054   +/-   ##
==========================================
  Coverage      43.76%   43.76%           
  Complexity       609      609           
==========================================
  Files            129      129           
  Lines           1805     1805           
==========================================
  Hits             790      790           
  Misses          1015     1015           
Impacted Files Coverage Δ
src/TelegramRequest.php 80.95% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@irazasyed
Copy link
Owner

Will this work in the required minimum PHP version?

@irazasyed irazasyed merged commit 63ea11a into irazasyed:develop Apr 5, 2023
@irpcpro
Copy link
Contributor Author

irpcpro commented Apr 5, 2023

in this file, there was type definition on each method inputs variable, and the type of property accessToken is already '?string'.
I've just added another type in each definition in this version & branch.

@irazasyed
Copy link
Owner

Yes. I merged it after checking. Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants