Skip to content

Initial import #4

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

Merged
merged 13 commits into from
May 2, 2015
Merged

Initial import #4

merged 13 commits into from
May 2, 2015

Conversation

sagikazarmark
Copy link
Member

This PR contains the initial import of interfaces and the following changes:

  • Docblock cleanup (discussed with @egeloen in an earlier issue)
  • Changed array notation to PHP 5.4 (It is shorter and does not mess with parenthesis)
  • Since this is an interface package, the underlying interfaces should remain stable as well: psr/http-message is required explicitly

@egeloen egeloen mentioned this pull request Apr 30, 2015
*
* @param string $name
*
* @return mixed
Copy link

Choose a reason for hiding this comment

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

mixed can be replaced by string|array

*
* @param null|string|UriInterface $baseUri
*
* @throws HttpAdapterException If the base uri is invalid.
Copy link

Choose a reason for hiding this comment

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

If it comes from the old package, I'm wrong... By reading the current implementation, this is an exception which comes from phly/http so it can't be an HttpAdapterException.

Copy link
Member Author

Choose a reason for hiding this comment

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

So what's the prognosis? Should it be simply removed?

*
* @return ResponseInterface[]
*
* @throws MultiHttpAdapterException If an error occurred when you don't provide the error callable.
Copy link

Choose a reason for hiding this comment

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

If an error occured is enough since we can't pass a callable anymore.

egeloen pushed a commit that referenced this pull request May 2, 2015
@egeloen egeloen merged commit 3c48090 into master May 2, 2015
@egeloen egeloen deleted the initial_import branch May 2, 2015 09:59
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.

3 participants