Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
5813cbc
tests: Use mock web server
jtojnar Jun 25, 2026
712d7eb
Remove unused variables
jtojnar Nov 1, 2026
6d27b3b
Remove unused private method
jtojnar Nov 2, 2026
272e23a
parseU: Handle images properly
jtojnar Nov 1, 2026
626a610
Remove @access modifiers from PHPDoc
jtojnar Nov 1, 2026
a36401f
Parser: Add PHP type hints
jtojnar Nov 2, 2026
56572ec
Parser: Adjust type hints
jtojnar Nov 1, 2026
3554757
Url::removeOneDirLevel: Handle extra `/..`
jtojnar Nov 1, 2026
9ec5eb7
Parser: enable strict_types
jtojnar Nov 1, 2026
c902554
Add types using PHPDoc to xpath results
jtojnar Nov 1, 2026
da3030c
composer: Sort dependencies
jtojnar Nov 1, 2026
15d4377
Add PHPStan
jtojnar Nov 1, 2026
c33f79b
UrlTest: Remove stale PHP 5.4 test case
jtojnar Nov 1, 2026
0411475
tests: Add type hints
jtojnar Nov 2, 2026
ef76369
tests: Enforce strict types
jtojnar Nov 2, 2026
48e74d6
Parser: Fix PHPStan `parameterByRef.type`
jtojnar Nov 22, 2026
3913ad6
PHPStan: Raise to level 3
jtojnar Nov 22, 2026
dd5f654
Parser: Fix PHPStan `if.alwaysTrue`
jtojnar Nov 22, 2026
32408a9
MicroformatsTestSuiteTest: Fix PHPStan `isset.property`
jtojnar Nov 22, 2026
fe5b011
PHPStan: Raise to level 4
jtojnar Nov 22, 2026
746d886
Parser: Fix PHPStan `argument.type`
jtojnar Nov 22, 2026
4a81ae2
PHPStan: Raise to level 5
jtojnar Nov 22, 2026
aaa5621
Tests: Fix PHPStan `missingType.iterableValue` in data providers
jtojnar Nov 22, 2026
c5d604d
Tests: Fix PHPStan `missingType.parameter` in dataProvider users
jtojnar Nov 22, 2026
1b2fb19
MicroformatsTestsSuite: Fix PHPStan `missingType.return`
jtojnar Nov 22, 2026
a484fa5
Tests: Add remaining param types
jtojnar Nov 22, 2026
225e50c
Parser: Add iterable types for url helpers
jtojnar Nov 22, 2026
fc612e7
Parser: Add iterable types for various values
jtojnar Nov 22, 2026
60adfd8
Parser: Remove redundant `array_filter`
jtojnar Nov 23, 2026
b9ab211
Parser: Add iterable types for parse methods
jtojnar Nov 22, 2026
dd72110
PHPStan: Raise to level 6
jtojnar Nov 22, 2026
a54bc0b
Tests: Fix `method.alreadyNarrowedType` with PHPStan PHPUnit extension
jtojnar Nov 23, 2026
611e1e2
PHPStan: Add PHPUnit support
jtojnar Nov 22, 2026
7abf7a4
Parser/fetch: Require non-empty-string for URL
jtojnar Nov 22, 2026
d9a7408
Tests: Ensure false-returning functions do not fail
jtojnar Nov 22, 2026
6ea9b83
Tests: Adjust assertions according to PHPDoc types
jtojnar Nov 22, 2026
a079ce4
Parser: Turn failing XPath queries to empty list
jtojnar Nov 23, 2026
1a360b1
Parser: Apply fixes to appease PHPStan level 7
jtojnar Nov 23, 2026
9a4cf1f
Parser: Fix encoding numeric encoding
jtojnar Nov 23, 2026
46d6d31
Parser/nestedMfPropertyNamesFromClass: Turn results into lists
jtojnar Nov 23, 2026
abadb61
Parser::parseDT: Handle error cases correctly
jtojnar Nov 23, 2026
17ae01d
Parser: Ensure false-returning functions do not fail
jtojnar Nov 23, 2026
6d89612
Parser::parseRecursive: handle parseE returning string
jtojnar Nov 23, 2026
03d040b
Parser::query: Correct return type
jtojnar Nov 23, 2026
67772d9
Parser: Use `object` cast to create empty `stdClass`
jtojnar Nov 23, 2026
6aa1198
PHPStan: Raise to level 7
jtojnar Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
#run: composer validate --strict # Currently we’re installing mf2/tests from a commit ref.
run: composer validate

- name: Run static analysis
run: composer phpstan -- --error-format=github

- name: Run Test Suite
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit tests --coverage-text

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ composer.lock
.idea/
/bin/test
/.phpunit.result.cache
/phpstan.neon
Loading
Loading