Skip to content

Fix type errors in APIBibCode and APIPubMed - #5721

Merged
GlazerMann merged 1 commit into
ms609:masterfrom
redalert2fan:fix/bibcode-pubmed-types
Aug 8, 2026
Merged

Fix type errors in APIBibCode and APIPubMed#5721
GlazerMann merged 1 commit into
ms609:masterfrom
redalert2fan:fix/bibcode-pubmed-types

Conversation

@redalert2fan

Copy link
Copy Markdown
Contributor

APIBibCode: type query_adsabs() and Bibcode_Response_Processing() as stdClass (json_decode output), making the numFound/docs property accesses valid. APIPubMed: guard preg_match results before [0] access, guard mktime() false in the embargo-date check, and type the xml_post URL param as non-empty-string for the curl stub. Resolves 9 PHPStan level 7 errors.

APIBibCode: type query_adsabs() and Bibcode_Response_Processing() as
stdClass (json_decode output), making the numFound/docs property
accesses valid. APIPubMed: guard preg_match results before [0]
access, guard mktime() false in the embargo-date check, and type the
xml_post URL param as non-empty-string for the curl stub. Resolves 9
PHPStan level 7 errors.
@github-actions github-actions Bot added the api label Aug 8, 2026
@GlazerMann
GlazerMann merged commit b24fdc0 into ms609:master Aug 8, 2026
21 checks passed
@redalert2fan
redalert2fan deleted the fix/bibcode-pubmed-types branch August 8, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants