fix phpstan lvl 9 bugs

This commit is contained in:
Dennis Eichhorn 2022-12-26 20:52:58 +01:00
parent ce4b22369d
commit 1f80198021

View File

@ -60,6 +60,7 @@ final class ApiController extends Controller
string $ip = null
) : void
{
/** @var \Modules\ClientManagement\Models\Client|\Modules\SupplierManagement\Models\Supplier $new */
$stock = new Stock($new->number);
$stock->type = 1;
StockMapper::create()->execute($stock);