diff --git a/src/Drivers/PgSqlDriver.php b/src/Drivers/PgSqlDriver.php index f23e4e2..b86ffaa 100644 --- a/src/Drivers/PgSqlDriver.php +++ b/src/Drivers/PgSqlDriver.php @@ -80,7 +80,7 @@ public function lock() $this->dbal->exec('SELECT pg_advisory_lock(-2099128779216184107)'); } catch (\Exception $e) { - throw new LockException('Unable to acquire a lock.', NULL, $e); + throw new LockException('Unable to acquire a lock.', 0, $e); } } @@ -91,7 +91,7 @@ public function unlock() $this->dbal->exec('SELECT pg_advisory_unlock(-2099128779216184107)'); } catch (\Exception $e) { - throw new LockException('Unable to release a lock.', NULL, $e); + throw new LockException('Unable to release a lock.', 0, $e); } } diff --git a/src/Engine/Runner.php b/src/Engine/Runner.php index 2b91236..b36b240 100644 --- a/src/Engine/Runner.php +++ b/src/Engine/Runner.php @@ -175,7 +175,7 @@ protected function execute(File $file) $queriesCount = $this->getExtension($file->extension)->execute($file); } catch (\Exception $e) { $this->driver->rollbackTransaction(); - throw new ExecutionException(sprintf('Executing migration "%s" has failed.', $file->path), NULL, $e); + throw new ExecutionException(sprintf('Executing migration "%s" has failed.', $file->path), 0, $e); } $this->driver->markMigrationAsReady($migration); diff --git a/tests/run-integration.sh b/tests/run-integration.sh index 5fb5476..2f15ce7 100755 --- a/tests/run-integration.sh +++ b/tests/run-integration.sh @@ -72,12 +72,12 @@ composer_prepare_dependencies() COMPOSER_PREFER_LOWEST="$2" cp "$PROJECT_DIR/composer.bridgeless.json" "$PROJECT_DIR/composer.json" + echo "Composer: installing $COMPOSER_REQUIRE" if [[ ! -z "$COMPOSER_REQUIRE" ]]; then composer require \ --no-interaction \ --no-update \ - --quiet \ --dev \ $COMPOSER_REQUIRE fi @@ -85,7 +85,6 @@ composer_prepare_dependencies() composer update \ --no-interaction \ --no-progress \ - --quiet \ $COMPOSER_PREFER_LOWEST }