Commit bd13f69
committed
fix: guard setAccessible() call for PHP 8.5+
ReflectionProperty::setAccessible() is deprecated in PHP 8.5 and will be
removed in PHP 9.0. Since PHP 8.1, all properties are accessible via
Reflection by default, making this call unnecessary.
This adds a version guard to only call setAccessible() on PHP < 8.5,
matching the pattern used in Laravel Telescope and Horizon.1 parent 0467a7a commit bd13f69
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
0 commit comments