Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle empty Order increment prefix (#1718)
* Handle empty Order increment prefix A call to `strpos` with an empty needle would throw a warning pre PHP 8.0. This change will check if the prefix is not empty first before performing the call to `strpos`. * Use the string casted prefix in `strlen` call Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com> * Fix syntax error Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>
- Loading branch information