ItemFactory: extract fromStringSingle() from fromString()

on PM4, the multiple functionality is removed, but on PM3 this is a problem for phpstan.
This commit is contained in:
Dylan K. Taylor
2020-03-13 17:54:25 +00:00
parent 3907a2b6ba
commit f8ce01e2fd
6 changed files with 29 additions and 25 deletions

View File

@ -84,7 +84,7 @@ class ItemTest extends TestCase{
* @param int $meta
*/
public function testFromStringSingle(string $string, int $id, int $meta) : void{
$item = ItemFactory::fromString($string);
$item = ItemFactory::fromStringSingle($string);
self::assertEquals($id, $item->getId());
self::assertEquals($meta, $item->getDamage());