Fix reference to deprecated transpose in lookup (#1935)

* Fix reference to the deprecated `TRANSPOSE()` function in `LOOKUP()`, pointing to the new `transpose()` method in the `LookupRef\Matrix` class instead
This commit is contained in:
Mark Baker 2021-03-17 23:35:44 +01:00 committed by GitHub
parent 4cd6c7806e
commit e59c751276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class Lookup
$lookupColumns = self::columnCount($lookupVector);
// we correctly orient our results
if (($lookupRows === 1 && $lookupColumns > 1) || (!$hasResultVector && $lookupRows === 2 && $lookupColumns !== 2)) {
$lookupVector = LookupRef::TRANSPOSE($lookupVector);
$lookupVector = LookupRef\Matrix::transpose($lookupVector);
$lookupRows = self::rowCount($lookupVector);
$lookupColumns = self::columnCount($lookupVector);
}
@ -84,7 +84,7 @@ class Lookup
// we correctly orient our results
if ($resultRows === 1 && $resultColumns > 1) {
$resultVector = LookupRef::TRANSPOSE($resultVector);
$resultVector = LookupRef\Matrix::transpose($resultVector);
}
return $resultVector;