Repository navigation
Release 2.6.0: PHPStan and mutation testing in CI, bounded contextual serializers, linear collection validation - #13
Merged
Merged
Conversation
… serializers, linear collection validation - PHPStan level 5 in CI, covering the Laravel traits through their users - Infection in CI with a covered-MSI gate of 84% (MSI 83% -> 86%); tests that pin the ciphertext formats, the blind index, cache defaults and file-cache, XML and unknown-key edge cases - Contexts not declared in #[Hidden(except:)] share one serializer; at most 64 contexts are cached per class - Expand index-independent wildcard rules per item so collection validation runs in linear time - Exact Money::toDecimal() beyond 2^53 - CommaSeparatedCast(maxItems:) and SensitiveVarDumperCaster, both opt-in - Document the cache deploy order and cache-directory permissions
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.
Tooling
phpstan.neon.dist); the Laravel traits are analysed through the classes that use them (S4-F10).minCoveredMsi84; covered MSI 83% → 86% with tests that pin the ciphertext formats, the blind index,__set_statedefaults, file-cache, XML and unknown-key edge cases (S4-F13).Fixed
toArray($context): contexts not declared in#[Hidden(except:)]share one serializer, at most 64 cached per class. 20 000 contexts: +132 MB / 308 ms → +0 MB / 13 ms (S2-02).fromValidated()on large#[InferRules]collections: wildcard rules are expanded per item when the result is identical — 8 000 items 1.3 s → 0.2 s. Rules with*in parameters anddistinctkeep the wildcard; an equivalence test compares errors with Laravel's wildcard validation (S3-F6).Money::toDecimal()exact beyond 2^53, 156 → 114 ns (S3-F8).Added (opt-in)
CommaSeparatedCast(maxItems:)— 9.5 MB of commas: 537 MB → 9.5 MB peak (S3-F15).SensitiveVarDumperCaster::register()redacts#[Sensitive]fields indump()/dd()(S1-08).Docs
opcache.validate_timestamps=0) and cache-directory permissions (S2-01, S4-F11).Verification
toArray($context)+3–6 ns,toArray()unchanged.