Skip to content

Commit

Permalink
found what was eating those method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmagicii committed Apr 11, 2024
1 parent 0e2b38f commit 9439387
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/Nether/Avenue/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ public function
__Call(string $Name, array $Argv):
mixed {

if(method_exists($this, $Name))
return $this->{$Name}(...$Argv);
// do we really need this method? i mean?
if(!method_exists($this, $Name))
throw new Common\Error\MethodNotFound($Name, 'method');

return NULL;
return $this->{$Name}(...$Argv);
}

public function
Expand Down
6 changes: 3 additions & 3 deletions src/Nether/Avenue/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,12 +423,12 @@ protected function
$this->CurrentRoute->{$Handler->Method}(...$Handler->GetMethodArgValues($ExtraData, TRUE));
}

#catch(ArgumentCountError $Err) {
//catch(ArgumentCountError $Err) {
// @todo 2023-09-13 inspect the trace stack better so that it
// catches fewer app fuckups.
# Common\Dump::Var($Err, TRUE);
# throw new Error\RouteArgumentError($this->CurrentHandler, $this->CurrentRoute);
#}
// throw new Error\RouteArgumentError($this->CurrentHandler, $this->CurrentRoute);
//}

catch(Throwable $Err) {
$ErrMsg = strtolower($Err->GetMessage());
Expand Down

0 comments on commit 9439387

Please sign in to comment.