-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Bug Report
Q | A |
---|---|
Version(s) | 1.39.0 |
Summary
When Psalm is installed using psalm/phar
instead of vimeo/psalm
, an error occurs because vendor/vimeo/psalm/config.xsd
does not exist.
refs #31, psalm/phar#5
Current behavior
Running before_script: xmllint --schema vendor/vimeo/psalm/config.xsd psalm.xml
warning: failed to load external entity "vendor/vimeo/psalm/config.xsd"
<?xml version="1.0"?>
Schemas parser error : Failed to locate the main schema resource at 'vendor/vimeo/psalm/config.xsd'.
WXS schema vendor/vimeo/psalm/config.xsd failed to compile
<psalm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://getpsalm.org/schema/config" errorLevel="1" resolveFromConfigFile="true" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" errorBaseline="psalm-baseline.xml" findUnusedBaselineEntry="true" findUnusedCode="false">
<projectFiles>
<directory name="src"/>
<ignoreFiles>
<directory name="vendor"/>
</ignoreFiles>
</projectFiles>
</psalm>
How to reproduce
In a project where psalm.xml
exists, replacing vimeo/psalm
with psalm/phar
will reproduce the problem.
michaelpetri/phpunit-consecutive-arguments#109
Expected behavior
No errors.