31

Writing better Drupal code with static analysis using PHPStan | matt glaman

 5 years ago
source link: https://glamanate.com/blog/writing-better-drupal-code-static-analysis-using-phpstan
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
PHP is a loosely typed interpreted language. That means we cannot compile our scripts and find possible execution errors without doing explicit inspections of our code. It also means we need to rely on conditional type checking or using phpDoc comments to tell other devs or IDE what kind of value to expect. Really there is no way to assess the quality of the code or discover possible bugs without thorough test coverage and regular review.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK