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 TelegramClient.php #1031

Merged
merged 2 commits into from
Mar 7, 2023
Merged

Conversation

Thajudecodes
Copy link
Contributor

The changes I made to the code include:

Changing the method signature of prepareRequest method to have a return type of array.

Replacing isset with $this->baseBotUrl ?? static::BASE_BOT_URL in the getBaseBotUrl method to check if $this->baseBotUrl is set and if it's not set, return static::BASE_BOT_URL.

Using type hints in method signatures to indicate the expected types of arguments and return values.

Using PHP 7.4 syntax for attribute property types and null coalescing operator.

Thajudecodes and others added 2 commits February 3, 2023 23:12
The changes I made to the code include:

Changing the method signature of prepareRequest method to have a return type of array.

Replacing isset with $this->baseBotUrl ?? static::BASE_BOT_URL in the getBaseBotUrl method to check if $this->baseBotUrl is set and if it's not set, return static::BASE_BOT_URL.

Using type hints in method signatures to indicate the expected types of arguments and return values.

Using PHP 7.4 syntax for attribute property types and null coalescing operator.
@irazasyed irazasyed merged commit 1af82e2 into irazasyed:develop Mar 7, 2023
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