Skip to content

[Messenger] Null assigned to signals in StopWorkerOnSignalsListener #50529

@shyim

Description

@shyim

Symfony version(s) affected

6.3.0

Description

We get in our pipeline the following error:

Cannot assign null to property Symfony\Component\Messenger\EventListener\StopWorkerOnSignalsListener::$signals of type array

It seems like when SIGTERM is not defined it assigns null to the typed array property.

How to reproduce

  • Remove somehow the SIGTERM constant (Don't having installed php extension)
  • Construct StopWorkerOnSignalsListener
  • It will run into that exception

Possible Solution

Check for that constant and throw error when not existing

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions