|
@@ 447-450 (lines=4) @@
|
| 444 |
|
|
| 445 |
|
$method = $ts[$last - 1]['value']; |
| 446 |
|
|
| 447 |
|
if (!in_array($method, get_class_methods($classname))) { |
| 448 |
|
throw new Exception(sprintf("Class '%s' doesn't have a method named '%s'", |
| 449 |
|
$classname, $method)); |
| 450 |
|
} |
| 451 |
|
} else if ($last >= 3 && |
| 452 |
|
$ts[0]['token'] != T_CLASS && /* if we are not in a class definition */ |
| 453 |
|
$ts[$last - 1]['token'] == T_VARIABLE && |
|
@@ 473-476 (lines=4) @@
|
| 470 |
|
} |
| 471 |
|
$method = $GLOBALS[ltrim($methodname, '$')]; |
| 472 |
|
|
| 473 |
|
if (!in_array($method, get_class_methods($classname))) { |
| 474 |
|
throw new Exception(sprintf("Class '%s' doesn't have a method named '%s'", |
| 475 |
|
$classname, $method)); |
| 476 |
|
} |
| 477 |
|
|
| 478 |
|
} else if ($last >= 2 && |
| 479 |
|
$ts[0]['token'] != T_CLASS && /* if we are not in a class definition */ |