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

Links to the help page for built-in functions in signature helper #14

Open
BladeMF opened this issue Dec 14, 2020 · 4 comments
Open

Links to the help page for built-in functions in signature helper #14

BladeMF opened this issue Dec 14, 2020 · 4 comments

Comments

@BladeMF
Copy link
Contributor

BladeMF commented Dec 14, 2020

These are really predictable - replace the underscores with dashes and voila - for file_put_contents() it would be https://www.php.net/manual/en/function.file-put-contents.php. Probably something in the twig template with a filter? Can I do it? Is it as simple as modifying the twig template?

@dantleech
Copy link
Contributor

I don't think so:

  • We don't know if a function is built-in or not.
  • We have no guarantee that a built-in function is documented.

@BladeMF
Copy link
Contributor Author

BladeMF commented Dec 14, 2020

How do you know the built-in functions' signatures then?

@BladeMF
Copy link
Contributor Author

BladeMF commented Dec 22, 2020

I noticed you are using jetbrains/phpstorm-stubs. They all have links and pretty well formatted comments, e.g:

/**
 * Opens a bzip2 compressed file
 * @link https://php.net/manual/en/function.bzopen.php
 * @param string $filename <p>
 * The name of the file to open, or an existing stream resource.
 * </p>
 * @param string $mode <p>
 * Similar to the <b>fopen</b> function, only 'r' (read)
 * and 'w' (write) are supported. Everything else will cause bzopen
 * to return <b>FALSE</b>.
 * </p>
 * @return resource|false If the open fails, <b>bzopen</b> returns <b>FALSE</b>, otherwise
 * it returns a pointer to the newly opened file.
 */
function bzopen ($filename, $mode) {}

Can you use those?

@dantleech
Copy link
Contributor

We do use those?

image

or what do you mean?

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

No branches or pull requests

2 participants