aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/Exception/DbalExceptionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/DB/Exception/DbalExceptionTest.php')
-rw-r--r--tests/lib/DB/Exception/DbalExceptionTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/DB/Exception/DbalExceptionTest.php b/tests/lib/DB/Exception/DbalExceptionTest.php
index c37e65aea0e..eac74291749 100644
--- a/tests/lib/DB/Exception/DbalExceptionTest.php
+++ b/tests/lib/DB/Exception/DbalExceptionTest.php
@@ -35,10 +35,10 @@ class DbalExceptionTest extends \Test\TestCase {
}
/**
- * @dataProvider dataDriverException
* @param string $class
* @param int $reason
*/
+ #[\PHPUnit\Framework\Attributes\DataProvider('dataDriverException')]
public function testDriverException(string $class, int $reason): void {
$result = DbalException::wrap(new $class($this->driverException, null));
$this->assertSame($reason, $result->getReason());