Skip to content

Commit

Permalink
PHP 8.1 > Deprecated: strtolower(): Passing null to parameter #1 ($st…
Browse files Browse the repository at this point in the history
…ring) of type string is deprecated
  • Loading branch information
thirsch authored and thePanz committed Feb 13, 2023
1 parent b4749b5 commit 4625750
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Doctrine/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,10 @@ public function getColumnName($fieldName)
return $this->_columnNames[$fieldName];
}

if (null === $fieldName) {
return '';
}

return strtolower($fieldName);
}

Expand Down

0 comments on commit 4625750

Please sign in to comment.