bug #29260 [Lock] Fixed PdoStore::putOffExpiration(), PdoStore::getHashedKey() (PavelPrischepa)
bug #29260 [Lock] Fixed PdoStore::putOffExpiration(), PdoStore::getHashedKey() (PavelPrischepa)

This PR was merged into the 4.2-dev branch.

Discussion
----------

[Lock] Fixed PdoStore::putOffExpiration(), PdoStore::getHashedKey()

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | It seems no
| Fixed tickets |
| License       | MIT
| Doc PR        |

1. Fixed PDO Statement exception in PdoStore::putOffExpiration():

```
 An exception occurred while executing 'UPDATE lock_keys SET key_expiration = UNIX_TIMESTAMP() + 10, key_token = :token WHERE key_id = :id AND (key_token = :token OR key_expiration <= UNIX_TIMESTAMP())' with params ["dcfc5ff369bc1896563
  325c2e90478154eb670f6b6ebad3617e946ecb1f81517", "FRJOnftxRwPIgIRVb4EpOIVFwNjTmx0fwkBSTVJdViI="]:

  SQLSTATE[HY093]: Invalid parameter number
```

2. Added explicit casting `Key` to `string` in getHashedKey() to avoid error with `strict_types` enabled.

Commits
-------

a639301cd6 [Lock] Fixed PDOStatement exception "Invalid parameter number" in putOffExpiration()

