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

Fix string interpolation to have $ inside { #165

Merged
merged 11 commits into from
Nov 9, 2023

Conversation

kienstra
Copy link
Contributor

@kienstra kienstra commented Nov 6, 2023

Changes

  • Fix string interpolation to have $ inside {
  • Update composer dependencies

Testing instructions

Not needed

@@ -46,7 +46,7 @@ public function set_plugin( PluginInterface $plugin ) {
public function __call( $name, $arguments ) {
$class = get_class( $this );
$class_name = strtolower( str_replace( '\\', '__', $class ) );
$function_name = "{$class_name}__${name}";
$function_name = "{$class_name}__{$name}";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was always wrong syntax, but it's a fatal error in PHP 8.2

@kienstra
Copy link
Contributor Author

kienstra commented Nov 9, 2023

The test failures are unrelated, I'll fix those in another PR.

@kienstra kienstra marked this pull request as ready for review November 9, 2023 14:20
@kienstra
Copy link
Contributor Author

kienstra commented Nov 9, 2023

Thanks a lot, @dreamwhisper!

@kienstra kienstra merged commit 18d71be into develop Nov 9, 2023
3 of 12 checks passed
@kienstra kienstra deleted the fix/string-interpolation branch November 9, 2023 14:30
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