Skip to content

Commit 7c6f561

Browse files
authored
Merge pull request #602 from DirectoryTree/v3.0
V3.0
2 parents 00d04ee + 496fd44 commit 7c6f561

File tree

190 files changed

+4198
-7073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+4198
-7073
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ assignees: ''
1313
-->
1414
**Environment:**
1515
- LDAP Server Type: [e.g. ActiveDirectory / OpenLDAP / FreeIPA]
16-
- PHP Version: [e.g. 7.3 / 7.4 / 8.0]
16+
- PHP Version: [e.g. 8.1 / 8.2]
1717

1818
**Describe the bug:**

.github/ISSUE_TEMPLATE/support---help-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ assignees: ''
1717
-->
1818
**Environment:**
1919
- LDAP Server Type: [e.g. ActiveDirectory / OpenLDAP / FreeIPA]
20-
- PHP Version: [e.g. 7.3 / 7.4 / 8.0]
20+
- PHP Version: [e.g. 8.1 / 8.2]

.github/workflows/run-integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
os: [ubuntu-latest]
31-
php: [8.1, 8.0, 7.4]
31+
php: [8.1, 8.2]
3232

3333
name: ${{ matrix.os }} - P${{ matrix.php }}
3434

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
os: [ubuntu-latest, windows-latest]
18-
php: [8.1, 8.0, 7.4, 7.3]
18+
php: [8.1, 8.2]
1919

2020
steps:
2121
- name: Checkout code

.styleci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
preset: laravel
2+
enabled:
3+
- no_superfluous_phpdoc_tags

composer.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,22 @@
2929
}
3030
],
3131
"require": {
32-
"php": ">=7.3",
32+
"php": ">=8.1",
3333
"ext-ldap": "*",
3434
"ext-json": "*",
35-
"psr/log": "^1.0|^2.0|^3.0",
36-
"psr/simple-cache": "^1.0|^2.0",
37-
"nesbot/carbon": "^1.0|^2.0",
38-
"tightenco/collect": "^5.6|^6.0|^7.0|^8.0|^9.0",
39-
"illuminate/contracts": "^5.0|^6.0|^7.0|^8.0|^9.0|^10.0",
40-
"symfony/polyfill-php80": "^1.25"
35+
"ext-iconv": "*",
36+
"psr/log": "*",
37+
"psr/simple-cache": "^2.0|^3.0",
38+
"nesbot/carbon": "*",
39+
"illuminate/contracts": "^8.0|^9.0|^10.0",
40+
"illuminate/collections": "^8.0|^9.0|^10.0"
4141
},
4242
"require-dev": {
4343
"phpunit/phpunit": "^9.0",
4444
"mockery/mockery": "^1.0",
45-
"spatie/ray": "^1.24"
45+
"spatie/ray": "^1.24",
46+
"laravel/pint": "^1.6",
47+
"fakerphp/faker": "^1.21"
4648
},
4749
"archive": {
4850
"exclude": [

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
</p>
3333

3434
<h4 align="center">
35-
<a href="https://ldaprecord.com/docs/core/v2/quickstart/">Quickstart</a>
35+
<a href="https://ldaprecord.com/docs/core/v3/quickstart/">Quickstart</a>
3636
<span> · </span>
37-
<a href="https://ldaprecord.com/docs/core/v2/">Documentation</a>
37+
<a href="https://ldaprecord.com/docs/core/v3/">Documentation</a>
3838
<span> · </span>
3939
<a href="https://github.com/DirectoryTree/LdapRecord-Laravel">Laravel Integration</a>
4040
<span> · </span>
@@ -67,15 +67,15 @@ Active Directory Features
6767

6868
🚪 **Enable / Disable Accounts**
6969

70-
Detect and assign User Account Control values on accounts with the fluent [Account Control builder](https://ldaprecord.com/docs/core/v2/active-directory/users/#uac).
70+
Detect and assign User Account Control values on accounts with the fluent [Account Control builder](https://ldaprecord.com/docs/core/v3/active-directory/users/#uac).
7171

7272
🔑 **Reset / Change Passwords**
7373

74-
Built-in support for [changing](https://ldaprecord.com/docs/core/v2/active-directory/users/#changing-passwords) and [resetting](https://ldaprecord.com/docs/core/v2/active-directory/users/#resetting-passwords) passwords on Active Directory accounts.
74+
Built-in support for [changing](https://ldaprecord.com/docs/core/v3/active-directory/users/#changing-passwords) and [resetting](https://ldaprecord.com/docs/core/v3/active-directory/users/#resetting-passwords) passwords on Active Directory accounts.
7575

7676
🗑 **Restore Deleted Objects**
7777

78-
We've all been there -- accidentally deleting a user or group in Active Directory. [Restore them](https://ldaprecord.com/docs/core/v2/models/#restoring-deleted-models) by seamlessly accessing your directory's recycle bin.
78+
We've all been there -- accidentally deleting a user or group in Active Directory. [Restore them](https://ldaprecord.com/docs/core/v3/models/#restoring-deleted-models) by seamlessly accessing your directory's recycle bin.
7979

8080
---
8181

src/Auth/Events/Event.php

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,23 @@ abstract class Event
88
{
99
/**
1010
* The connection that the username and password is being bound on.
11-
*
12-
* @var LdapInterface
1311
*/
14-
protected $connection;
12+
protected LdapInterface $connection;
1513

1614
/**
1715
* The username that is being used for binding.
18-
*
19-
* @var string
2016
*/
21-
protected $username;
17+
protected ?string $username;
2218

2319
/**
2420
* The password that is being used for binding.
25-
*
26-
* @var string
2721
*/
28-
protected $password;
22+
protected ?string $password;
2923

3024
/**
3125
* Constructor.
32-
*
33-
* @param LdapInterface $connection
34-
* @param string $username
35-
* @param string $password
3626
*/
37-
public function __construct(LdapInterface $connection, $username, $password)
27+
public function __construct(LdapInterface $connection, string $username = null, string $password = null)
3828
{
3929
$this->connection = $connection;
4030
$this->username = $username;
@@ -43,30 +33,24 @@ public function __construct(LdapInterface $connection, $username, $password)
4333

4434
/**
4535
* Returns the events connection.
46-
*
47-
* @return LdapInterface
4836
*/
49-
public function getConnection()
37+
public function getConnection(): LdapInterface
5038
{
5139
return $this->connection;
5240
}
5341

5442
/**
5543
* Returns the authentication events username.
56-
*
57-
* @return string
5844
*/
59-
public function getUsername()
45+
public function getUsername(): ?string
6046
{
6147
return $this->username;
6248
}
6349

6450
/**
6551
* Returns the authentication events password.
66-
*
67-
* @return string
6852
*/
69-
public function getPassword()
53+
public function getPassword(): ?string
7054
{
7155
return $this->password;
7256
}

0 commit comments

Comments
 (0)