method not found depends in the order?

As you can see in the picture, if i change the order the error is gone? why does this happens?

 

Method 'viewVars' not found in more

0
4 comments
Avatar
Permanently deleted user

Hello,

It is really hard to say anything in particular about this situation without the whole code snippet.

Can you reproduce it within a small sample project? If yes then can you share it?

You can also contact our support team via Help > New Support Request for investigation.

0
Avatar
Permanently deleted user
<?php

class MainTest {

}

class Test extends MainTest {

public function test1($this){return $this;}
public function test2($this){return $this;}
public function test3($this){return $this;}
public function test4($this){return $this;}
public function test5($this){return $this;}
public function test6($this){return $this;}

}

$test = New Test();
$test->test1("test")
->test3("test")
->test4("test")
->test5("test")
->test6("test");
0
Avatar
Permanently deleted user

This one gives me an method not found in test6, but if I remove the "extends MainTest" error is gone

0
Avatar
Permanently deleted user

They just answered to me, this is the bug,https://youtrack.jetbrains.com/issue/WI-33097

0

Please sign in to leave a comment.