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:
commit
dedb4bba21
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user