Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-16648

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.3.3-RC1
    • 4.0.0-a1, 3.3.2
    • Test Suite
    • None

      $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.

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

              Created:
              Updated:
              Resolved: