Open jlachancekffein opened 1 month ago
When I try to access the details of a submission via the submission listing, an error is triggered: array_sum(): Addition is not supported on type array.
The issue seems to be here: src/craftCMS/vendor/verbb/workflow/src/services/Content.php
private function _arrayMultisum(array $arr): float { $sum = array_sum($arr); foreach ($arr as $child) { $sum += is_array($child) ? $this->_arrayMultisum($child) : 0; } return $sum; }
When I dump $arr, the value is a nested array of one level, which triggers the error. Here's the dump of the variable:
array:1 [▼ 0 => array:1 [▼ "add" => 2 ] ]
5.1.5
dev-craft-5 as 3.0.0-beta.1
Yes
No response
Fixed for the next release. To get this early, run composer require verbb/workflow:"dev-craft-5 as 3.0.0".
composer require verbb/workflow:"dev-craft-5 as 3.0.0"
Describe the bug
When I try to access the details of a submission via the submission listing, an error is triggered: array_sum(): Addition is not supported on type array.
The issue seems to be here: src/craftCMS/vendor/verbb/workflow/src/services/Content.php
When I dump $arr, the value is a nested array of one level, which triggers the error. Here's the dump of the variable:
Steps to reproduce
Craft CMS version
5.1.5
Plugin version
dev-craft-5 as 3.0.0-beta.1
Multi-site?
Yes
Additional context
No response