filmov
tv
Ondrej Mirtes. Use Generics in PHP. Today

Показать описание
Developers in other languages like Java, C#, or TypeScript, have been enjoying the benefits of generics for a long time. They allow us to describe precise types of values included in a collection object or to work around type system limitations without the need for unsafe type casting. PHP does not support generics natively but with the help of PHPDocs, we’re able to simulate them. Static analysers like PHPStan or Psalm are able to interpret generics and take advantage of them to find more bugs thanks to strongly-typed code.
In this talk I’ll introduce the concept of generics, show several useful use cases to the audience, and even dive into how they’re implemented in PHPStan and what had to be considered during the development.
Ondřej likes pointing out mistakes in other people’s code so much that he created PHPStan, a popular static analyzer that focuses on finding bugs in code without running it.
Ondrej Mirtes. Use Generics in PHP. Today
Use Generics in PHP Today | IPC
Ondřej Mirtes - Testing Strategy with the Help of a Static Analyzer | #phpsrb
Tuning PHPStan to Maximum Strictness - Ondrej Mirtes
Ondřej Mirtes - What’s new in PHPStan
DPC2018: Testing Strategy with the Help of a Static Analyzer - Ondrej Mirtes
Ondřej Mirtes - Writing Custom Rules for PHPStan - PHPDD2024
PHPStan: How the Sausage Is Made | Ondřej Mirtes | phpday 2023
Tuning PHPStan to Maximum Strictness | Ondrej Mirtes | phpday 2022
Ondrej Mirtes - Zero Downtime
Ondřej Mirtes - PHPStan
Ondřej Mirtes – PHPStan: Generika a stuby
Ondřej Mirtes - PHPStan: Pokročilé typy
Ondřej Mirtes - PHPStan: Ještě přísnější
Why we can't have generics in PHP — Generics in PHP #3
Generics in PHP
A Case for Generics in PHP | Chris Holland
PHP Release Radar - Episode 13: phpstan
What's New in PhpStorm 2021.2: Generics, Enums, Array Shapes, Refactorings, Inspections
PHP Generics Today (almost) - Dave Liddament - PHP UK 2020
Generics (& Generic Variance) - Simply Explained | Android Development
PHP generics aren't coming…
PHP Typechecks zur Laufzeit? werden diese WIRKLICH gebraucht?
Jan Tvrdík: PHPStan Under the Hood – phpCE 2018
Комментарии