Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilian Ranguelov committed Apr 2, 2019
2 parents c7bf673 + 38e1907 commit acc66f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
[1.0.1]: https://github.com/real-digital/gtin-validator/commits/1.0.1
[1.0.2]: https://github.com/real-digital/gtin-validator/commits/1.0.2
[1.1.0]: https://github.com/real-digital/gtin-validator/commits/1.1.0
[1.1.1]: https://github.com/real-digital/gtin-validator/commits/1.1.1

# Changelog

All notable changes to this project will be listed in this file.

## [1.1.1] - 2019-04-02

- Add missing case for reasonMessage method inside NonNormalizable exception

## [1.1.0] - 2019-03-12

- Provide compatibility with PHPUnit 8
Expand Down
3 changes: 3 additions & 0 deletions src/Gtin/NonNormalizable.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ private function reasonMessage(Specification $specification): string
case self::CODE_PREFIX:
$message = 'Prefix is invalid';
break;
case self::CODE_CHECKSUM:
$message = 'Checksum is invalid';
break;
default:
$message = 'Invalid argument has been passed';
break;
Expand Down

0 comments on commit acc66f8

Please sign in to comment.