-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
perfect FunctionScanner class #1
Comments
Hey, all the scanners are generally to be avoided: consider using (and contributing to) Originally posted by @Ocramius at zendframework/zend-code#181 (comment) |
Performance, which can be ignored temporarilypurposeThe code prompt file is generated automatically according to the ide-helper-generator I wrote. It's useful here to scanner conceive
Existing ide helper (v2.2.0)<?php
/**
* docblock and other
*/
class Server{
/**
* docblock and other
* @param string $ip
* @param int $port
*/
public function __constuct($ip, $port);
}
/**
* function docblock and other
* @param string $ip
* @param int $port
*/
function swoole_server($ip, $port); Need to update to 4.x.x
<?php
Swoole\Server::__construct(string $host, int $port = 0, int $mode = SWOOLE_PROCESS,$sock_type = SWOOLE_SOCK_TCP);
function swoole_server($ip, $port, $mode, $sock_type); Desired result
<?php
/**
* docblock and other
*/
class Server{
/**
* docblock and other
* @param string $ip
* @param int $port
* Some parameters are not, and need to be processed manually.
*/
public function __constuct(
string $host,
int $port = 0,
int $mode = SWOOLE_PROCESS,
$sock_type = SWOOLE_SOCK_TCP
);
}
/**
* function docblock and other
* @param string $ip
* @param int $port
*/
function swoole_server($ip, $port, $mode, $sock_type); Here you need to use classScanner and FunctionScanner. The actual situationOne day I need to use Chinese Version:no English original:Have If you have the latest code prompt, type Of course, this is official and there is help documentation, so using your own development php extension, or niche php extension, ide-helper automatic generation will be very convenient. You don't need to check the git log to improve the document, although I will not develop PHP at this time. Expansion.
Originally posted by @pifeifei at zendframework/zend-code#181 (comment) |
The Originally posted by @pifeifei at zendframework/zend-code#181 (comment) |
No longer needed as per #58 |
`DocScanner` may raise the following error with PHP 8.1 if `shortDescription` is used before initialization, the default value being `null`: ``` Deprecated: "trim(): Passing null to parameter laminas#1 ($string) of type string is deprecated" ```
CHANGELOG.md
entry for the new feature.Originally posted by @pifeifei at zendframework/zend-code#181
The text was updated successfully, but these errors were encountered: