File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3018,10 +3018,10 @@ protected function trackAliases($table)
3018
3018
$ table = preg_replace ('/\s+AS\s+/i ' , ' ' , $ table );
3019
3019
3020
3020
// Grab the alias
3021
- $ table = trim (strrchr ($ table , ' ' ));
3021
+ $ alias = trim (strrchr ($ table , ' ' ));
3022
3022
3023
3023
// Store the alias, if it doesn't already exist
3024
- $ this ->db ->addTableAlias ($ table );
3024
+ $ this ->db ->addTableAlias ($ alias );
3025
3025
}
3026
3026
}
3027
3027
Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ abstract class BaseConnection implements ConnectionInterface
337
337
/**
338
338
* Array of table aliases.
339
339
*
340
- * @var array
340
+ * @var list<string>
341
341
*/
342
342
protected $ aliasedTables = [];
343
343
@@ -561,10 +561,10 @@ public function setAliasedTables(array $aliases)
561
561
*
562
562
* @return $this
563
563
*/
564
- public function addTableAlias (string $ table )
564
+ public function addTableAlias (string $ alias )
565
565
{
566
- if (! in_array ($ table , $ this ->aliasedTables , true )) {
567
- $ this ->aliasedTables [] = $ table ;
566
+ if (! in_array ($ alias , $ this ->aliasedTables , true )) {
567
+ $ this ->aliasedTables [] = $ alias ;
568
568
}
569
569
570
570
return $ this ;
You can’t perform that action at this time.
0 commit comments