Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

lint:container says that array is passed as 3rd argument to addListener, when it is an int #36750

Copy link
Copy link
Closed
@kojidev

Description

@kojidev
Issue body actions

Symfony version(s) affected: 5.0.8

Description
I'm using sentry/sentry-symfony:3.5.0 (latest). When I run php bin/console lint:container -e prod
it complains that I'm trying to pass array value to int argument, and doesn't say where, thru debugging I figured it complains about sentry registering a listener, but parameter that sentry tries to pass is an integer, but gets reassigned to array here: https://github.com/symfony/dependency-injection/blob/b9f508fd25012361565ed6ad77600ad2ba64592c/Compiler/CheckTypeDeclarationsPass.php#L202

How to reproduce
Reproducer: https://github.com/kojidev/lint-repr

Possible Solution
I'm not familiar with symfony/di implementation, so Idk how to go about fixing it.

Additional context
For some reason it only happens in prod environment, even tho it doesn't seemed that sentry configures itself any different in either environment

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.