bug #37594 Use hexadecimal numerals instead of hexadecimals in strings to repres… (arekzb)

This PR was submitted for the master branch but it was merged into the 4.4 branch instead.

Discussion
----------

Use hexadecimal numerals instead of hexadecimals in strings to repres…

Use hexadecimal numerals instead of hexadecimals in strings to represent error codes.

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #37577 , #36327
| License       | MIT

Class constants are now hexadecimal numerals instead of hexadecimals in strings.

Commits
-------

e9f7769111 Use hexadecimal numerals instead of hexadecimals in strings to represent error codes.
This commit is contained in:
Fabien Potencier 2020-07-20 09:00:45 +02:00
commit 3619661d65
1 changed files with 3 additions and 3 deletions

View File

@ -25,9 +25,9 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
*/
class Connection extends AbstractConnection
{
private const LDAP_INVALID_CREDENTIALS = '0x31';
private const LDAP_TIMEOUT = '0x55';
private const LDAP_ALREADY_EXISTS = '0x44';
private const LDAP_INVALID_CREDENTIALS = 0x31;
private const LDAP_TIMEOUT = 0x55;
private const LDAP_ALREADY_EXISTS = 0x44;
/** @var bool */
private $bound = false;