Skip to content

Fix ftp related function signatures#2551

Merged
ondrejmirtes merged 1 commit intophpstan:1.10.xfrom
thg2k:pr/ftp_functions_signatures
Aug 14, 2023
Merged

Fix ftp related function signatures#2551
ondrejmirtes merged 1 commit intophpstan:1.10.xfrom
thg2k:pr/ftp_functions_signatures

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
@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

Development

Successfully merging this pull request may close these issues.

2 participants