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

Add PHP 8.4 support to Smarty #1084

Merged
merged 6 commits into from
Nov 21, 2024

Conversation

jolelievre
Copy link

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

*/
public function __construct(
string $message = "",
int $code = 0,
?string $filename = null,
?int $line = null,
Throwable $previous = null
?\Throwable $previous = null
Copy link
Contributor

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?

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Author

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

@wisskid
Copy link
Contributor

wisskid commented Nov 21, 2024

@jolelievre couple of issues with the unit tests, I'm afraid.

@jolelievre
Copy link
Author

Ok thanks @wisskid I'll look into it

@jolelievre
Copy link
Author

jolelievre commented Nov 21, 2024

@wisskid it should be good now, at least locally I don't have any errors anymore, I had missed some E_STRICT
And I removed the \ for the Throwable

@wisskid wisskid merged commit bf87aee into smarty-php:support/4 Nov 21, 2024
14 checks passed
@jolelievre
Copy link
Author

Thanks @wisskid

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.

2 participants