You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The ArgumentResolverTrait in phpleague 2.4.1 still uses the deprecated ReflectionParameter::getClass method. This issue is fixed in eb23e27, which got merged into v3.3.3.
The most obvious way to fix this is to upgrade the "phpleague/container" package. It's 3.x branch claims to support PHP 7.0 - PHP 8.0 (experimental) while its 2.x branch supports PHP up to 7.1 only. One difference between this and #1214 is that it is not a development dependency. Changing the container library would change a bunch of files in /vendor unless either #1123 or #1209 is merged first.
Using the source folder as docroot, start a PHP 8 test server with display_error=1 and error_reporting=E_ALL (i.e. showing deprecated warnings). For example with this command:
Describe the bug
The ArgumentResolverTrait in phpleague 2.4.1 still uses the deprecated ReflectionParameter::getClass method. This issue is fixed in eb23e27, which got merged into v3.3.3.
As for the 2.x branch, the last update was 2016. And the getClass call is still there:
https://github.com/thephpleague/container/blob/7b57d9455cac5fd1107ba1836a293cda64371fa3/src/Argument/ArgumentResolverTrait.php#L54
The most obvious way to fix this is to upgrade the "phpleague/container" package. It's 3.x branch claims to support PHP 7.0 - PHP 8.0 (experimental) while its 2.x branch supports PHP up to 7.1 only. One difference between this and #1214 is that it is not a development dependency. Changing the container library would change a bunch of files in /vendor unless either #1123 or #1209 is merged first.
To Reproduce
display_error=1
anderror_reporting=E_ALL
(i.e. showing deprecated warnings). For example with this command:Expected behavior
Do not see this kind of message at all.
Screenshots
![2021-02-02 12-41-45 的螢幕擷圖](https://user-images.githubusercontent.com/91274/106553300-1772f480-6554-11eb-8098-5d4e48df6fe3.png)
![2021-01-27 23-45-40 的螢幕擷圖](https://user-images.githubusercontent.com/91274/106017991-09f4df00-60fc-11eb-953e-615de03e681f.png)
![2021-01-28 00-02-05 的螢幕擷圖](https://user-images.githubusercontent.com/91274/106018047-1aa55500-60fc-11eb-8b07-1ac9714f8432.png)
Your System
The text was updated successfully, but these errors were encountered: