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

Clarify language a little

This commit is contained in:
Matthew Brown 2020-08-06 09:02:24 -04:00
parent ec7876b8d6
commit ccd4eaa8e7

View File

@ -387,7 +387,8 @@ class NewAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expression\CallAna
if ($from_static && !$storage->preserve_constructor_signature) {
if (IssueBuffer::accepts(
new UnsafeInstantiation(
'Cannot instantiate class ' . $fq_class_name . ' with a non-final constructor',
'Cannot safely instantiate class ' . $fq_class_name . ' with "new static" as '
. ' its constructor might change in child classes',
new CodeLocation($statements_analyzer->getSource(), $stmt)
),
$statements_analyzer->getSuppressedIssues()