Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-16648

"Access to undeclared static property" error on setExpectedTriggerError() tests

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 4.0.0-a1, 3.3.2
    • 3.3.3-RC1
    • Test Suite
    • None

    Description

      $enabled static properties were removed from PHPUnit\Framework\Error\Notice and PHPUnit\Framework\Error\Warning classes since PHPUnit 8.3.0 https://github.com/sebastianbergmann/phpunit/commit/db1dce395c1843f095319a4d9652c2853ea785df

       

      Using them in tests causes errors like Error: Access to undeclared static property PHPUnit\Framework\Error\Warning::$enabled.

      Attachments

        Activity

          People

            Marc Marc
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: