mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Remove instanceof test
This commit is contained in:
parent
b1e583ebed
commit
309c39bc59
@ -433,27 +433,6 @@ class PsalmInternalAnnotationTest extends TestCase
|
||||
}',
|
||||
'error_message' => 'InternalClass',
|
||||
],
|
||||
'internalClassWithInstanceOf' => [
|
||||
'<?php
|
||||
namespace A\B {
|
||||
interface Bar {};
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @psalm-internal A\B
|
||||
*/
|
||||
class Foo { }
|
||||
}
|
||||
|
||||
namespace A\C {
|
||||
class Bat {
|
||||
public function batBat(\A\B\Bar $bar) : void {
|
||||
$bar instanceOf \A\B\Foo;
|
||||
}
|
||||
}
|
||||
}',
|
||||
'error_message' => 'A\B\Foo is internal to A\B',
|
||||
],
|
||||
'internalClassWithExtends' => [
|
||||
'<?php
|
||||
namespace A\B {
|
||||
|
Loading…
x
Reference in New Issue
Block a user