Use $request->getRawVal( 'key' ) ?? 'default' instead of $request->getRawVal( 'key', 'default' ) The ?? is more flexible, avoids a wrong type detection by phan and avoids the evaluation of the default value if not needed. Bug: T376245 Depends-On: I3ed6b85c0d117ed7cb3a8b79f73a3eb42977891e Change-Id: I8b02f9297b76d04e21f8cb9194f3b85631956eca |
||
|---|---|---|
| .. | ||
| ContentSecurityPolicy.php | ||
| DerivativeRequest.php | ||
| FauxRequest.php | ||
| FauxRequestUpload.php | ||
| FauxResponse.php | ||
| HeaderCallback.php | ||
| PathRouter.php | ||
| ProxyLookup.php | ||
| WebRequest.php | ||
| WebRequestUpload.php | ||
| WebResponse.php | ||