Skip to content

Commit

Permalink
[REF] Fix PHP8.1 issue with passing NULL to trim()
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 authored and totten committed May 10, 2022
1 parent 89952fb commit 74ba6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/CodeGen/Specification.php
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ public function getDynamicForeignKey(&$foreignXML, &$dynamicForeignKeys) {
$foreignKey = [
'idColumn' => trim($foreignXML->idColumn),
'typeColumn' => trim($foreignXML->typeColumn),
'key' => trim($this->value('key', $foreignXML)),
'key' => trim($this->value('key', $foreignXML) ?? ''),
];
$dynamicForeignKeys[] = $foreignKey;
}
Expand Down

0 comments on commit 74ba6b1

Please sign in to comment.