Commit 8b4162f
committed
bug #62619 [Messenger] Fix PHP 8.5 deprecation for pgsqlGetNotify() in PostgreSQL transport (Shine-neko)
This PR was submitted for the 7.4 branch but it was merged into the 6.4 branch instead.
Discussion
----------
[Messenger] Fix PHP 8.5 deprecation for pgsqlGetNotify() in PostgreSQL transport
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| License | MIT
Fix a PHP 8.5 deprecation warning in the PostgreSQL messenger transport.
In PHP 8.5, `PDO::pgsqlGetNotify()` is deprecated in favor of the new `Pdo\Pgsql::getNotify()` method. This change uses `instanceof` to detect the `Pdo\Pgsql` class and calls the appropriate method, maintaining backward compatibility with older PHP versions.
Commits
-------
60efbba [Messenger] Fix PHP 8.5 deprecation for pgsqlGetNotify() in PostgreSQL transportFile tree
2 files changed
+11
-2
lines changed- src/Symfony/Component/Messenger/Bridge/Doctrine
- Tests/Transport
- Transport
2 files changed
+11
-2
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
0 commit comments