View Issue Details

IDProjectCategoryView StatusLast Update
0007611OXID eShop (all versions)4.07. Source code, Testpublic2024-03-08 09:59
Reportermario_lorenz Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version6.3.0 
Summary0007611: round(): Argument #1 ($num) must be of type int|float
DescriptionWe have on several places in die OXID-Core a wrong typecast for the round-function:
Here is a example:
https://github.com/OXID-eSales/oxideshop_ce/blob/1c7ecf404dea372a30969d897d75aed10e77dbf2/source/Application/Controller/Admin/ArticleStock.php#L166

Search for round((string)

This incorrect use triggers a maintenance mode.

I found this wrong use in all OXID-Versions between OXID 6.3 to 7.0, OXID 6.1 is not effected ...
Additional InformationSolution:

* remove (string) typecast
* or use Registry::getUtils()->fRound(...) here you can/shoud use strings ...
TagsNo tags attached.
ThemeAll
BrowserNot defined
PHP Version8.1
Database VersionNot defined

Activities

There are no notes attached to this issue.