Commit 3f140ed
committed
fix E_STRICT deprecation notices on php 8.4 and 8.5
E_STRICT was referenced in two spots on the error handling path:
ErrorListenerIntegration::severityToLevel() and
ErrorSerializer::errorLevelToString(). Both match arms are evaluated
lazily, so the constant was only touched for notice and deprecation
level diagnostics, which is why every app notice produced two extra
'Constant E_STRICT is deprecated' lines. Those lines were printed by
php itself instead of being captured, since php does not re-enter the
user error handler while it is already running.
The level was removed back in php 8.0 and this package requires ^8.1,
so both arms were dead code already. In php 9.0 the constant is gone
entirely, which would have thrown Undefined constant inside the error
handler.
Also drops a ReflectionProperty::setAccessible() call deprecated in 8.5,
adds failOnDeprecation to phpunit.xml so this class of issue breaks the
build instead of passing silently, and adds 8.5 to the CI matrix.
Fixes #71 parent 24a5991 commit 3f140ed
6 files changed
Lines changed: 12 additions & 5 deletions
File tree
- .github/workflows
- packages/logtide
- src
- Integration
- Serializer
- tests/Unit
- Serializer
- State
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
68 | | - | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | | - | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
0 commit comments