Ondřej Mirtes

Creating @phpstan by day and night. 👨🏻‍💻👨‍👩‍👦‍👦🎮🚴‍♂️

Ondřej Mirtes boosted:
Romain CanonRomm
2025-05-21

🐘 Big milestone incoming for OSS: @OndrejMirtes (PHPStan) and @maks_rafalko (Infection) are joining forces to improve the integration of their tools when used together.

Expect smoother integration, better mutation analysis, and less false-positive result for these two awesome projects!

PHPStan logo and Infection logo with a hearth in the middle
2025-05-12

WebExpo is happening again in two weeks! This long-running international conference in my hometown (Prague) spanning development, UX, and business is something I look forward to every year.

You can use code MIRTES25 for 15 % discount during checkout. The website with speakers, schedule and tickets is here: webexpo.net/prague2025/speaker

Ondřej Mirtes boosted:
Lars Moelleken :verified:voku@phpc.social
2025-05-02
2025-04-27

PHPStan: Restricted Usage Extensions—You Don’t Always Need a Custom Rule!

phpstan.org/blog/restricted-us

Ondřej Mirtes boosted:
2025-04-20

#phpstan jackpot 🎰 - fixing lots of old bugs with a single fix

Ondřej Mirtes boosted:
2025-04-19

Really love it when on a drive-by fix #phpstan issue bot tells me "hey your fix also fixes these multi-years old bugs"

Ondřej Mirtes boosted:
2025-04-16

As already spoilered, I have written down a small blog post for a new #phpstan capability which will be available with the upcoming release.

Remembered types from constructors.

staabm.github.io/2025/04/15/ph

2025-04-09

@ocramius I don’t think that’s about VAT though

2025-04-09

These are the different scenarios people will see on account.phpstan.com during sign up:

2025-04-09

Once I'm over 10 000 EUR limit, I have to register as One Stop Shop and the rules change for individuals from other EU countries:

* Individuals from other EU countries (without VAT ID) get charged VAT rate specific for their country

Other rules stay the same.

2025-04-09

The VAT rules for businesses in the EU are pretty complicated. This is how I had to code them in PHPStan Pro based on where my customers are from:

* All individuals and businesses in the Czech Republic (my home country) get charged 21 % VAT
* Individuals from other EU countries (without VAT ID) get charged 21 % VAT
* VAT-registered businesses from other EU countries don't get charged with VAT, but invoices are issued in reverse charge mode.
* No one from non-EU countries gets charged with VAT.

2025-03-20

@dantleech Last year the breakfast at the speaker hotel was included, I didn’t pay anything.

2025-03-20

@ramsey @phpstan Another proof that @var is a lie 😊 If I remove them, there’s no longer an error: phpstan.org/r/fe840ba9-ba24-49

If this isn’t actually the code you’re experiencing an error with, please post a more realistic example of the code in action.

And feel free to ask on GitHub next time.

2025-03-19

In open-source projects: don’t tell others what they *should* do; send the pull request yourself!

2025-03-12

@sebastian phpstan-strict-rules is installed alongside phpstan/phpstan with Composer. phpstan/phpstan is a package with the PHAR file.

If you install phpstan/phpstan + phpstan-strict-rules with Composer, there are zero other dependencies so there are no downsides in doing that.

I have no plans of distributing extensions any other way, Composer already does everything we need. The main thing I need is being able to enforce version constraints between PHPStan and extensions.

2025-03-12

@sebastian Does it fix itself with this command?

update-crypto-policies --set LEGACY

More info: github.com/remicollet/remirepo

2025-03-05

Latest PHPStan release just dropped 🥳

It includes this realization that "new Foo()" will never be a subclass of Foo. Many rules can use this knowledge to report new errors ⬇️

Ondřej Mirtes boosted:
Stephan Hochdörfershochdoerfer@phpc.social
2025-02-27

Hello phpstan-sylius!

I did it again, this time it's a #PHPStan extension for the #Sylius e-commerce framework. Very experimental state but looks promising, I think.

blog.bitexpert.de/blog/announc

2025-02-26

@syntaxseed I’ve got into TW3 after watching the first season of the TV show which was still okay, unlike the rest. It’s enough to give you the idea about the world and characters.

I highly recommend playing the game. It’s one of those where I wish I got memory loss so I could experience it for the first time again.

2025-02-25

@syntaxseed I played this and finished it but didn’t love it either. The worst thing for me was that the 90 % of the story is watching holograms telling you what happened 1,000 years ago.

I recommend you to try The Witcher 3 and Red Dead Redemption 2 instead.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst