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

Initialize result message with empty string instead of null #94

Merged
merged 1 commit into from
Sep 17, 2018
Merged

Initialize result message with empty string instead of null #94

merged 1 commit into from
Sep 17, 2018

Conversation

meetmatt
Copy link
Contributor

@meetmatt meetmatt commented Sep 16, 2018

Related to liip/LiipMonitorBundle#193

Provide a narrative description of what you are trying to accomplish:

  • Are you fixing a bug?
    No, just an inconsistency between an interface and abstract implementation

  • Detail how the bug is invoked currently.
    See #170 Strict null check of result message in console output liip/LiipMonitorBundle#193

  • Detail the original, incorrect behavior.
    Namespace: ZendDiagnostics\Result
    ResultInterface defines message property as a non-nullable string.
    In AbstractResult it's defined/used as null|string.

  • Detail the new, expected behavior.
    Initialize message as empty string.

  • Base your feature on the master branch, and submit against that branch.
    Done.

  • Add a regression test that demonstrates the bug, and proves the fix.
    It wasn't covered with test, but the change doesn't require test IMO.

  • Add a CHANGELOG.md entry for the fix.
    Done.

  • Are you creating a new feature?
    No.

  • Is this related to quality assurance?
    No.

  • Is this related to documentation?
    No.

@weierophinney weierophinney merged commit 527d380 into zendframework:master Sep 17, 2018
weierophinney added a commit that referenced this pull request Sep 17, 2018
- References the pull request
- Makes it a fix instead of a change
- Puts it in the correct changelog (1.3.1, not 1.3.2)
weierophinney added a commit that referenced this pull request Sep 17, 2018
weierophinney added a commit that referenced this pull request Sep 17, 2018
Forward port #94

Conflicts:
	CHANGELOG.md
@weierophinney
Copy link
Member

Thanks, @meetmatt - merged, and released as 1.3.1.

@meetmatt meetmatt deleted the hotfix/abstract-result-message-default-value branch September 17, 2018 16:24
@meetmatt
Copy link
Contributor Author

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants