diff --git a/.travis.yml b/.travis.yml index e0d87665991..cc516636cda 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,9 +37,6 @@ after_script: fi jobs: - allow_failures: - - php: 7.4snapshot - include: - stage: Smoke Testing diff --git a/lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php b/lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php index d0c88f7fe76..35cdc45089a 100644 --- a/lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php +++ b/lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php @@ -340,7 +340,9 @@ public function listTableDetails($tableName) : Table $tableOptions = $this->_conn->fetchAssoc($sql); - $table->addOption('comment', $tableOptions['table_comment']); + if ($tableOptions !== false) { + $table->addOption('comment', $tableOptions['table_comment']); + } return $table; } diff --git a/tests/travis/install-mssql-pdo_sqlsrv.sh b/tests/travis/install-mssql-pdo_sqlsrv.sh index 9893d0f8c78..71e07aee231 100644 --- a/tests/travis/install-mssql-pdo_sqlsrv.sh +++ b/tests/travis/install-mssql-pdo_sqlsrv.sh @@ -4,4 +4,4 @@ set -ex echo "Installing extension" -pecl install pdo_sqlsrv +pecl install pdo_sqlsrv-5.7.0preview diff --git a/tests/travis/install-mssql-sqlsrv.sh b/tests/travis/install-mssql-sqlsrv.sh index 10132619c59..d44841360dc 100644 --- a/tests/travis/install-mssql-sqlsrv.sh +++ b/tests/travis/install-mssql-sqlsrv.sh @@ -4,4 +4,4 @@ set -ex echo "Installing extension" -pecl install sqlsrv +pecl install sqlsrv-5.7.0preview