@@ 108-116 (lines=9) @@ | ||
105 | return false; |
|
106 | } |
|
107 | ||
108 | if ($value === null) { |
|
109 | if ($method->getParameters()[0]->allowsNull()) { |
|
110 | return true; |
|
111 | } |
|
112 | ||
113 | debug(ObjectFacade::DEBUG_LABEL)->output('[Error] First parameter of method %s is not allowed to be null', $method->getName()); |
|
114 | ||
115 | return false; |
|
116 | } |
|
117 | ||
118 | if (!$this->isValidValue($method->getParameters()[0], $value)) { |
|
119 | debug(ObjectFacade::DEBUG_LABEL)->output( |
|
@@ 118-126 (lines=9) @@ | ||
115 | return false; |
|
116 | } |
|
117 | ||
118 | if (!$this->isValidValue($method->getParameters()[0], $value)) { |
|
119 | debug(ObjectFacade::DEBUG_LABEL)->output( |
|
120 | '[Warning] Method %s does not accept value %s', |
|
121 | $method->getName(), |
|
122 | var_export($value, true) |
|
123 | ); |
|
124 | ||
125 | return false; |
|
126 | } |
|
127 | ||
128 | return true; |
|
129 | } |