Skip to content

Trying to access array offset on value of type null #136

@theara72

Description

@theara72

I come across this error such as below

php : v8.0.3 with opcache and xdebug
laravel : v8 LTS

note: eror occure while pre-compile commanding

sorry for bad english

Trying to access array offset on value of type null

  at C:\xampp_old\htdocs\nib-backend-v2\vendor\laravel\framework\src\Illuminate\Http\Client\Response.php:349
    345▕      */
    346▕     #[\ReturnTypeWillChange]
    347▕     public function offsetGet($offset)
    348▕     {
  ➜ 349▕         return $this->json()[$offset];
    350▕     }
    351▕
    352▕     /**
    353▕      * Set the value at the given offset.

  1   C:\xampp_old\htdocs\nib-backend-v2\vendor\laravel\framework\src\Illuminate\Http\Client\Response.php:349
      Illuminate\Foundation\Bootstrap\HandleExceptions::handleError("Trying to access array offset on value of type null", "C:\xampp_old\htdocs\nib-backend-v2\vendor\laravel\framework\src\Illuminate\Http\Client\Response.php")

  2   C:\xampp_old\htdocs\nib-backend-v2\vendor\appstract\laravel-opcache\src\Commands\Compile.php:40
      Illuminate\Http\Client\Response::offsetGet("result")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions