Skip to content
Snippets Groups Projects

Issue #3344996: Fix PHP 8.1 deprecation

Merged renatog requested to merge issue/webform-3344996:3344996-fix-php-8.1 into 6.1.x
@@ -15,10 +15,11 @@ class WebformUiPathProcessor implements OutboundPathProcessorInterface {
* {@inheritdoc}
*/
public function processOutbound($path, &$options = [], Request $request = NULL, BubbleableMetadata $bubbleable_metadata = NULL) {
if ((strpos($path, '/webform/') === FALSE)
|| empty($request)
|| empty($request->getQueryString())
) {
$is_webform_path = (!empty($path) && str_contains($path, '/webform/'));
$has_query_string = (!empty($request) && !empty($request->getQueryString()));
if (!$is_webform_path || !$has_query_string) {
return $path;
}
Loading