Skip to content

session_set_save_handler(): note that the object signature doesn't support named arguments - #5987

Open
qodelicious wants to merge 3 commits into
php:masterfrom
qodelicious:session-set-save-handler-named-args
Open

qodelicious wants to merge 3 commits into
php:masterfrom
qodelicious:session-set-save-handler-named-args

Conversation

@qodelicious

Copy link
Copy Markdown
Contributor

The object signature of session_set_save_handler() can't be used with named arguments (sessionhandler: gives "Unknown named parameter"), because the stub only has the callable parameter names. Changed the intro line of the second synopsis to the "Alternative signature (not supported with named arguments)" wording used on implode(), strtok(), min() and others.

Fixes #4341

@lacatoire lacatoire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Following the discussion in #4341, could you also add a short note to the "Named Arguments" section in language/functions.xml?
Then Fixes stays accurate.

@qodelicious

Copy link
Copy Markdown
Contributor Author

Added a short note to the Named Arguments section in language/functions.xml about alternative signatures. Thanks

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.

Unknown named parameter $sessionhandler

2 participants