sdlins / yii2-at-least-validator

Makes one or more attributes mandatory inside a set of attributes.
Apache License 2.0
28 stars 19 forks source link

Use of already defined message source config #16

Closed MainAero closed 6 years ago

MainAero commented 6 years ago

I'm using this validator within an application which is running with language 'de'. I'm getting a warning The message file for category 'messages' does not exist: .../vendor/codeonyii/yii2-at-least-validator/messages/de/messages.php. To get rid of this warning message I have to define a message source extra for message*. This PR make this extra config obsolete by checking if there is a responsible message source for messages defined. Which is in my case a wildcard * message source.

sdlins commented 6 years ago

The tests are failing. Please, try to fix so we can analyse your PR. Thank you for your contribution!