📜  Carbon\Traits\Units.php:69 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:12.180000             🧑  作者: Mango

代码示例1
Looks like the new warning in PHP 7.1

Probably you have an empty SESSION_LIFETIME in the .env which cause this 
warning by calling the addRealUnit($unit, $value = 1) with the $value = ""

Solution: Update the .env and set a value to SESSION_LIFETIME or remove the 
SESSION_LIFETIME and the problem should be solved.