<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Mastering PHPStan Custom Rules with Ondřej Mirtes</title>
        <link>https://phpc.tv/videos/watch/4fb66ff7-5448-4936-bbb0-fde60675759d</link>
        <description>Why write a test for a single bug when you can write a rule that prevents that bug forever? We caught up with Ondřej Mirtes, the creator of PHPStan, to preview his upcoming talk at PHP UK Conference 2026. We explore the concept of "Defect Driven Design" using Custom Rules, moving beyond standard static analysis to enforce project-specific consistency and architectural decisions. We also discuss how static analysis serves as a testing ground for future PHP language features (like Generics and the never return type) and the special "PHPStan Office Hours" taking place in the hallway track this year. 00:00 - Introduction: PHPStan at PHP UK 01:00 - What are Custom Rules? 01:41 - Finding Bugs Without Executing Code 06:01 - "Defect Driven Design": Replacing Tests with Rules 08:37 - Enforcing Codebase Consistency 11:16 - Understanding Code at the AST Level 13:13 - From Detection (PHPStan) to Automation (Rector) 19:56 - Static Analysis as a Playground for PHP Features 22:08 - Announcing: PHPStan Office Hours (Hallway Track) 26:19 - Supporting the Project &amp; Commercial Usage 27:21 - The PHP UK Conference experience 🎟️ See Ondřej live at PHP UK 2026! 📅 February 20th | London, 1 America Square 👉 Tickets Available Now: https://www.phpconference.co.uk/tickets</description>
        <lastBuildDate>Tue, 14 Apr 2026 21:11:56 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>PeerTube - https://phpc.tv</generator>
        <image>
            <title>Mastering PHPStan Custom Rules with Ondřej Mirtes</title>
            <url>https://phpc.tv/lazy-static/avatars/a00c380b-7291-4db3-b239-61999888fbca.png</url>
            <link>https://phpc.tv/videos/watch/4fb66ff7-5448-4936-bbb0-fde60675759d</link>
        </image>
        <copyright>All rights reserved, unless otherwise specified in the terms specified at https://phpc.tv/about and potential licenses granted by each content's rightholder.</copyright>
        <atom:link href="https://phpc.tv/feeds/video-comments.xml?videoId=4fb66ff7-5448-4936-bbb0-fde60675759d" rel="self" type="application/rss+xml"/>
    </channel>
</rss>