Sometimes a directory only contains classes which are immutable, like value objects. In addition to annotating each of them as immutable, it should also be possible to set the path in the phpstan configuration file and the immutability rule should check all files in that path.
Sometimes a directory only contains classes which are immutable, like value objects. In addition to annotating each of them as immutable, it should also be possible to set the path in the phpstan configuration file and the immutability rule should check all files in that path.
Multiple paths can be configured.