Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check @mixin from phpdoc #1207

Open
des1roer opened this issue Dec 7, 2022 · 0 comments
Open

Check @mixin from phpdoc #1207

des1roer opened this issue Dec 7, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@des1roer
Copy link

des1roer commented Dec 7, 2022

PHP Version: 7.4

OS: Linux

Run command:

./vendor/bin/noverify check --allow-checks='undefinedMethod' --php7 --baseline='baseline.json' backen

The minimal code in which the bug appears:

$newMessage = BackendKernel::GetKernel()->GetRepositories()->GetFeedBackNewMessages();

/**
 * @return IKernelRepositoryInterface
 */
function GetRepositories();

/**
 * @mixin \backend\Repositories\GetFeedBackMessages
 */
interface IKernelRepositoryInterface
{
}

class GetFeedBackMessages
{
    public function GetFeedBackNewMessages()
    {

Actual Behavior:

ERROR undefinedMethod: Call to undefined method {\backend\modules\crmfo_kernel_api\helpers\IKernelRepositoryInterface}->GetFeedBackNewMessages() at /var/www/crm/backend/views/sales.php:14

Expected Behavior:

Ожидается что миксины корректно учитываются линтером и ошибки нет. PhpStorm их обрабатывает верно

[Optional] Details:

Perhaps additional information that can help us.

[Optional] Steps to Reproduce

If it is required for a better understanding of the problem.

@des1roer des1roer added the bug Something isn't working label Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant