mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-23 09:02:41 +00:00
Added missing static keyword to Misc\ValueInfo::normalize()
This commit is contained in:
parent
3e42fbdddf
commit
b8ed7c6bf8
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class ValueInfo {
|
||||||
const M_STRICT = 1 << 30; // throw an exception if the type doesn't match
|
const M_STRICT = 1 << 30; // throw an exception if the type doesn't match
|
||||||
const M_ARRAY = 1 << 31; // the value should be a flat array of values of the specified type; indexed and associative are both acceptable
|
const M_ARRAY = 1 << 31; // the value should be a flat array of values of the specified type; indexed and associative are both acceptable
|
||||||
|
|
||||||
public function normalize($value, int $type, string $dateFormat = null) {
|
public static function normalize($value, int $type, string $dateFormat = null) {
|
||||||
$allowNull = ($type & self::M_NULL);
|
$allowNull = ($type & self::M_NULL);
|
||||||
$strict = ($type & (self::M_STRICT | self::M_DROP));
|
$strict = ($type & (self::M_STRICT | self::M_DROP));
|
||||||
$drop = ($type & self::M_DROP);
|
$drop = ($type & self::M_DROP);
|
||||||
|
|
Loading…
Reference in a new issue