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

Connection: check if the connection is still active with imap_ping #232

Merged
merged 4 commits into from
Oct 9, 2017

Conversation

wujku
Copy link
Contributor

@wujku wujku commented Oct 9, 2017

No description provided.

*
* @return bool
*/
public function isOpen()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per imap_ping page we can safely add bool return type.
Please add this signature to ConnectionInterface too.

@Slamdunk Slamdunk added this to the 1.1 milestone Oct 9, 2017
@Slamdunk Slamdunk changed the title Check if the connection is still active Connection: check if the connection is still active with imap_ping Oct 9, 2017
*
* @return bool
*/
public function isOpen(): bool
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This library is a wrapper for the imap extension, I would prefer to stick to the extension names: what about renaming this API to ping?

@Slamdunk Slamdunk merged commit b9ac812 into ddeboer:master Oct 9, 2017
@Slamdunk
Copy link
Collaborator

Slamdunk commented Oct 9, 2017

Thank you @wujku

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

Successfully merging this pull request may close these issues.

2 participants