Skip to content

Conversation

azim-kordpour
Copy link
Contributor

@azim-kordpour azim-kordpour commented Jun 22, 2025

Hi,
This PR enhances the test coverage for the Pipeline::through() method to ensure that it overwrites previously set or appended pipes.

$object = new stdClass();
$object->value = 1;

$pipeline
    ->through([MultiplyByTwo::class])  // Would make it 2
    ->pipe([AddFive::class])          // Would make it 7
    ->through([AddFour::class])       // Should reset and make it 5
    ->thenReturn();

@taylorotwell taylorotwell merged commit a44bfd8 into laravel:12.x Jun 22, 2025
62 checks passed
mohammad-fouladgar pushed a commit to mohammad-fouladgar/framework that referenced this pull request Jul 22, 2025
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.

2 participants