8000 Return value of Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector::convertToBytes() must be of the type int, float returned · Issue #34508 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Return value of Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector::convertToBytes() must be of the type int, float returned #34508
Closed
@tony5Dim

Description

@tony5Dim

Symfony version(s) affected: 5.0.0

Description
A fresh install of Sf5 and produce that error : Return value of Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector::convertToBytes() must be of the type int, float returned

How to reproduce
A fresh install and a Symfony server:start

Possible Solution
In the file MemoryDataCollector.php l.110 the switch make a float and not an int. An int can be forced. A return (int)$max; at l.120 do the job

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0