analyse/classes/invalid-new
In the analyse-basic preset and every stricter one. Report only. Planned: not in Pun yet. Enabling it is a config error.
Replaces
InstantiationRule(phpstan-classes)AbstractInstantiation(mago-analyzer)EnumInstantiation(mago-analyzer)InterfaceInstantiation(mago-analyzer)InvalidMethodAccess(mago-analyzer)class.notFound(phpstan)new.abstract(phpstan)new.dateTime(phpstan)new.dateTimeImmutable(phpstan)new.enum(phpstan)new.interface(phpstan)new.noConstructor(phpstan)new.nonObject(phpstan)new.privateConstructor(phpstan)new.protectedConstructor(phpstan)new.trait(phpstan)