Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Return value of Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector::convertToBytes() must be of the type int, float returned #34508

Copy link
Copy link
Closed
@tony5Dim

Description

@tony5Dim
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.