svnldwg / phpstan-rules

Collection of useful additional phpstan rules. Currently only one rule, which checks immutability of objects (e.g. value objects) or properties.
MIT License
7 stars 0 forks source link

Configure path with immutable classes #3

Open svnldwg opened 3 years ago

svnldwg commented 3 years ago

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.