Skip to content

chore(json-schema): add PHPStan assertions to ValidationResult helpers#164

Merged
sorinsarca merged 1 commit into
opis:masterfrom
maartenpaauw:feat/phpstan-annotations-for-validation-result
Apr 30, 2026
Merged

chore(json-schema): add PHPStan assertions to ValidationResult helpers#164
sorinsarca merged 1 commit into
opis:masterfrom
maartenpaauw:feat/phpstan-annotations-for-validation-result

Conversation

@maartenpaauw
Copy link
Copy Markdown
Contributor

Add @phpstan-assert-if-true annotations to isValid() and hasError()in ValidationResult.

This project does not run PHPStan itself, but these annotations improve type inference for projects that consume this package and do use PHPStan.

Add `@phpstan-assert-if-true` annotations to `isValid()` and `hasError()`in ValidationResult.

This project does not run PHPStan itself, but these annotations improve type inference for projects that consume this package and do use PHPStan.
@sorinsarca sorinsarca merged commit 85d8523 into opis:master Apr 30, 2026
7 checks passed
@maartenpaauw maartenpaauw deleted the feat/phpstan-annotations-for-validation-result branch April 30, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants