Closed (fixed)
Project:
Google Analytics
Version:
8.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2018 at 17:58 UTC
Updated:
5 Jan 2024 at 14:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pifagorComment #3
alex_optimLooks good.
Comment #4
hass commentedThis was changed in last month and has not caused any issues. What is wrong here?
Comment #5
pifagorYou use $this in a static method, for example
protected static function validateCreateFieldValueuse$this->t('The value ofMore info here - http://php.net/manual/en/language.oop5.static.php
Comment #8
hass commentedComment #10
Anitche ekpereamaka commentedhello am having this issue
public static function createFromGlobals(): static
{
$request = self::createRequestFromFactory($_GET, $_POST, [], $_COOKIE, $_FILES, $_SERVER);
if (str_starts_with($request->headers->get('CONTENT_TYPE', ''), 'application/x-www-form-urlencoded')
&& \in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET')), ['PUT', 'DELETE', 'PATCH'])
) {
parse_str($request->getContent(), $data);
$request->request = new InputBag($data);
}
return $request;