Skip to content

Conversation

@Nyholm
Copy link
Member

@Nyholm Nyholm commented Jan 20, 2019

No description provided.

final class Deferred implements Promise
{
private $value;

Copy link
Contributor

Choose a reason for hiding this comment

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

imho it would make sense to have phpdoc for the types of all fields here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you

src/Deferred.php Outdated
private $value;

/**
* @var Exception|null
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be Psr\Http\Client\ClientExceptionInterface ? (i see that for now the type declaration in the method is the httplug exception interface, but psr exception would be future proof...

Copy link
Member Author

Choose a reason for hiding this comment

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

You are correct. Thanks

@dbu dbu merged commit ff46215 into php-http:master Jan 21, 2019
@Nyholm Nyholm deleted the patch-cleanup branch January 21, 2019 07:15
@Nyholm
Copy link
Member Author

Nyholm commented Jan 21, 2019

Thank you

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