Repository navigation
ci: add to the PHPStan baseline the four errors reported on 4.3.x whatever the change - #832
Merged
Merged
Conversation
…tever the change The Static Analysis job fails on 4.3.x for reasons outside the code: - PHPStan 2.3.7, shipped by the phpqa image since its rebuild of 2026-11-20, reports a mixed value as the condition of the ternaries of the processHeaders() methods of JSONFlattenedSerializer and JSONGeneralSerializer and of the if of MixedPublicAndPrivateKeys, as on 4.2.x (4029d7e); - symfony/dependency-injection 8.2.0 declares the $config argument of ContainerBuilder::prependExtensionConfig() as array<string, mixed>, while ConfigurationHelper::updateJoseConfiguration() passes an array<mixed>. The baseline, generated by castor phpstan-baseline with the current image, gains those four entries and nothing else.
Spomky
added a commit
that referenced
this pull request
Nov 29, 2026
…n 8.2 reports on 4.2.x symfony/dependency-injection 8.2.0 declares the $config argument of ContainerBuilder::prependExtensionConfig() as array<string, mixed>, while ConfigurationHelper::updateJoseConfiguration() passes an array<mixed>. The Static Analysis job therefore fails on 4.2.x whatever the change, and the tests it gates are skipped. 4.3.x got the same entry in #832. The baseline, generated by castor phpstan-baseline with the current image, gains that entry and nothing else.
wheakerd
pushed a commit
to wheakerd/jwt-framework
that referenced
this pull request
Nov 29, 2026
…tever the change The Static Analysis job fails on 5.0.x for the reasons fixed on 4.3.x by web-token#832: - PHPStan 2.3.7, shipped by the phpqa image since its rebuild of 2026-11-20, reports a mixed value as the condition of the ternaries of the processHeaders() methods of JSONFlattenedSerializer and JSONGeneralSerializer and of the if of MixedPublicAndPrivateKeys; - symfony/dependency-injection 8.2.0 declares the $config argument of ContainerBuilder::prependExtensionConfig() as array<string, mixed>, while ConfigurationHelper::updateJoseConfiguration() passes an array<mixed>. The baseline, generated by castor phpstan-baseline with the current image, gains those four entries and nothing else.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Static Analysis job fails on 4.3.x whatever the change: #830, #831 and #827 hit it, and the tests job, which needs it, is skipped. The last green run on 4.3.x is the one of
024031b3(2026-11-10).The cause
Nothing in the code changed. Four errors come from the tooling:
JSONFlattenedSerializer::processHeaders();JSONGeneralSerializer::processHeaders();ifofMixedPublicAndPrivateKeys.symfony/dependency-injection8.2.0 now declares the$configargument ofContainerBuilder::prependExtensionConfig()asarray<string, mixed>, andConfigurationHelper::updateJoseConfiguration()passes anarray<mixed>. 4.2.x does not install Symfony 8, so this one is specific to 4.3.x.The fix
The baseline, generated by
castor phpstan-baselinewith the current image (phpqa:8.4of 2026-11-28) after a cleancomposer install, gains those four entries and nothing else.Verification
[OK] No errorsafter.[OK] No errors.Once this is merged, #830 and #831 are rebased on 4.3.x.