Comments (4)
Unfortunately not, because in Zend\Validator\File\MimeType
we have:
protected $messageTemplates = [
self::FALSE_TYPE => "File has an incorrect mimetype of '%type%'",
self::NOT_DETECTED => "The mimetype could not be detected from the file",
self::NOT_READABLE => "File is not readable or does not exist",
];
so it is always using constants from MimeType
.
We have the same constant names in ExcludeMimeType
, but different constant values and we are using self
in definition of the message template array. So @Jakovitz has right. It's a bug.
We can't use static
instead of self
in message template array definition (because of "static::" is not allowed in compile-time constants
) so probably array have to be redefined in ExcludeMimeType
...
from zend-validator.
it extends Zend\Validator\File\MimeType
:
class ExcludeMimeType extends MimeType
so, no need to re-define the $messageTemplates
from zend-validator.
this can be closed then
from zend-validator.
can be closed in favor of #92
from zend-validator.
Related Issues (20)
- Missing support for emojis as valid punycode HOT 1
- ZF3 Using Explode with InArray validator as child breaks validation messages format HOT 1
- EmailAddress - validateInternationalizedLocalPart method optional?
- Valid hostnames are consideres invalid with Umlaut and certain TLDs HOT 1
- Running URI through UriNormalize Filter appends `/` - causes Hostname TLD check to always fail HOT 2
- Method visibility bug HOT 5
- Hostname validator produces notice on empty domainPart HOT 1
- NoRecordExists and RecordExists does not work when exclude paramter is of cass Where HOT 2
- Validator for .DE domains outdated (lack of 'sharp s' support)
- Hostname validation not correct when not checking TLD
- Maybe bug in testMoscowWinterTime
- Zend_Validate_CreditCard return the valid type? HOT 1
- Proposal: Validation for breached passwords HOT 18
- AbstractValidator does not use messageKey when translating messages HOT 5
- cannot assign translator object to validator. HOT 7
- Can not translate messages from the FileUploadFile validator. HOT 4
- update for php 7.2 HOT 1
- Fatal error: Uncaught Error: Class 'Zend\Uri\Uri' not found HOT 1
- Hash and Crc32 validator issue if hash has only digits HOT 3
- container-interop/container-interop is abandoned, replace with psr/container HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zend-validator.