Skip to content

Fix PHPUnit comparator under PHPUnit 10 #542

Fix PHPUnit comparator under PHPUnit 10

Fix PHPUnit comparator under PHPUnit 10 #542

Triggered via pull request January 24, 2024 17:45
Status Failure
Total duration 51s
Artifacts

ci.yml

on: pull_request
Matrix: Build
Fit to window
Zoom out
Zoom in

Annotations

36 errors and 2 warnings
InvalidArgument: src/PHPUnit/Comparator.php#L88
src/PHPUnit/Comparator.php:88:137: InvalidArgument: Argument 5 of SebastianBergmann\Comparator\ComparisonFailure::__construct expects bool, but 'Failed asserting that two Money objects are equal.' provided (see https://psalm.dev/004)
UnusedPsalmSuppress: src/PHPUnit/Comparator.php#L92
src/PHPUnit/Comparator.php:92:32: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
UnusedPsalmSuppress: src/PHPUnit/Comparator.php#L93
src/PHPUnit/Comparator.php:93:32: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
Psalm
Process completed with exit code 2.
DirectConstructorCall: src/PHPUnit/Comparator.php#L42
src/PHPUnit/Comparator.php:42:13: DirectConstructorCall: Constructors should not be called directly (see https://psalm.dev/318)
DeprecatedMethod: tests/Calculator/LocaleAwareBcMathCalculatorTest.php#L16
tests/Calculator/LocaleAwareBcMathCalculatorTest.php:16:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
DeprecatedMethod: tests/Calculator/LocaleAwareGmpCalculatorTest.php#L16
tests/Calculator/LocaleAwareGmpCalculatorTest.php:16:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
UndefinedClass: tests/ComparatorTest.php#L59
tests/ComparatorTest.php:59:9: UndefinedClass: Class, interface or enum named never does not exist (see https://psalm.dev/019)
DeprecatedMethod: tests/ConverterTest.php#L195
tests/ConverterTest.php:195:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
DeprecatedMethod: tests/MoneyTest.php#L102
tests/MoneyTest.php:102:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
Build (8.3)
Process completed with exit code 2.
Build (8.1)
The job was canceled because "_8_3" failed.
DirectConstructorCall: src/PHPUnit/Comparator.php#L42
src/PHPUnit/Comparator.php:42:13: DirectConstructorCall: Constructors should not be called directly (see https://psalm.dev/318)
DeprecatedMethod: tests/Calculator/LocaleAwareBcMathCalculatorTest.php#L16
tests/Calculator/LocaleAwareBcMathCalculatorTest.php:16:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
DeprecatedMethod: tests/Calculator/LocaleAwareGmpCalculatorTest.php#L16
tests/Calculator/LocaleAwareGmpCalculatorTest.php:16:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
UndefinedClass: tests/ComparatorTest.php#L59
tests/ComparatorTest.php:59:9: UndefinedClass: Class, interface or enum named never does not exist (see https://psalm.dev/019)
DeprecatedMethod: tests/ConverterTest.php#L195
tests/ConverterTest.php:195:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
DeprecatedMethod: tests/MoneyTest.php#L102
tests/MoneyTest.php:102:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
Build (8.1)
Process completed with exit code 2.
Build (8.2)
The job was canceled because "_8_3" failed.
DirectConstructorCall: src/PHPUnit/Comparator.php#L42
src/PHPUnit/Comparator.php:42:13: DirectConstructorCall: Constructors should not be called directly (see https://psalm.dev/318)
DeprecatedMethod: tests/Calculator/LocaleAwareBcMathCalculatorTest.php#L16
tests/Calculator/LocaleAwareBcMathCalculatorTest.php:16:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
DeprecatedMethod: tests/Calculator/LocaleAwareGmpCalculatorTest.php#L16
tests/Calculator/LocaleAwareGmpCalculatorTest.php:16:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
UndefinedClass: tests/ComparatorTest.php#L59
tests/ComparatorTest.php:59:9: UndefinedClass: Class, interface or enum named never does not exist (see https://psalm.dev/019)
DeprecatedMethod: tests/ConverterTest.php#L195
tests/ConverterTest.php:195:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
DeprecatedMethod: tests/MoneyTest.php#L102
tests/MoneyTest.php:102:16: DeprecatedMethod: The method PHPUnit\Framework\TestCase::setLocale has been marked as deprecated (see https://psalm.dev/001)
Build (8.2)
Process completed with exit code 2.
InvalidArgument: src/PHPUnit/Comparator.php#L88
src/PHPUnit/Comparator.php:88:137: InvalidArgument: Argument 5 of SebastianBergmann\Comparator\ComparisonFailure::__construct expects bool, but 'Failed asserting that two Money objects are equal.' provided (see https://psalm.dev/004)
UnusedPsalmSuppress: src/PHPUnit/Comparator.php#L92
src/PHPUnit/Comparator.php:92:32: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
UnusedPsalmSuppress: src/PHPUnit/Comparator.php#L93
src/PHPUnit/Comparator.php:93:32: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
Build lowest version
Process completed with exit code 2.
Build (8.0)
The job was canceled because "_8_3" failed.
InvalidArgument: src/PHPUnit/Comparator.php#L88
src/PHPUnit/Comparator.php:88:137: InvalidArgument: Argument 5 of SebastianBergmann\Comparator\ComparisonFailure::__construct expects bool, but 'Failed asserting that two Money objects are equal.' provided (see https://psalm.dev/004)
UnusedPsalmSuppress: src/PHPUnit/Comparator.php#L92
src/PHPUnit/Comparator.php:92:32: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
UnusedPsalmSuppress: src/PHPUnit/Comparator.php#L93
src/PHPUnit/Comparator.php:93:32: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
Build (8.0)
The operation was canceled.
Docs
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Docs
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-python@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/