Skip to content

Commit

Permalink
Updated SQL Server extensions to fix build failures on PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Oct 17, 2019
1 parent 8012286 commit 0dab22f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ after_script:
fi
jobs:
allow_failures:
- php: 7.4snapshot

include:

- stage: Smoke Testing
Expand Down
4 changes: 3 additions & 1 deletion lib/Doctrine/DBAL/Schema/SQLServerSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/travis/install-mssql-pdo_sqlsrv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -ex

echo "Installing extension"

pecl install pdo_sqlsrv
pecl install pdo_sqlsrv-5.7.0preview
2 changes: 1 addition & 1 deletion tests/travis/install-mssql-sqlsrv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -ex

echo "Installing extension"

pecl install sqlsrv
pecl install sqlsrv-5.7.0preview

0 comments on commit 0dab22f

Please sign in to comment.