Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improved scanner to only look at the "returnvalues" sections #305

Merged

Conversation

Duroth
Copy link
Contributor

@Duroth Duroth commented Oct 17, 2021

Improved scanner to only look at the "returnvalues" sections of docs for their return values.

Previously, the entire docPage was scanned, leading to errors such as password_hash(), where the string "returns false on failure" was found in the Changelog section.

I have discovered two new errors resulting from this change:

  • sys_getloadavg() Is now missing (defines falsy return in Description section, instead of the Returnvalues section)
  • posix_getpgid() idem

These functions have been added to the special_cases, as the cause is an inconsistency in the PHP docs.

All other removed functions have been checked, and are fixes / improvements to the generated function list.

…for their return values.

New errors:
* sys_getloadavg (defines falsy return in Description section, not Returnvalues)
* posix_getpgid (idem)

All other changes are fixes / improvements.
Syntactic error  in DocPageTest (missing NEW instruction)
@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2021

Codecov Report

Merging #305 (816a2ed) into master (a5fa665) will increase coverage by 0.52%.
The diff coverage is 97.22%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #305      +/-   ##
============================================
+ Coverage     48.15%   48.67%   +0.52%     
- Complexity      306      308       +2     
============================================
  Files            16       16              
  Lines           785      795      +10     
============================================
+ Hits            378      387       +9     
- Misses          407      408       +1     
Impacted Files Coverage Δ
generator/src/DocPage.php 80.00% <97.22%> (+0.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a5fa665...816a2ed. Read the comment docs.

Added the two new failures to special_cases for now; should ideally be fixed in php/docs-en repo.
Customized return hint on sys_getloadavg() in special_cases.
@Duroth Duroth marked this pull request as ready for review October 17, 2021 13:06
@dbrekelmans dbrekelmans merged commit 9337088 into thecodingmachine:master Oct 17, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missign gzopen function dom_import_simplexml() no longer returns null on failure in PHP8
4 participants