Skip to content

Internal error when analysing Carbon #32

@villfa

Description

@villfa

I tried to analyse Carbon but I ran into the following error :

$ ./vendor/bin/phpstan analyse src/Carbon/Carbon.php
 ------ -------------------------------------------------------------------------
  Line   Carbon.php
 ------ -------------------------------------------------------------------------
         Internal error: Argument 1 passed to
         PHPStan\Analyser\Scope::assignVariable() must be of the type string,
         object given, called in
         Carbon\vendor\phpstan\phpstan\src\Analyser\NodeScopeResolver.php on line
         701
 ------ -------------------------------------------------------------------------


 [ERROR] Found 1 error

```

phpstan version : master (commit 319baa6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions