Skip to content

Commit

Permalink
Fix method_exists() PHP 8 error (#3826)
Browse files Browse the repository at this point in the history
  • Loading branch information
Clayton Liddell committed Aug 24, 2022
1 parent 6f779e7 commit 63c4406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/common/src/Storage/AbstractDatabaseTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ private function tableCreate($table_name, $schema) {
// Opportunity to further alter the schema before table creation.
$schema = $this->dispatchEvent(self::EVENT_TABLE_CREATE, $schema);
// Add indexes if we have an index manager.
if (method_exists($this->indexManager, 'modifySchema')) {
if (isset($this->indexManager) && method_exists($this->indexManager, 'modifySchema')) {
$schema = $this->indexManager->modifySchema($table_name, $schema);
}
$this->connection->schema()->createTable($table_name, $schema);
Expand Down

0 comments on commit 63c4406

Please sign in to comment.