Files
php-curl-class/tests/psalm.xml
T
Zach Borboa fd902b4b7c Fix CI (PHPUnit) (#918)
* Add shims for PHPUnit

* Fix PHPUnit error: undefined method returnValue()

1) CurlTest\PHPCurlClassTest::testMock
Error: Call to undefined method CurlTest\PHPCurlClassTest::returnValue()

* Fix PHPUnit risky test by restoring error handler before exception thrown

There was 1 risky test:

1) CurlTest\PHPCurlClassTest::testRequiredOptionCurlOptReturnTransferEmitsWarningPHPUnit10Plus
Test code or tested code did not remove its own error handlers

* Fix psalm errors

* Add attributes for version constraint

* Temporarily pin psalm to fix ci
2025-02-17 18:24:42 -05:00

61 lines
1.9 KiB
XML

<?xml version="1.0"?>
<!-- TODO: Use errorLevel="1" -->
<psalm
ensureOverrideAttribute="false"
errorLevel="4"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorBaseline="psalm-baseline.xml"
>
<projectFiles>
<directory name="../src" />
<ignoreFiles>
<directory name="../vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<PossiblyUnusedMethod>
<errorLevel type="suppress">
<directory name="../src/" />
</errorLevel>
</PossiblyUnusedMethod>
<PossiblyUnusedProperty>
<errorLevel type="suppress">
<directory name="../src/" />
</errorLevel>
</PossiblyUnusedProperty>
<PossiblyUnusedReturnValue>
<errorLevel type="suppress">
<directory name="../src/" />
</errorLevel>
</PossiblyUnusedReturnValue>
<UnusedClass>
<errorLevel type="suppress">
<directory name="../src/" />
</errorLevel>
</UnusedClass>
<UnusedClosureParam>
<errorLevel type="suppress">
<directory name="../src/" />
</errorLevel>
</UnusedClosureParam>
<UnusedForeachValue>
<errorLevel type="suppress">
<directory name="../src/" />
</errorLevel>
</UnusedForeachValue>
<UnusedMethod>
<errorLevel type="suppress">
<directory name="../src/" />
</errorLevel>
</UnusedMethod>
<UnusedProperty>
<errorLevel type="suppress">
<directory name="../src/" />
</errorLevel>
</UnusedProperty>
</issueHandlers>
</psalm>