Skip to content

Commit 3d4a3fe

Browse files
committed
Redo pass-by-reference to fix unit tests
1 parent 45721be commit 3d4a3fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Auth/Source/SQL.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ protected function connect(): PDO
161161
* @param array $attributes output place to store extracted attributes
162162
* @param array $data Associative array from database in the format of PDO fetchAll
163163
* @param array $forbiddenAttributes An array of attributes to never return
164-
* @return array $attributes
164+
* @return array &$attributes
165165
*/
166-
protected function extractAttributes(array $attributes, array $data, array $forbiddenAttributes = []): array
166+
protected function extractAttributes(array &$attributes, array $data, array $forbiddenAttributes = []): array
167167
{
168168
foreach ($data as $row) {
169169
foreach ($row as $name => $value) {

0 commit comments

Comments
 (0)