Please avoid useless variables.
This should be rewritten ```$warning = img_warning($langs->trans('StockTooLow'));```