1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 02:47:02 +01:00
psalm/src/Psalm/Exception/UnpopulatedClasslikeException.php
Bruce Weirdan 51460e6078 Codebase::classExtends() now rejects unpopulated classes
This is done to prevent false negatives, when class storage hasn't been
populated yet.

Fixes vimeo/psalm#1387
2019-03-17 13:51:00 -04:00

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.'
);
}
}