We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<?php class Mapper { public const MAP = [ Foo::class => self::A, Bar::class => self::E, ]; public const A1 = 'A1'; private const A = [ self::A1, ]; public const E1 = 'E1'; private const E = [ self::E1, ]; } abstract class Base { public static function getValidAccountTypes(): array { return Mapper::MAP[static::class] ?? []; } } class Foo extends Base {} class Bar extends Base {}
Expected: no issue Actual: return type cannot be inferred
The text was updated successfully, but these errors were encountered:
a3e51d6
No branches or pull requests
Expected: no issue
Actual: return type cannot be inferred
The text was updated successfully, but these errors were encountered: