Skip to content

PHP8 Support #4579

@nanasess

Description

@nanasess

概要(Overview)

PHP8 への対応

期待する内容(Expect) or 要望 (Requirement)

PHP8 で問題なく運用できること

再現手順(Procedure)

課題

Doctrine DBAL にてシステムエラーが発生する

PHP Fatal error:  Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $statement) in /home/travis/build/nanasess/ec-cube/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 70

DBAL 2.10.x では修正されていない
https://github.com/doctrine/dbal/blob/78de4498e4ff726bef21f5eb00781f39c0ffbc75/lib/Doctrine/DBAL/Driver/PDOConnection.php#L78

DBAL3.x では修正されている
doctrine/dbal#4042
doctrine/dbal#3803

環境 (environment)

  • EC-CUBE: 4.0.4
  • PHP: 8.0.0(nightly)
  • DB:
    • PostgreSQL x.x.x
    • MySQL x.x.x

関連情報 (Ref)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions