mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
InvalidClass is also reported if the casing in the namespace is wrong (#4090)
This commit is contained in:
parent
eae55eb584
commit
6db3f45114
@ -8,3 +8,19 @@ Emitted when referencing a class with the wrong casing
|
||||
class Foo {}
|
||||
(new foo());
|
||||
```
|
||||
|
||||
Could also be an issue in the namespace even if the class has the correct casing
|
||||
```php
|
||||
<?php
|
||||
|
||||
namespace OneTwo {
|
||||
class Three {}
|
||||
}
|
||||
|
||||
namespace {
|
||||
use Onetwo\Three;
|
||||
// ^ ("t" instead of "T")
|
||||
|
||||
$three = new Three();
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user