Symfony 6 Certification New exam with updated questions 100% online Show your expertise

New rule emphasizing the importance of SOLID principles

SymfonyInsight's main aim is to help you manage and increase the quality of your applications. A great way to achieve this is to follow good practices and standards, both from Symfony and from programming in general.

One of these good practices is to follow the SOLID principles, a famous set of concepts which help developers create high quality software architectures. Following the SOLID principles brings many advantages to your projects:

  • it decouples your logic in multiple independent components which you can easily unit test;
  • it eases migration by avoiding your project to be tightly linked to its dependencies;
  • it helps newcomers understand the most important parts of your project by exposing only the necessary public API;

This new rule detects when you could have used the SOLID principles in the context of Symfony by providing interfaces you could have used instead of implementations. This will also help you migrate to Symfony 4 if you need to, as several new features of Symfony 4 are depending on the usage of SOLID principles.

SymfonyInsight Typehint Rule

Read more about this rule on its dedicated documentation page.

And as always, feel free to contact us if you have any question or feedback!

Help the Symfony project!

As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.

New rule emphasizing the importance of SOLID principles

Tweet this


Comments are closed.

To ensure that comments stay relevant, they are closed for old posts.