From 6a4240fa0298423b981a4d31430a92e8b7840c6a Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 31 Aug 2025 00:22:59 +0100 Subject: [PATCH] Fix test --- tests/phpunit/inventory/CombinedInventoryProxyTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/inventory/CombinedInventoryProxyTest.php b/tests/phpunit/inventory/CombinedInventoryProxyTest.php index 5ab7eb3a8..df133f94b 100644 --- a/tests/phpunit/inventory/CombinedInventoryProxyTest.php +++ b/tests/phpunit/inventory/CombinedInventoryProxyTest.php @@ -23,6 +23,7 @@ declare(strict_types=1); namespace pocketmine\inventory; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use pocketmine\item\Item; use pocketmine\item\ItemTypeIds; @@ -147,10 +148,10 @@ final class CombinedInventoryProxyTest extends TestCase{ } /** - * @dataProvider setContentsProvider * @param Item[] $altItems * @phpstan-param array $altItems */ + #[DataProvider("setContentsProvider")] public function testSetContents(array $altItems) : void{ $backing = $this->createInventories(); $inventory = new CombinedInventoryProxy($backing);