Merge pull request #9 from rxu/ticket/16964-master

[ticket/16964] Fix Postgres platform installation error and composer installer deprecation notice
This commit is contained in:
Marc Alexander 2022-02-08 20:22:28 +01:00 committed by GitHub
commit 772ae34ccc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -16,6 +16,7 @@ namespace phpbb\composer;
use Composer\Composer; use Composer\Composer;
use Composer\DependencyResolver\Request as composer_request; use Composer\DependencyResolver\Request as composer_request;
use Composer\Factory; use Composer\Factory;
use Composer\Filter\PlatformRequirementFilter\PlatformRequirementFilterFactory;
use Composer\IO\IOInterface; use Composer\IO\IOInterface;
use Composer\IO\NullIO; use Composer\IO\NullIO;
use Composer\Json\JsonFile; use Composer\Json\JsonFile;
@ -172,7 +173,7 @@ class installer
->setUpdate(true) ->setUpdate(true)
->setUpdateAllowList($whitelist) ->setUpdateAllowList($whitelist)
->setUpdateAllowTransitiveDependencies(composer_request::UPDATE_ONLY_LISTED) ->setUpdateAllowTransitiveDependencies(composer_request::UPDATE_ONLY_LISTED)
->setIgnorePlatformRequirements(false) ->setPlatformRequirementFilter(PlatformRequirementFilterFactory::fromBoolOrList(false))
->setOptimizeAutoloader(true) ->setOptimizeAutoloader(true)
->setDumpAutoloader(true) ->setDumpAutoloader(true)
->setPreferStable(true) ->setPreferStable(true)

View file

@ -14,7 +14,7 @@
namespace phpbb\db\doctrine; namespace phpbb\db\doctrine;
use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Platforms\PostgreSQLPlatform; use Doctrine\DBAL\Platforms\PostgreSQL94Platform;
use Doctrine\DBAL\Schema\Index; use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Sequence; use Doctrine\DBAL\Schema\Sequence;
use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Schema\Table;
@ -31,7 +31,7 @@ use Doctrine\DBAL\Types\Type;
* to stay compatible with the existing DB we have to change its * to stay compatible with the existing DB we have to change its
* naming and not ours. * naming and not ours.
*/ */
class postgresql_platform extends PostgreSQLPlatform class postgresql_platform extends PostgreSQL94Platform
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}