Skip to content

Commit 1d6853d

Browse files
Merge branch '4.4' into 5.1
* 4.4: Update .php_cs.dist Apply "visibility_required" CS rule to constants
2 parents 3b55ed7 + 002da25 commit 1d6853d

File tree

4 files changed

+48
-48
lines changed

4 files changed

+48
-48
lines changed

Adapter/ExtLdap/ConnectionOptions.php

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -23,44 +23,44 @@
2323
*/
2424
final class ConnectionOptions
2525
{
26-
const API_INFO = 0x00;
27-
const DEREF = 0x02;
28-
const SIZELIMIT = 0x03;
29-
const TIMELIMIT = 0x04;
30-
const REFERRALS = 0x08;
31-
const RESTART = 0x09;
32-
const PROTOCOL_VERSION = 0x11;
33-
const SERVER_CONTROLS = 0x12;
34-
const CLIENT_CONTROLS = 0x13;
35-
const API_FEATURE_INFO = 0x15;
36-
const HOST_NAME = 0x30;
37-
const ERROR_NUMBER = 0x31;
38-
const ERROR_STRING = 0x32;
39-
const MATCHED_DN = 0x33;
40-
const DEBUG_LEVEL = 0x5001;
41-
const TIMEOUT = 0x5002;
42-
const NETWORK_TIMEOUT = 0x5005;
43-
const X_TLS_CACERTDIR = 0x6003;
44-
const X_TLS_CERTFILE = 0x6004;
45-
const X_TLS_CRL_ALL = 0x02;
46-
const X_TLS_CRL_NONE = 0x00;
47-
const X_TLS_CRL_PEER = 0x01;
48-
const X_TLS_KEYFILE = 0x6005;
49-
const X_TLS_REQUIRE_CERT = 0x6006;
50-
const X_TLS_PROTOCOL_MIN = 0x6007;
51-
const X_TLS_CIPHER_SUITE = 0x6008;
52-
const X_TLS_RANDOM_FILE = 0x6009;
53-
const X_TLS_CRLFILE = 0x6010;
54-
const X_TLS_PACKAGE = 0x6011;
55-
const X_TLS_CRLCHECK = 0x600b;
56-
const X_TLS_DHFILE = 0x600e;
57-
const X_SASL_MECH = 0x6100;
58-
const X_SASL_REALM = 0x6101;
59-
const X_SASL_AUTHCID = 0x6102;
60-
const X_SASL_AUTHZID = 0x6103;
61-
const X_KEEPALIVE_IDLE = 0x6300;
62-
const X_KEEPALIVE_PROBES = 0x6301;
63-
const X_KEEPALIVE_INTERVAL = 0x6302;
26+
public const API_INFO = 0x00;
27+
public const DEREF = 0x02;
28+
public const SIZELIMIT = 0x03;
29+
public const TIMELIMIT = 0x04;
30+
public const REFERRALS = 0x08;
31+
public const RESTART = 0x09;
32+
public const PROTOCOL_VERSION = 0x11;
33+
public const SERVER_CONTROLS = 0x12;
34+
public const CLIENT_CONTROLS = 0x13;
35+
public const API_FEATURE_INFO = 0x15;
36+
public const HOST_NAME = 0x30;
37+
public const ERROR_NUMBER = 0x31;
38+
public const ERROR_STRING = 0x32;
39+
public const MATCHED_DN = 0x33;
40+
public const DEBUG_LEVEL = 0x5001;
41+
public const TIMEOUT = 0x5002;
42+
public const NETWORK_TIMEOUT = 0x5005;
43+
public const X_TLS_CACERTDIR = 0x6003;
44+
public const X_TLS_CERTFILE = 0x6004;
45+
public const X_TLS_CRL_ALL = 0x02;
46+
public const X_TLS_CRL_NONE = 0x00;
47+
public const X_TLS_CRL_PEER = 0x01;
48+
public const X_TLS_KEYFILE = 0x6005;
49+
public const X_TLS_REQUIRE_CERT = 0x6006;
50+
public const X_TLS_PROTOCOL_MIN = 0x6007;
51+
public const X_TLS_CIPHER_SUITE = 0x6008;
52+
public const X_TLS_RANDOM_FILE = 0x6009;
53+
public const X_TLS_CRLFILE = 0x6010;
54+
public const X_TLS_PACKAGE = 0x6011;
55+
public const X_TLS_CRLCHECK = 0x600b;
56+
public const X_TLS_DHFILE = 0x600e;
57+
public const X_SASL_MECH = 0x6100;
58+
public const X_SASL_REALM = 0x6101;
59+
public const X_SASL_AUTHCID = 0x6102;
60+
public const X_SASL_AUTHZID = 0x6103;
61+
public const X_KEEPALIVE_IDLE = 0x6300;
62+
public const X_KEEPALIVE_PROBES = 0x6301;
63+
public const X_KEEPALIVE_INTERVAL = 0x6302;
6464

6565
public static function getOptionName(string $name): string
6666
{

Adapter/ExtLdap/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class Query extends AbstractQuery
2323
{
2424
// As of PHP 7.2, we can use LDAP_CONTROL_PAGEDRESULTS instead of this
25-
const PAGINATION_OID = '1.2.840.113556.1.4.319';
25+
public const PAGINATION_OID = '1.2.840.113556.1.4.319';
2626

2727
/** @var Connection */
2828
protected $connection;

Adapter/QueryInterface.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
*/
2222
interface QueryInterface
2323
{
24-
const DEREF_NEVER = 0x00;
25-
const DEREF_SEARCHING = 0x01;
26-
const DEREF_FINDING = 0x02;
27-
const DEREF_ALWAYS = 0x03;
24+
public const DEREF_NEVER = 0x00;
25+
public const DEREF_SEARCHING = 0x01;
26+
public const DEREF_FINDING = 0x02;
27+
public const DEREF_ALWAYS = 0x03;
2828

29-
const SCOPE_BASE = 'base';
30-
const SCOPE_ONE = 'one';
31-
const SCOPE_SUB = 'sub';
29+
public const SCOPE_BASE = 'base';
30+
public const SCOPE_ONE = 'one';
31+
public const SCOPE_SUB = 'sub';
3232

3333
/**
3434
* Executes a query and returns the list of Ldap entries.

LdapInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
*/
2323
interface LdapInterface
2424
{
25-
const ESCAPE_FILTER = 0x01;
26-
const ESCAPE_DN = 0x02;
25+
public const ESCAPE_FILTER = 0x01;
26+
public const ESCAPE_DN = 0x02;
2727

2828
/**
2929
* Return a connection bound to the ldap.

0 commit comments

Comments
 (0)