Skip to content

Commit

Permalink
Fixed a bug in the minimal example that caused Math::add function to …
Browse files Browse the repository at this point in the history
…skip validation
  • Loading branch information
Arul- committed Sep 23, 2011
1 parent e2913d4 commit b079fd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 404 deletions.
3 changes: 2 additions & 1 deletion examples/_002_minimal/math.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php
class Math
{
public $restler;
function add ($n1 = 1, $n2 = 1)
{
$this->_validate($n1, $n2);
$this->_validate(func_get_args());
return $n1 + $n2;
}
function multiply ($n1 = 5, $n2 = 2)
Expand Down
Loading

0 comments on commit b079fd2

Please sign in to comment.