Skip to content

Could not read file: eval()'d code #2841

@lukepass

Description

@lukepass

Bug report

I just upgraded to the last phpstan version and I am facing this error:

  21     Could not read file:                                                                                                        
         vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Test/ForwardCompatTestTrait.php(19  
         ) : eval()'d code    

I tried ignoring it but it says that it cannot be ignored, so I tried excluding it but it doesn't work:

includes:
    - phpstan-baseline.neon

parameters:
    ignoreErrors:
        - '#Call to an undefined method Doctrine\\Persistence\\ObjectRepository::(?:findOneBy|findBy|)[a-zA-Z]+\(\)\.#'
        - '#AppBundle\\Entity\\json#'
        - '#\$id \(int\) does not accept null#'
    autoload_files:
        - vendor/bin/.phpunit/phpunit-8.3-0/vendor/autoload.php
    excludes_analyse:
        - vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Test/ForwardCompatTestTrait.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions