Skip to content

PEAR-style non-namespaced PSR-0 class not available in autoloader #308

@muglug

Description

@muglug

Bug report

Question Answer
Box version 3.6.0
PHP version 7.3
Platform with version MacOS 10.13.16
Github Repo - https://github.com/vimeo/psalm

Reproduction

Run

composer bin box install
vendor/bin/box --debug compile

Notice the autoload_classmap.php in .box_dump is missing an entry for JsonMapper (but has other entries).

This class isn't used in Psalm-proper, but it is used in Psalm's language server (which @greg0ire is working to enable in the phar via a --language-server flag)

Here's the (hopefully temporary) hack I'm using to work around it: https://github.com/vimeo/psalm/compare/phar-compat#diff-feb180cea6e9d88bcfcbbbf7addc6efaR25

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