PHPnews.io

Overview for 'stitcher-io'

Rational thinking

Written by Stitcher.io / Original link on Aug. 25, 2021

Now and then, I like to ask a simple coding style question on Twitter. It usually goes something like this: do you write FQCN's (fully qualified class names) in your doc blocks or not? In other words, do you write code like this: /** @var \App\Models\Foo[] */ $arrayOfFoo = … Or like this: /** @var…


Why do I write?

Written by Stitcher.io / Original link on Aug. 13, 2021

This post was originally sent to my newsletter on August 12, 2021. I originally didn't plan to blog about it, but given the reactions that I received, I decided it would be good to share it with a larger audience. This is going to be a slightly different style of newsletter than you're used to. I'm…


The Road to PHP 8.1

Written by Stitcher.io / Original link on Aug. 6, 2021

I'm happy to announce a fun little project today: The Road to PHP 8.1. It's a 10-day popup newsletter that'll teach you about all the shiny new things in PHP 8.1. The only thing you'll need to do is drop your name and email address, and you'll receive a daily email for the next 10 days. Worried abo…



We don't need runtime type checks

Written by Stitcher.io / Original link on Jul. 26, 2021

Do you want to make a guess about when I last encountered a TypeError in one of my projects? To be honest, I can't remember, so it's probably a few years. Coincidentally, I also started relying on static analysis around the same time. I'm fairly certain that I could disable PHP's runtime type check…