Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pequeno oops

indice de sincronia de argumentos e valores em checkOverload falhava com objetos
  • Loading branch information...
commit 1eafbadf86bcca56f81c70398fbd61b4050a5d2e 1 parent 2b675a1
@SparK-Cruz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 topLevel.php
View
4 topLevel.php
@@ -38,8 +38,9 @@ function checkOverload($type,$_=null){
$types = func_get_args();
$arguments = $trace[1]["args"];
- $i = 0;
+ $i = -1;
foreach($types as $type){
+ $i++;
$argument = $arguments[$i];
if(is_object($argument)){
@@ -49,7 +50,6 @@ function checkOverload($type,$_=null){
$type = ($type=="float"?"double":$type);
if(gettype($argument) !== $type) return false;
- $i++;
}
return true;
}

1 comment on commit 1eafbad

@SparK-Cruz
Owner

commit: 1eafbad
bad leaf on my branch?

Please sign in to comment.
Something went wrong with that request. Please try again.