Skip to content

Conversation

@samsonasik
Copy link
Member

When it continue from by ref params, it should be skipped, as value changed via reference:

final class SkipByRefFromParamVariable
{
    public function run(&$first, &$second)
    {
        $first = 100;
        $second = 200;

        return $first <=> $second;
    }
}

@TomasVotruba
Copy link
Member

👍

@samsonasik samsonasik enabled auto-merge (squash) October 11, 2025 10:41
@samsonasik samsonasik merged commit 8b44b1d into main Oct 11, 2025
53 checks passed
@samsonasik samsonasik deleted the skip-by-ref-params branch October 11, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants