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:
parent
ec7876b8d6
commit
ccd4eaa8e7
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user