Skip to content

Commit 4625750

Browse files
thirschthePanz
authored andcommitted
PHP 8.1 > Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
1 parent b4749b5 commit 4625750

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Doctrine/Table.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,10 @@ public function getColumnName($fieldName)
11791179
return $this->_columnNames[$fieldName];
11801180
}
11811181

1182+
if (null === $fieldName) {
1183+
return '';
1184+
}
1185+
11821186
return strtolower($fieldName);
11831187
}
11841188

0 commit comments

Comments
 (0)