Skip to content

Conversation

@FrittenKeeZ
Copy link
Contributor

Described in #635 and #636 - implementing the direct fix from the latter.

@FrittenKeeZ
Copy link
Contributor Author

@khepin @vyuldashev can one of you take a look at this?

@alexeydotsenko
Copy link

alexeydotsenko commented Oct 23, 2025

Looks like just

protected $config;

public function getConfig(): QueueConfig
{
    return $this->config;
}

public function setConfig(array $config)
{
    $this->config = QueueConfigFactory::make($config);

    return $this;
}

will be enough

@FrittenKeeZ
Copy link
Contributor Author

@alexeydotsenko nope, Laravel's $config is expected to be an array.

@alexeydotsenko
Copy link

They do not lock a type of $config variable to array. According to a code configuration will be provided as array, but we can store it in any format. So we can do it without extra code changes

@FrittenKeeZ
Copy link
Contributor Author

That is very risky, since usage of getConfig() might cause fatal errors in the future if the using code expects an array.
Otherwise QueueConfig should implement the necessary interfaces to act like an array.

@duykb2015
Copy link

Oh my. Please review this - my app is down now 😭

@FrittenKeeZ
Copy link
Contributor Author

@duykb2015 downgrade to Laravel 12.33 for now.

@duykb2015
Copy link

@FrittenKeeZ it’s all good now. I copied your file and it’s working. Thank you so much, you saved me!

@Crmteam-IVG
Copy link

Please review the changes @khepin @vyuldashev

@dzatona
Copy link

dzatona commented Oct 25, 2025

Temp workaround: #639 (comment)

@mihob
Copy link

mihob commented Oct 26, 2025

@khepin @vyuldashev Any news on this?

@FrittenKeeZ
Copy link
Contributor Author

Tests are failing because #628 hasn't been merged

Crmteam-IVG pushed a commit to Crmteam-IVG/laravel-queue-rabbitmq that referenced this pull request Oct 27, 2025
@Shabandinh0
Copy link

@vyuldashev Any news on this?

@reddinan
Copy link

reddinan commented Nov 3, 2025

@vyuldashev Are you going to look at this or should we fork?

@khepin
Copy link
Collaborator

khepin commented Nov 3, 2025

@FrittenKeeZ can you pull the latest master in your branch to rerun the tests

@FrittenKeeZ
Copy link
Contributor Author

@khepin it should be ready for workflows now

@FrittenKeeZ
Copy link
Contributor Author

@khepin it's throwing errors in files I haven't even touched - what's going on?

@khepin
Copy link
Collaborator

khepin commented Nov 10, 2025

I am not sure what's going on. Are you able to run those failing tests locally and see if the same errors happen. Seems to be only for some version combinations of PHP/Laravel

@FrittenKeeZ
Copy link
Contributor Author

FrittenKeeZ commented Nov 11, 2025

@khepin I get the same errors locally running PHP 8.4 and Laravel 12 / Testbench 10

Edit: Apparently it's all Feature\SslQueueTest tests not being skipped which causes the errors

@FrittenKeeZ
Copy link
Contributor Author

@khepin I think I solved the issue with tests not being properly skipped - can you run the workflow again?

@khepin khepin merged commit d6ae780 into vyuldashev:master Nov 13, 2025
20 checks passed
@FrittenKeeZ FrittenKeeZ deleted the bugfix/laravel-12.34 branch November 13, 2025 11:41
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.

9 participants