Aller au contenu
AFUP AFUP Day 2025 Baromètre Planète PHP PUFA
 

[ATELIER] Find Bugs in Your Code With PHPStan

Description

Running static analysis on your codebase can discover a lot of bugs and documentation issues. It can find errors like calling an undefined method, unknown classes in typehints, whether a method returns the same type it declares to return etc. It also reduces the need for unit testing the wiring of your code so you can focus on business logic. I set out to create a static analysis tool that is fast, extensible and user-friendly. It's called PHPStan and I'd love to tell what it can do for you. In this workshop, I'll show you various features and performed checks of PHPStan, how to configure it properly and get the most out of it. Bring your own code and I'll help you to integrate PHPStan into your workflow.

Conférence donnée lors du PHP Tour Nantes 2017, ayant eu lieu les 18 et 19 mai 2017.

Informations complémentaires

Le speaker

Ondrej MIRTES

CTO at Slevomat, Czech largest Groupon-like e-commerce site offering deals to >200k daily visitors. I am especially interested in developing web apps outside of the traditional LAMP stack using technologies like RabbitMQ, Elasticsearch, Redis, Supervisor, React.PHP, and WebSockets. I love continuous integration, unit testing, versioning, and code reviews. To broaden my horizons outside of my daily job, I also develop native apps for iOS.