Describe the bug
Passing Foo::class into a function that requires string type in strict mode will result in an error.
To Reproduce
<?php
declare(strict_types=1);
class Foo {};
class Bar extends Foo {};
// Expected type 'string'. Found 'class-string<Foo>'.
var_dump(is_subclass_of(new Bar, Foo::class));
Expected behavior
There should be no errors.
Screenshots
Platform and version
OS: Windows 10 WSL2
Intelephense version: v1.11.0 (pre-release)
Describe the bug Passing
Foo::class
into a function that requiresstring
type in strict mode will result in an error.To Reproduce
Expected behavior There should be no errors.
Screenshots![PixPin_2024-06-29_16-18-49](https://github.com/bmewburn/vscode-intelephense/assets/39550254/db586cb3-b119-4cf6-9f62-9bab98732be4)
Platform and version OS:
Windows 10 WSL2
Intelephense version:v1.11.0 (pre-release)