Fixed mistake with using $this in a static function

Created on 6 June 2018, over 6 years ago
Updated 5 January 2024, 12 months ago

Fixed mistake with using $this in a static function

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine pifagor πŸ‡ΊπŸ‡¦ Rivne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • hello 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;

Production build 0.71.5 2024