Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INFO: PropertyNotSetInConstructor and INFO: MissingConstructor for all entities #129

Open
michnovka opened this issue Nov 9, 2022 · 1 comment

Comments

@michnovka
Copy link
Contributor

Is it expected that these are reported as INFO? Or should they not appear in psalm errors at all.

I am running Symfony 6.1.6, psalm 4.30.0 and weirdan/doctrine-psalm-plugin 2.5.0


INFO: MissingConstructor - src/Entity/SupportTicketDepartment.php:17:17 - App\Entity\SupportTicketDepartment has an uninitialized property App\Entity\SupportTicketDepartment::$id, but no constructor (see https://psalm.dev/073)
    private int $id;

...

INFO: PropertyNotSetInConstructor - src/Entity/SupportTicketMailBreakLine.php:28:19 - Property App\Entity\SupportTicketMailBreakLine::$admin is not defined in constructor of App\Entity\SupportTicketMailBreakLine or in any private or final methods called in the constructor (see https://psalm.dev/074)
    private Admin $admin;
@Grzyb9k
Copy link

Grzyb9k commented Apr 20, 2024

I have the same problem, these settings don't work:

    <issueHandlers>
        <PropertyNotSetInConstructor>
            <errorLevel type="suppress">
                <directory name="src/Entity" />
            </errorLevel>
        </PropertyNotSetInConstructor>
    </issueHandlers>

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

No branches or pull requests

2 participants