Skip to content

Commit d4eedd2

Browse files
Enable "native_constant_invocation" CS rule
1 parent 9f766b5 commit d4eedd2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Adapter/ExtLdap/Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function escape($subject, $ignore = '', $flags = 0)
7272
$value = ldap_escape($subject, $ignore, $flags);
7373

7474
// Per RFC 4514, leading/trailing spaces should be encoded in DNs, as well as carriage returns.
75-
if ((int) $flags & LDAP_ESCAPE_DN) {
75+
if ((int) $flags & \LDAP_ESCAPE_DN) {
7676
if (!empty($value) && ' ' === $value[0]) {
7777
$value = '\\20'.substr($value, 1);
7878
}

LdapClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Ldap;
1313

14-
@trigger_error('The '.__NAMESPACE__.'\LdapClient class is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Ldap class directly instead.', E_USER_DEPRECATED);
14+
@trigger_error('The '.__NAMESPACE__.'\LdapClient class is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Ldap class directly instead.', \E_USER_DEPRECATED);
1515

1616
/**
1717
* @author Grégoire Pineau <lyrixx@lyrixx.info>
@@ -60,7 +60,7 @@ public function getEntryManager()
6060
*/
6161
public function find($dn, $query, $filter = '*')
6262
{
63-
@trigger_error('The "find" method is deprecated since Symfony 3.1 and will be removed in 4.0. Use the "query" method instead.', E_USER_DEPRECATED);
63+
@trigger_error('The "find" method is deprecated since Symfony 3.1 and will be removed in 4.0. Use the "query" method instead.', \E_USER_DEPRECATED);
6464

6565
$query = $this->ldap->query($dn, $query, ['filter' => $filter]);
6666
$entries = $query->execute();

0 commit comments

Comments
 (0)