Skip to content

Conversation

@Khartir
Copy link
Contributor

@Khartir Khartir commented Jul 24, 2025

I made a version of PHPStan's JsonThrowOnErrorDynamicReturnTypeExtension to handle the return types of \Safe\json_decode.

I also took the liberty to fix a failing test.

There is also a PR open in PHPStant to remove the deprecated instanceof checks: phpstan/phpstan-src#4155
No longer relevant

@Khartir Khartir force-pushed the add-json_decode-return-type-extension branch from 419b761 to 4d80fb2 Compare July 25, 2025 09:32
@shish shish merged commit 1b231d1 into thecodingmachine:master Aug 17, 2025
@Khartir Khartir deleted the add-json_decode-return-type-extension branch August 18, 2025 05:14
@Khartir
Copy link
Contributor Author

Khartir commented Nov 20, 2025

Hey would it be possible to make a new release for this? I would really like to add this to our project.

@staabm
Copy link
Collaborator

staabm commented Nov 20, 2025

@shish not sure whether we need manual steps for a release. can I just tag a new release?

@shish
Copy link
Collaborator

shish commented Nov 20, 2025

@staabm I believe it's just pushing a new tag, yeah - at least I don't have anything special in my notes 😅

@staabm
Copy link
Collaborator

staabm commented Nov 20, 2025

@Khartir
Copy link
Contributor Author

Khartir commented Nov 20, 2025

Thank you both for the quick reaction. 👍

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.

3 participants