-
-
Notifications
You must be signed in to change notification settings - Fork 346
PHP8.4 fix: Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() #1236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 3.x
Are you sure you want to change the base?
Conversation
ah shoot, i misread the doc. This only works for 8.3 and up |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 3.x #1236 +/- ##
=========================================
Coverage 91.81% 91.81%
- Complexity 1285 1286 +1
=========================================
Files 107 107
Lines 3518 3519 +1
=========================================
+ Hits 3230 3231 +1
Misses 288 288 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fix: Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in src/Rule/UnusedFormalParameter.php on line 146
It looks like what we actually need is to conditionally ignore this function being unknown in https://github.com/phpstan/phpstan-src/blob/2.1.x/build/ignore-by-php-version.neon.php |
…ack to new ReflectionMethod()
Crap |
fix: Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in src/Rule/UnusedFormalParameter.php on line 146
Type: bugfix
Breaking change: no
https://www.php.net/manual/en/reflectionmethod.construct.php#:~:text=The%20alternative%20signature%20is%20deprecated%20as%20of%20PHP%208.4.0
https://www.php.net/manual/en/reflectionmethod.createfrommethodname.php