mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 02:47:02 +01:00
51460e6078
This is done to prevent false negatives, when class storage hasn't been populated yet. Fixes vimeo/psalm#1387
14 lines
377 B
PHP
14 lines
377 B
PHP
<?php
|
|
namespace Psalm\Exception;
|
|
|
|
class UnpopulatedClasslikeException extends \LogicException
|
|
{
|
|
public function __construct(string $fq_classlike_name)
|
|
{
|
|
parent::__construct(
|
|
'Cannot check inheritance - \'' . $fq_classlike_name . '\' has not been populated yet.'
|
|
. ' You may need to defer this check to a later phase.'
|
|
);
|
|
}
|
|
}
|