Skip to content

Add PHP type hints - #292

Open
jtojnar wants to merge 7 commits into
microformats:mainfrom
jtojnar:types
Open

jtojnar wants to merge 7 commits into
microformats:mainfrom
jtojnar:types

Conversation

@jtojnar
jtojnar force-pushed the types branch 3 times, most recently from dd25fc4 to 64fb74b Compare November 1, 2026 22:31
@jtojnar
jtojnar marked this pull request as ready for review November 1, 2026 22:31
@jtojnar
jtojnar force-pushed the types branch 2 times, most recently from 3fdb5c6 to 0b79cab Compare November 1, 2026 23:50
@pfefferle

Copy link
Copy Markdown
Contributor

Shouldn't we separate the type hints change from the structural updates of the tests and the introduction of PHPStan!?

@jtojnar

jtojnar commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Each change is in an independent commit to make it easier to review. I can also split it into multiple PRs though they depend on each other and it does not look like gh-stack currently supports cross-fork stacked PRs.

Edit: Split the whole thing anyway:

├ test-types ○ #303
├ php54-cleanup ○ #302
├ phpstan ○ #301
├ composer-sort ○ #300
├ xpath-types ○ #299
├ strict-types ○ #298
├ urlparent-fix ○ #297
» types ○ #292 (current)
├ access-cleanup ○ #296
├ resolve-img ○ #295
├ unused ○ #294
├ tests-local-fetch ○ #281
└ main

@jtojnar
jtojnar force-pushed the types branch 3 times, most recently from 68b78f5 to a3d12e8 Compare November 2, 2026 23:55
@jtojnar jtojnar mentioned this pull request Nov 2, 2026
This will allow the tests to work offline or if the servers have an outage,
and they will not break if the site changes.
Reported by PHPStan
Reported by PHPStan.
`parseImg` can return `array` in which case we would not resolve the URL properly.
This is already declared using native PHP keyword.
Performed automatically using Rector.
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