-
Notifications
You must be signed in to change notification settings - Fork 266
Commit f81b4a6
PHPLIB-1118: Drop support for PHP 7.2 and 7.3 (#1128)
* PHPLIB-1118: Drop support for PHP 7.2 and 7.3
* Modernise code for PHP 7.4
This uses rector and phpcbf to automatically fix issues
* Skip rector rule creating adding wrong property type
* Add more missing property types
* Use strval instead of closure
* Use FQN for constant in documentation examples
* Add undectected missing trailing commas
* Split line for readability
* Fix wrong property type
* Remove requirement for JSON_THROW_ON_ERROR in docs examples
* Address code review issues1 parent 2f431c0 commit f81b4a6
File tree
179 files changed
+1029
-1461
lines changed- .evergreen
- examples
- src
- Codec
- Command
- Exception
- GridFS
- Model
- Operation
- tests
- Codec
- Collection
- Comparator
- Database
- GridFS
- Model
- Operation
- PHPUnit
- SpecTests
- ClientSideEncryption
- UnifiedSpecTests
- Constraint
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
179 files changed
+1029
-1461
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | - | ||
694 | - | ||
695 | - | ||
696 | - | ||
697 | - | ||
698 | - | ||
699 | - | ||
700 | - | ||
701 | 693 | | |
702 | 694 | | |
703 | 695 | | |
| |||
707 | 699 | | |
708 | 700 | | |
709 | 701 | | |
710 | - | ||
702 | + | ||
711 | 703 | | |
712 | - | ||
704 | + | ||
713 | 705 | | |
714 | 706 | | |
715 | 707 | | |
| |||
898 | 890 | | |
899 | 891 | | |
900 | 892 | | |
901 | - | ||
893 | + | ||
902 | 894 | | |
903 | 895 | | |
904 | 896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | - | ||
13 | + | ||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | - | ||
71 | + | ||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | - | ||
72 | + | ||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | - | ||
20 | - | ||
19 | + | ||
21 | 20 | | |
22 | - | ||
23 | - | ||
21 | + | ||
24 | 22 | | |
25 | 23 | | |
26 | - | ||
24 | + | ||
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | - | ||
69 | - | ||
66 | + | ||
70 | 67 | | |
71 | - | ||
72 | - | ||
68 | + | ||
73 | 69 | | |
74 | 70 | | |
75 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | - | ||
20 | - | ||
19 | + | ||
21 | 20 | | |
22 | - | ||
23 | - | ||
21 | + | ||
24 | 22 | | |
25 | 23 | | |
26 | - | ||
24 | + | ||
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
67 | - | ||
68 | - | ||
65 | + | ||
69 | 66 | | |
70 | - | ||
71 | - | ||
67 | + | ||
72 | 68 | | |
73 | 69 | | |
74 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | - | ||
40 | + | ||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | - | ||
46 | + | ||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | - | ||
20 | + | ||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | - | ||
116 | - | ||
117 | 115 | | |
118 | 116 | | |
119 | 117 | | |
| |||
154 | 152 | | |
155 | 153 | | |
156 | 154 | | |
157 | - | ||
158 | - | ||
159 | - | ||
160 | 155 | | |
161 | 156 | | |
162 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | + | ||
7 | 8 | | |
9 | + | ||
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | - | ||
20 | + | ||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | - | ||
29 | - | ||
28 | + | ||
30 | 29 | | |
31 | - | ||
32 | - | ||
30 | + | ||
33 | 31 | | |
34 | - | ||
35 | - | ||
32 | + | ||
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
0 commit comments