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

feat: add type hints to php #77

Merged
merged 1 commit into from
Feb 11, 2022
Merged

feat: add type hints to php #77

merged 1 commit into from
Feb 11, 2022

Conversation

peterdeme
Copy link
Contributor

No description provided.

@peterdeme peterdeme force-pushed the add-typing branch 6 times, most recently from f5841aa to 5e6c7d9 Compare February 8, 2022 12:49
@@ -1,34 +1,36 @@
<?php

declare(strict_types=0);
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if it's worth adding type hints when they are not strict

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@AnatolyRugalev I do not intend to introduce a breaking change now. I plan to enable it in the next major version.

Let's say that the type hints are just warnings for now.

Comment on lines -66 to -71
public function testCreateTokenExpirationThrowsIfNotUnixTimestamp()
{
$this->expectException(\GetStream\StreamChat\StreamException::class);
$expires = new DateTime();
$this->client->createToken("tommaso", $expires);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test fails with TypeError so I needed to drop it.

@peterdeme peterdeme merged commit 69d6567 into main Feb 11, 2022
@peterdeme peterdeme deleted the add-typing branch February 11, 2022 13:20
@github-actions github-actions bot mentioned this pull request Apr 5, 2022
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.

2 participants