Slamdunk/symfony,hhamon/symfony,dmaicher/symfony,Nyholm/symfony,oleg-andreyev/symfony,kbond/symfony,Simperfit/symfony,localheinz/symfony,vincentaubert/symfony,nicolas-grekas/symfony,mpdude/symfony,Tobion/symfony,gnat42/symfony,derrabus/symfony,bendavies/symfony,Taluu/symfony,symfony/symfony,romaricdrigon/symfony,Slamdunk/symfony,andrerom/symfony,stof/symfony,Simperfit/symfony,HeahDude/symfony,andreia/symfony,derrabus/symfony,tucksaun/symfony,mweimerskirch/symfony,fabpot/symfony,phramz/symfony,romaricdrigon/symfony,jderusse/symfony,mnapoli/symfony,sgehrig/symfony,curry684/symfony,Deamon/symfony,mweimerskirch/symfony,maidmaid/symfony,voronkovich/symfony,smatyas/symfony,Nyholm/symfony,damienalexandre/symfony,shieldo/symfony,bendavies/symfony,fabpot/symfony,arjenm/symfony,1ed/symfony,alekitto/symfony,gnat42/symfony,Koc/symfony,kbond/symfony,docteurklein/symfony,kbond/symfony,OskarStark/symfony,ajgarlag/symfony,oleg-andreyev/symfony,phramz/symfony,pierredup/symfony,voronkovich/symfony,gnat42/symfony,Slamdunk/symfony,gonzalovilaseca/symfony,phramz/symfony,tgalopin/symfony,gonzalovilaseca/symfony,paradajozsef/symfony,d-ph/symfony,zorn-v/symfony,docteurklein/symfony,yceruto/symfony,andreia/symfony,jderusse/symfony,ragboyjr/symfony,andreia/symfony,lstrojny/symfony,shieldo/symfony,jvasseur/symfony,MatTheCat/symfony,Taluu/symfony,pyrech/symfony,shieldo/symfony,xabbuh/symfony,ragboyjr/symfony,andrerom/symfony,mnapoli/symfony,docteurklein/symfony,alekitto/symfony,Simperfit/symfony,zcodes/symfony,tucksaun/symfony,dmaicher/symfony,stof/symfony,paradajozsef/symfony,zerkms/symfony,lstrojny/symfony,Taluu/symfony,garak/symfony,bendavies/symfony,sgehrig/symfony,nicolas-grekas/symfony,derrabus/symfony,oleg-andreyev/symfony,frankdejonge/symfony,frankdejonge/symfony,teohhanhui/symfony,andrerom/symfony,Simperfit/symfony,damienalexandre/symfony,pyrech/symfony,Koc/symfony,stof/symfony,pierredup/symfony,Nyholm/symfony,zorn-v/symfony,paradajozsef/symfony,nicolas-grekas/symfony,sgehrig/symfony,voronkovich/symfony,andreia/symfony,zcodes/symfony,arjenm/symfony,dmaicher/symfony,Koc/symfony,tucksaun/symfony,localheinz/symfony,d-ph/symfony,zorn-v/symfony,docteurklein/symfony,Tobion/symfony,maidmaid/symfony,frankdejonge/symfony,Slamdunk/symfony,Simperfit/symfony,deguif/symfony,phramz/symfony,smatyas/symfony,tgalopin/symfony,Nyholm/symfony,chalasr/symfony,romaricdrigon/symfony,paradajozsef/symfony,pyrech/symfony,maidmaid/symfony,MatTheCat/symfony,ro0NL/symfony,xabbuh/symfony,dmaicher/symfony,localheinz/symfony,yceruto/symfony,fabpot/symfony,OskarStark/symfony,joelwurtz/symfony,teohhanhui/symfony,tgalopin/symfony,1ed/symfony,yceruto/symfony,frankdejonge/symfony,pierredup/symfony,pierredup/symfony,gonzalovilaseca/symfony,Koc/symfony,jakzal/symfony,gonzalovilaseca/symfony,symfony/symfony,andrerom/symfony,MatTheCat/symfony,sroze/symfony,smatyas/symfony,xabbuh/symfony,jakzal/symfony,chalasr/symfony,sroze/symfony,fabpot/symfony,ogizanagi/symfony,teohhanhui/symfony,yceruto/symfony,localheinz/symfony,lyrixx/symfony,mnapoli/symfony,zcodes/symfony,vincentaubert/symfony,MatTheCat/symfony,zorn-v/symfony,symfony/symfony,smatyas/symfony,jakzal/symfony,ogizanagi/symfony,ajgarlag/symfony,mweimerskirch/symfony,ragboyjr/symfony,jvasseur/symfony,nicolas-grekas/symfony,sroze/symfony,smatyas/symfony,hhamon/symfony,vincentaubert/symfony,mweimerskirch/symfony,ro0NL/symfony,hhamon/symfony,Deamon/symfony,alekitto/symfony,ogizanagi/symfony,zcodes/symfony,sroze/symfony,tgalopin/symfony,Tobion/symfony,jakzal/symfony,curry684/symfony,HeahDude/symfony,deguif/symfony,alekitto/symfony,arjenm/symfony,vincentaubert/symfony,1ed/symfony,zerkms/symfony,Deamon/symfony,hhamon/symfony,zerkms/symfony,deguif/symfony,teohhanhui/symfony,Tobion/symfony,OskarStark/symfony,stof/symfony,HeahDude/symfony,xabbuh/symfony,mpdude/symfony,jvasseur/symfony,mnapoli/symfony,kbond/symfony,symfony/symfony,garak/symfony,d-ph/symfony,jderusse/symfony,oleg-andreyev/symfony,gnat42/symfony,docteurklein/symfony,d-ph/symfony,voronkovich/symfony,mpdude/symfony,maidmaid/symfony,OskarStark/symfony,joelwurtz/symfony,curry684/symfony,Deamon/symfony,pyrech/symfony,lyrixx/symfony,ogizanagi/symfony,lyrixx/symfony,1ed/symfony,zerkms/symfony,ro0NL/symfony,romaricdrigon/symfony,sgehrig/symfony,ajgarlag/symfony,jvasseur/symfony,deguif/symfony,jderusse/symfony,Taluu/symfony,tucksaun/symfony,damienalexandre/symfony,bendavies/symfony,garak/symfony,curry684/symfony,HeahDude/symfony,damienalexandre/symfony,lyrixx/symfony,ajgarlag/symfony,shieldo/symfony,arjenm/symfony,Deamon/symfony,derrabus/symfony,joelwurtz/symfony,joelwurtz/symfony,ragboyjr/symfony,ro0NL/symfony,mpdude/symfony,mnapoli/symfony,lstrojny/symfony,mweimerskirch/symfony,chalasr/symfony,garak/symfony,chalasr/symfony