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

PDF class error #602

Closed
hdewaart opened this issue Dec 18, 2016 · 1 comment
Closed

PDF class error #602

hdewaart opened this issue Dec 18, 2016 · 1 comment

Comments

@hdewaart
Copy link

hdewaart commented Dec 18, 2016

On the last update to 3.1.4 I receive this error:

exception 'yii\base\ErrorException' with message 'syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'' in /var/www/html/planning/dev/vendor/kartik-v/yii2-grid/GridView.php:1395
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleFatalError()
#1 {main}

error line:
if (!class_exists(Pdf::class)) {

A rollback to 3.1.3 the error is gone

env.
PHP 5.4.16
Yii 2.0.10

@kuJIorpaMM
Copy link

Same for me now. The ::class works in PHP 5.5+ (http://php.net/manual/en/language.oop5.basic.php)

@kartik-v kartik-v added the bug label Dec 19, 2016
@kartik-v kartik-v changed the title pdf class error PDF class error Dec 19, 2016
@kartik-v kartik-v added enhancement and removed bug labels Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants