Skip to content

JsonThrowOnErrorRector fails to parse file #8102

@buffcode

Description

@buffcode

Bug Report

Subject Details
Rector version v0.17.7

Minimal PHP Code Causing Issue

https://getrector.com/demo/17c6f325-f69b-4b02-b9e3-58f489a71ff6

<?php

declare(strict_types=1);

class AlwaysRetryStrategy
{
    private const MIN_DELAY = 1000;

    private const MAX_DELAY = self::MIN_DELAY * 60 * 10;

    public function getWaitingTime(): int
    {
        return min(self::MAX_DELAY, 0);
    }
}

Expected Behaviour

Rector should skip it.

Actual Behaviour

System error: "Unsupported operand types: string * int"

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