IBX-11179: Updated PHP versions in CI configuration to 8.3 and 8.4#1823
IBX-11179: Updated PHP versions in CI configuration to 8.3 and 8.4#1823
Conversation
… phpstan baseline files
b9fcfb2 to
c0a1da7
Compare
| $this->expectExceptionMessage('Expected a ' . ContentInfo::class . ' object.'); | ||
|
|
||
| $this->contentInfoTransformer->transform($value); | ||
| $result = $this->contentInfoTransformer->transform($value); |
|
|
||
| /** @phpstan-ignore method.resultUnused */ | ||
| $transformer->transform($value); | ||
| $result = $transformer->transform($value); |
There was a problem hiding this comment.
Let's keep the previous one, assigning this to variable doesn't make much sense. Besides, we agreed that @phpstan-ignore can be accepted in the tests' related code.
b06edb2 to
21d66d9
Compare
…for PHP 8.4 compatibility
|
| } else if (PHP_VERSION_ID < 80400) { | ||
| $includes[] = __DIR__ . '/phpstan-baseline-8.3.neon'; | ||
| } else { | ||
| $includes[] = __DIR__ . '/phpstan-baseline-8.4.neon'; |
There was a problem hiding this comment.
Do we need a separate baseline for 8.4?
There was a problem hiding this comment.
I have checked it and apparently yes
|
|
||
| - | ||
| message: '#^Call to method Ibexa\\AdminUi\\Form\\DataTransformer\\LanguageTransformer\:\:transform\(\) on a separate line has no effect\.$#' | ||
| identifier: method.resultUnused | ||
| count: 1 | ||
| path: tests/lib/Form/DataTransformer/LanguageTransformerTest.php | ||
|
|
||
| - | ||
| message: '#^Call to method Ibexa\\AdminUi\\Form\\DataTransformer\\ContentInfoTransformer\:\:transform\(\) on a separate line has no effect\.$#' | ||
| identifier: method.resultUnused | ||
| count: 1 | ||
| path: tests/lib/Form/DataTransformer/ContentInfoTransformerTest.php |
There was a problem hiding this comment.
Why did you remove
/** @phpstan-ignore method.resultUnused */
in favor of baseline entries?
There was a problem hiding this comment.
The method.resultUnused error is not reported by PHPStan on PHP 8.4. With an inline @phpstan-ignore, PHPStan on 8.4 would complain about an unmatched ignored error.
|
|
||
| - | ||
| message: '#^Call to method Ibexa\\AdminUi\\Form\\DataTransformer\\LanguageTransformer\:\:transform\(\) on a separate line has no effect\.$#' | ||
| identifier: method.resultUnused | ||
| count: 1 | ||
| path: tests/lib/Form/DataTransformer/LanguageTransformerTest.php | ||
|
|
||
| - | ||
| message: '#^Call to method Ibexa\\AdminUi\\Form\\DataTransformer\\ContentInfoTransformer\:\:transform\(\) on a separate line has no effect\.$#' | ||
| identifier: method.resultUnused | ||
| count: 1 | ||
| path: tests/lib/Form/DataTransformer/ContentInfoTransformerTest.php |
There was a problem hiding this comment.
Can those entries be fixed since you touch it?


Description:
Updated PHP versions in CI configuration to 8.3 and 8.4, aligning baseline files and removing phpstan errors