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

PHP 8.2: ${var} string interpolation deprecated #216

Closed
llaville opened this issue Oct 15, 2022 · 1 comment
Closed

PHP 8.2: ${var} string interpolation deprecated #216

llaville opened this issue Oct 15, 2022 · 1 comment

Comments

@llaville
Copy link

Hello,

I know that PHP 8.2 did not reach stable status yet, but it will be helpfull to remove deprecation messages.
Read more at https://php.watch/versions/8.2/$%7Bvar%7D-string-interpolation-deprecated

With current version 8.4.1 of cachetool I got (for example) with cachetool opcache:status command :

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/cachetool/src/Command/AbstractOpcacheCommand.php on line 27

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/cachetool/src/Command/OpcacheResetFileCacheCommand.php on line 47

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in phar:///usr/local/bin/cachetool/src/Adapter/FastCGI.php on line 82
+----------------------+---------------------------------+
| Name                 | Value                           |
+----------------------+---------------------------------+
| Enabled              | Yes                             |
| Cache full           | No                              |
| Restart pending      | No                              |
| Restart in progress  | No                              |
| Memory used          | 8.74 MiB                        |
| Memory free          | 119.26 MiB                      |
| Memory wasted (%)    | 0 b (0%)                        |
| Strings buffer size  | 6 MiB                           |
| Strings memory used  | 733.36 KiB                      |
| Strings memory free  | 5.28 MiB                        |
| Number of strings    | 15490                           |
+----------------------+---------------------------------+
| Cached scripts       | 0                               |
| Cached keys          | 0                               |
| Max cached keys      | 16229                           |
| Start time           | Sat, 15 Oct 2022 07:12:47 +0000 |
| Last restart time    | Never                           |
| Oom restarts         | 0                               |
| Hash restarts        | 0                               |
| Manual restarts      | 0                               |
| Hits                 | 0                               |
| Misses               | 4                               |
| Blacklist misses (%) | 0 (0%)                          |
| Opcache hit rate     | 0                               |
+----------------------+---------------------------------+
@gordalina
Copy link
Owner

Released in v8.5.0. Thank you!

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

No branches or pull requests

2 participants