-
Notifications
You must be signed in to change notification settings - Fork 713
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
Add PHP 8.4 support to Smarty #1084
Add PHP 8.4 support to Smarty #1084
Conversation
*/ | ||
public function __construct( | ||
string $message = "", | ||
int $code = 0, | ||
?string $filename = null, | ||
?int $line = null, | ||
Throwable $previous = null | ||
?\Throwable $previous = null |
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.
why did you add the backslash?
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.
Mostly because it was also added in the PR for V5 https://github.com/smarty-php/smarty/pull/1043/files#diff-d0f40f666506e3868faaf237c1f5a7731be2cd3c96bfa986b564f7c765b42bb5R26
But I can remove it
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.
Ah but I'm dumb there's no namespace in smarty 4, so not needed
@jolelievre couple of issues with the unit tests, I'm afraid. |
Ok thanks @wisskid I'll look into it |
f83f926
to
ede06e7
Compare
@wisskid it should be good now, at least locally I don't have any errors anymore, I had missed some E_STRICT |
ede06e7
to
0fd7a07
Compare
Thanks @wisskid |
This PR is mostly a backport of #1043 for version 4
This pull request updates the code base to support the deprecations introduced in PHP 8.4. It should be backwards compatible.
Updated the function signatures that had implicit null assignment to typed parameters.
Added PHP 8.4 to the 'run tests'-shell script.
Bumped the PHP version in the README.md