Type-Safe PHP
Since version 7, PHP allows significantly more type safety when programming. This means that many errors can be found before a program is even executed.
In this training, you will learn about the two development tools Psalm and PHPStan through live demonstrations. You will learn to use the tools correctly and to make targeted adjustments to your source code in order to significantly reduce the probability of errors.
Learning Objectives
- You can use Psalm and PHPStan for your PHP projects
- You understand the output of Psalm as well as PHPStan and can derive appropriate measures from it
- You can make previously implicit assumptions about your code explicit through annotations
- You can have these explicit assumptions checked automatically by Psalm and PHPStan
Target Audience
This training is intended for advanced PHP developers who create or maintain complex applications.
Requirements
Participants should have about 3-4 years of experience programming with PHP or a similar programming language. Participants should have practical experience with object-oriented programming and be confident in using an IDE, common development tools, and Git version control.
Type-Safe PHP 396,- EUR 4 Credits
2 Online Sessions á 120 minutes
This training will next start on .
After that, it is expected to next take place in .
-
Introduction
Duration: 120 minutes
- What is type safety?
- Installing and configuring Psalm
- What does Psalm tell me about my code?
- Installing and configuring PHPStan
- What does PHPStan tell me about my code?
- Psalm or PHPStan? Or both?
-
The Next Level of Type Safety
Duration: 120 minutes
- Q and A
- Documenting and enforcing array structures
- Immutable objects
- More type safety through assertions
- Templated Types
Your Trainer
Sebastian Bergmann is the author of PHPUnit and sets the industry standard for quality assurance.Exclusive and customized?
We are happy to conduct any training exclusively online ("in-house") for you. We adapt the content and focus to your specific wishes and needs and optionally work with examples directly from your code base.