Skip to content

[Laravel] MinutesToSecondsInCacheRector: adds seconds to Carbon instance #1345

@devfrey

Description

@devfrey

When running rector against a Laravel project with the following code, it actually breaks the implementation:

Cache::put('cache_key', $somevalue, now()->addDay()); // it also accepts a Carbon (\DateTimeInterface) object

It turns it into this, which won't work:

Cache::put('cache_key', $somevalue, now()->addDay() * 60);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions