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

Simplified exception message template #2

Merged
merged 1 commit into from
Oct 11, 2016

Conversation

Ocramius
Copy link
Member

moved to a private constant to avoid method cluttering

Just making scrutinizer-ci happy, but also happy to play around with constant visibility, finally :-)

moved to a private constant to avoid method cluttering
@Ocramius Ocramius added this to the 1.0.0 milestone Oct 11, 2016
@Ocramius Ocramius self-assigned this Oct 11, 2016
@@ -8,6 +8,16 @@

class NonSerialisableObject extends LogicException implements ExceptionInterface
{
private const ERROR_TEMPLATE = <<<'ERROR'
Copy link
Member

Choose a reason for hiding this comment

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

If it's a public const, surely you don't need to re-write it out in the test? Or is the reason explicitly to copy it to verify?

Copy link
Member Author

Choose a reason for hiding this comment

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

Explicitly copying to verify. The package provides very little, besides meaningful exception messages, so I just did the additional step of verifying things there.

@Ocramius Ocramius merged commit e289fc0 into master Oct 11, 2016
@Ocramius Ocramius deleted the cleanup/code-quality-improvements branch October 11, 2016 11:35
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