Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
filisko committed Mar 11, 2020
1 parent 470bb54 commit 3745af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ Alternately, you can simply create your own class that extends GUMP. You only ha
```php
class MyClass extends GUMP
{
protected function filter_myfilter($value, $param = null)
protected function filter_myfilter($value, array $params = [])
{
return strtoupper($value);
}

protected function validate_myvalidator($field, array $input, array $params = null)
protected function validate_myvalidator($field, array $input, array $params = [])
{
return $input[$field] === 'good_value';
}
Expand Down

0 comments on commit 3745af2

Please sign in to comment.