Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Handle PHP 7+ Throwable (also before defaulting to status 406) #55

Merged
merged 23 commits into from
Jul 24, 2017

Conversation

bartbrinkman
Copy link
Contributor

As PR #52, but also handles onRenderError (possibly returning a 406 on what could well be a 500).

@MichaelGooden
Copy link
Contributor

Requires tests. Consider basing your additional changes off of #52?

Handle PHP 7 Throwables in ApiProblemListener

Conflicts:
	composer.lock
Handle PHP 7+ Throwable (also before defaulting to status 406)

Conflicts:
	src/Listener/ApiProblemListener.php
Adds two new test cases for zfcampus#55, one each for testing exceptions and
throwables (the latter depends on PHP 7.0).
Install all deps always, but then downgrade if we are running under PHP
5.6.
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 19a4ebd on im-bart:hotfix/handle_throwable into ** on zfcampus:master**.

@weierophinney
Copy link
Member

@im-bart I've rebased against current master, added tests, and pushed changes to your fork. Travis is now green, so I'll merge.

Thanks!

@weierophinney weierophinney merged commit 19a4ebd into zfcampus:master Jul 24, 2017
weierophinney added a commit that referenced this pull request Jul 24, 2017
weierophinney added a commit that referenced this pull request Jul 24, 2017
weierophinney added a commit that referenced this pull request Jul 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants