1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Merge pull request #9115 from BenMorel/getDefaultValueConstantName

Infer getDefaultValueConstantName() type when isDefaultValueConstant() is true
This commit is contained in:
orklah 2023-01-15 19:44:30 +01:00 committed by GitHub
commit dedb4bba21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -642,6 +642,13 @@ class ReflectionParameter implements Reflector {
* @since 8.0
*/
public function isPromoted(): bool {}
/**
* @psalm-assert-if-true string $this->getDefaultValueConstantName()
*/
public function isDefaultValueConstant(): bool {}
public function getDefaultValueConstantName(): ?string {}
}
/** @psalm-immutable */