| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | protected function set_validation_rules() |
||
| 7 | { |
||
| 8 | $this->set_error_delimiters('<div class="error">', '</div>'); |
||
| 9 | |||
| 10 | $this->set_rules('name', '名前', 'trim|required|max_length[64]'); |
||
|
|
|||
| 11 | $this->set_rules('zip', '郵便番号', 'trim|max_length[8]'); |
||
| 12 | $this->set_rules('addr', '住所', 'trim|required|max_length[128]'); |
||
| 13 | $this->set_rules('tel', '電話番号', 'trim|required|max_length[20]'); |
||
| 14 | $this->set_rules( |
||
| 15 | 'email', 'メールアドレス', 'trim|required|valid_email|max_length[64]' |
||
| 16 | ); |
||
| 17 | } |
||
| 18 | } |
||
| 19 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: