From 46257508243e038b7faf9f0620b603828e9e2b3c Mon Sep 17 00:00:00 2001 From: "Thomas A. Hirsch" Date: Sat, 11 Feb 2023 09:47:41 +0100 Subject: [PATCH] PHP 8.1 > Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated --- lib/Doctrine/Table.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 02659b761..0842bafc8 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -1179,6 +1179,10 @@ public function getColumnName($fieldName) return $this->_columnNames[$fieldName]; } + if (null === $fieldName) { + return ''; + } + return strtolower($fieldName); }