Skip to content

Commit

Permalink
thusfar
Browse files Browse the repository at this point in the history
  • Loading branch information
bob committed Jul 16, 2023
1 parent 5ccc88d commit 6d0bbec
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/Nether/Database/Prototype.php
Expand Up @@ -365,12 +365,13 @@ static public function
// has been updated because right now its a signature match hell.
// we can fake the 4th arg anyway.

$TAlias = NULL;
$TAlias = match(TRUE) {
(func_num_args() >= 4)
=> func_get_arg(3),

$VarArgBullshit = func_get_args();
if(count($VarArgBullshit) >= 4) {
$TAlias = func_get_arg(3);
}
default
=> NULL
};

////////

Expand Down Expand Up @@ -430,16 +431,17 @@ static public function
JoinExtendFields(Verse $SQL, ?string $TPre=NULL):
void {

// @todo 2023-07-15 replace this with a 3th argument once more code
// @todo 2023-07-15 replace this with a 3rd argument once more code
// has been updated because right now its a signature match hell.
// we can fake the 4th arg anyway.
// we can fake the 3rd arg for now.

$TAlias = NULL;
$TAlias = match(TRUE) {
(func_num_args() >= 3)
=> func_get_arg(2),

$VarArgBullshit = func_get_args();
if(count($VarArgBullshit) >= 3) {
$TAlias = func_get_arg(2);
}
default
=> NULL
};

////////

Expand Down

0 comments on commit 6d0bbec

Please sign in to comment.