Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix ftp related function signatures #2551

Merged
merged 1 commit into from Aug 14, 2023

Conversation

thg2k
Copy link
Contributor

@thg2k thg2k commented Jul 25, 2023

Fixes the following issues:

  • Fixed optional 'mode' for file transfer functions (optional since php 7.3.0)
  • Added missing false value for 'ftp_nb_put'
  • Consistent naming of the first parameter 'stream' (it should actually be 'ftp' since 8.x, but then it should be changed in the delta file) (removed per maintainer request)

@ondrejmirtes
Copy link
Member

Consistent naming of the first parameter 'stream'

Please remove this change. There's no need to change the name.

1) The 'mode' parameter became optional as of PHP 7.3.0
2) Function 'ftp_nb_get()' returns 'int|false'
@thg2k thg2k force-pushed the pr/ftp_functions_signatures branch from 9de74c5 to 12a2f18 Compare August 14, 2023 08:13
@thg2k
Copy link
Contributor Author

thg2k commented Aug 14, 2023

I removed the change of the parameter name. Although i don't understand why it should stay inconsistent across the same family of functions. Also rebased to current 1.10.x

@ondrejmirtes ondrejmirtes merged commit 8102c4e into phpstan:1.10.x Aug 14, 2023
408 of 409 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@thg2k thg2k deleted the pr/ftp_functions_signatures branch August 14, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants