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

Update project for PHP8.1 #704

Closed
wants to merge 1 commit into from
Closed

Update project for PHP8.1 #704

wants to merge 1 commit into from

Conversation

Indianos
Copy link

Since PHP8.1 is asking strict type, removed $line = null default value in smartycompilerexception.php

Since PHP8.1 is asking strict type, removed `$line = null` default value in smartycompilerexception.php
*/
public $line = null;
public $line;
Copy link
Contributor

@thirsch thirsch Jan 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this does not solve the issue for us. We are still getting the following error:

NOTICE: PHP message: PHP Fatal error: Type of SmartyCompilerException::$line must be int (as in class Exception) in .../vendor/smarty/smarty/libs/sysplugins/smartycompilerexception.php on line 8

If I change the line to public int $line;, everything is working, but this is not backward compatible to php < 7.4

@wisskid
Copy link
Contributor

wisskid commented Jan 21, 2022

Please see #713

@wisskid wisskid closed this Jan 21, 2022
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.

None yet

3 participants