While making my PHP packages compatible with Laravel 11 the last few weeks, I've also spent some time and added PHPStan to all of them.
The more simpler ones are already on level 9. The more complex are still on level 5 or 6. I'm still a novice when it comes to proper type documentation. Goal is to increase levels throughout the year.
As mentioned, I’m a novice when it comes to phpstan and currently don't see the need to go to level 9 in my projects.
My app code these days are often strictly typed PHP classes "outside" of Laravel anyway.
@stefanzweifel@regis yea I see, I was just curious about what is the obstacle. Also way more competent with psalm than phpstan myself, magic properties are still possible but you would need to define a lot of psalm types. I think more or less the same for phpstan too.
It’s quite a bit of difference in the code in level 5 and then level 3 and then level 1 (reverse these for phpstan).
I tend to like the way you need to write the code in the max level because it ends up being guided a lot.
Soon, my git-auto-commit GitHub action will be used in 70k public repos (🤯).
To celebrate, I checked which are the biggest repos that use my little action.
Some big names are in there. Vercel, GitHub, Grafana, Android.
But also cool community projects like iptv, catppuccin or NotepadNext.
Makes me a proud that my most popular side-project is used in so many cool project. (I remember that I used Notepad++ to work on my World of Warcraft addons back in the day)
If you’re a dev, you probably already know how good plain-text files are; but this video by No Boilerplate is a good reminder just how perfect plain-text files really are.
(And how Github Issues and Projects is good enough for your work)
I‘m Stefan. I call my self a Full Stack Developer and have been writing code for the last 15 years. Mostly #PHP with #Laravel. Sometimes #vue or #svelte.
Love writing open source packages that solve a particular problem well. I also write long blog posts about how I use certain software on https://stefanzweifel.dev.
When not glued to the desk, I'm enjoying nature, in the gym or in my kitchen cooking or baking for friends and family.
@stefanzweifel Oh! It made me realize that Plexamp exists for macOS with the iOS app, and it's great since I used the plex web version which is not as good as the dedicated music app.
@regis Plexamp is awesome.
I’ve downloaded some ambient music from World of Warcraft and mostly listen to this while coding.
Probably 80% of the time, Plexamp is running.
If the heading of a previous release in the changelog has a link to a compare view, the Action will use that URL and add a link to the updated compare view to the new release notes.
It's hard to explain this with words. The attached screenshot gives you a good example.
This previously only worked, if the changelog had a "Unreleased" heading with a link in it.
Love it.
iCloud Drive decided to download all my old photo archives and old Windows XP games iso-files until 100MB of disk space was left.
No delete all node_modules folders and local TimeMachine snapshots. And after three restarts iCloud stopped downloading any more files and gave me back 15GB of data. 🤷
And the award for the worst country select field goes to … Meta.
Countries are sorted randomly. Not by name or abbreviation.
Oh and the native behaviour of a select field – typing searches the options – does not work. (It jumps to the option that starts with the last character you typed)
I hate country drop downs anyway. Especially when you are from a country like the UK which I’ve seen listed under U for United Kingdom, G for Great Britain, B for Britain, or even E for England. (The latter being particularly popular on German sites for some reason.)
So, yeah, country drop downs are an abomination to me …