Skip to content

Failed to resolve Nutgram Telegram API methods #416

Description

@TurgunboyevUz

Verified on latest main

  • I have confirmed this bug still occurs when built from the latest main branch.

PHPantom version / commit

0.10.0

Installation method

Other (describe in Additional Context)

Operating system

Linux x86_64

Editor

VS Code

Bug description

PHPantom LSP:
Image

Intelephense LSP:
Image

Steps to reproduce

-- Laravel example

  1. Install Nutgram
composer require nutgram/laravel
  1. Create some file (for ex: app/Console/Commands/Phpantom.php)
<?php declare (strict_types = 1);

namespace App\Console\Commands;

use SergiX44\Nutgram\Nutgram;

class Phpantom
{
    public function __construct(string $token)
    {
        $bot = new Nutgram($token);

        $bot->sendMessage("Salom");

        $bot->run();
    }
}
  1. See logs of phpantom lsp.

Error output or panic trace


.phpantom.toml

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions