Skip to content

fixbug #2999#3084

Merged
limingxinleo merged 4 commits intohyperf:masterfrom
osgochina:master
Jan 10, 2021
Merged

fixbug #2999#3084
limingxinleo merged 4 commits intohyperf:masterfrom
osgochina:master

Conversation

@osgochina
Copy link
Copy Markdown
Contributor

@osgochina osgochina commented Jan 7, 2021

修复了getRealPath报错的问题。

fix #2999

@limingxinleo limingxinleo merged commit 2da93f3 into hyperf:master Jan 10, 2021
if ($node instanceof Node\Stmt\Class_) {
if (isset($node->stmts) && is_array($node->stmts) && ! empty($node->stmts)) {
foreach ($node->stmts as $key => $method) {
if ($method instanceof Node\Stmt\ClassMethod) {
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.

这里的代码为什么不使用 && 呢?

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.

嗯,确实 && 好一点

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.

打包phar文件成功了,拷贝到其他目录执行时报错

3 participants