-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
PHP 8 support #4306
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
PHP 8 support #4306
Conversation
samdark
commented
Aug 5, 2020
Q | A |
---|---|
Is bugfix? | ✔️ |
New feature? | ❌ |
Breaks BC? | ❌ |
Tests pass? | ✔️ |
Fixed issues | - |
Taken from: yiisoft/yii#4306 by @samdark
Taken from: yiisoft/yii#4306 by @samdark
if(version_compare(PHP_VERSION,'8.0','>=')) { | ||
$isArray=$param->getType() && $param->getType()->getName()==='array'; | ||
} else { | ||
$isArray = $param->isArray(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code formatting could be improved a little bit.
} else { | ||
$isArray=$param->isArray(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code formatting could be improved a little bit.
fyi use see page 63-65 https://www.slideshare.net/nikita_ppv/php-performance-trivia edit: seems fine for 5.3+ https://3v4l.org/6adjF |