Skip to content

Internal Errors running v2.0.0 #271

@thomas-price

Description

@thomas-price

Hi,
v2.0.0-rc.1 was running successfully (getting 86 errors in the normal phpstan output)
I just updated to v2.0.0 and ran it to get the following internal errors...

 -- -------------------------------------------------------------------------------------------------------------------
     Error
 -- -------------------------------------------------------------------------------------------------------------------
     Internal error: Function tnp_post_excerpt not found while trying to analyse it - discovering symbols is probably
     not configured properly. while analysing file
     C:\Users\...\block.php

     Run PHPStan with -v option and post the stack trace to:
     https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml

     Internal error: Function tnp_post_thumbnail_src not found while trying to analyse it - discovering symbols is
     probably not configured properly. while analysing file
     C:\Users\...\block.php

     Run PHPStan with -v option and post the stack trace to:
     https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml

     Internal error: Function tnp_resize not found while trying to analyse it - discovering symbols is probably not
     configured properly. while analysing file
     C:\Users\...\block.php

     Run PHPStan with -v option and post the stack trace to:
     https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml

     Internal error: Function tnp_post_date not found while trying to analyse it - discovering symbols is probably not
     configured properly. while analysing file
     C:\Users\...\block.php

     Run PHPStan with -v option and post the stack trace to:
     https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml

Configuration

C:\Users\...>composer show
automattic/phpcs-neutron-standard              1.7.0
dealerdirect/phpcodesniffer-composer-installer 1.0.0
php-stubs/wordpress-stubs                      6.7.1
phpcompatibility/php-compatibility             9.3.5
phpcompatibility/phpcompatibility-paragonie    1.3.3
phpcompatibility/phpcompatibility-wp           2.1.5
phpcsstandards/phpcsextra                      1.2.1
phpcsstandards/phpcsutils                      1.0.12
phpstan/phpstan                                2.0.3
sirbrillig/phpcs-import-detection              1.3.3
sirbrillig/phpcs-variable-analysis             2.11.19
squizlabs/php_codesniffer                      3.11.1
szepeviktor/phpstan-wordpress                  2.0.0
wp-coding-standards/wpcs                       3.1.0

Any suggestions?
Do you need additional information?

thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions