Replies

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Skoop, to random
@Skoop@phpc.social avatar

Phun with PHAR: I try to get PHPStan up and running with extensions, but it seems impossible to make PHPStan PHAR work with extensions.

I don't really understand why extensions don't work with the PHAR. It should not really be an issue, right?

acelaya,
@acelaya@mastodon.social avatar

@Skoop You can actually install phpstan/phpstan with composer as a regular dev dependency, as it effectively just ships a phar bundling its own dependencies.

It's more convenient, and you still get the benefits of the phar approach. Extensions work out of the box.

acelaya,
@acelaya@mastodon.social avatar

@Skoop I was not aware of that documented limitation, but I think composer is what makes a difference here.

In the docs (https://phpstan.org/user-guide/getting-started#installation) it says:
"You can also download the latest PHAR and just use that. But without Composer, you won’t be able to install and use PHPStan extensions."

I have been using this approach for quite some time with no issues.

acelaya,
@acelaya@mastodon.social avatar

@Skoop I don't have an answer to that 😅
For me being able to use composer is usually a good thing.

acelaya, to random Spanish
@acelaya@mastodon.social avatar

Yesterday I had to block a specially aggressive and entitled user from my GitHub projects.
A second later he had a new account, so I had to block interactions from all new users as well.

He was very rude, demanded to be helped, and literally told me I was less helpful than ChatGPT.
He created the same issue three times, just to be annoying and noisy.

I honestly don't know how someone can think that's the best way to invest their time.

acelaya,
@acelaya@mastodon.social avatar

On the topic https://acel.me/rY9Dd

nzakas, to random
@nzakas@fosstodon.org avatar

I'm looking for example repos using ESLint v8 and a .eslintrc, .eslintrc.json, or .eslintrc.yml file to test a config migration tool I'm working on. Please reply with your repo URL.

(I can't promise I'll get to all of them, but trying to get a representative sample.)

acelaya,
@acelaya@mastodon.social avatar
Crell, to php
@Crell@phpc.social avatar

Please, web app developers, consider how your users will upgrade. If your upgrade process is "remove the old one, unzip the new one", then it's not an upgrade process. It's an encouragement to never upgrade.

acelaya, (edited )
@acelaya@mastodon.social avatar

@Crell Do you have some recommendation on how to address that on a self-hosted app?

I maintain one which suffers from this and I would like to eventually address it, but I have never found an approach where there's no risk of breaking things without an easy way to roll back.

I provide a CLI tool which helps, but still requires you to manually "download and unzip".

acelaya,
@acelaya@mastodon.social avatar

@Crell Thanks for the suggestions!

SenseException, to php German
@SenseException@phpc.social avatar

talks 10 years ago: "Use value objects instead of arrays."

PHP talks nowadays: "Use value objects instead of arrays."

acelaya,
@acelaya@mastodon.social avatar

@SenseException Does that mean we haven't learned anything? 😅

acelaya, (edited ) to Redis Spanish
@acelaya@mastodon.social avatar

The new website has broken so many links. Some redirect to their new corresponding urls, but not all of them, and it's very hard to find anything in their new marketing-focused website 😩

acelaya,
@acelaya@mastodon.social avatar

Thankfully, the Internet Archive exists 🙂

sebastian, to php
@sebastian@phpc.social avatar

It's that time again: I'm thinking about what I want to share at conferences about in general and with in particular.

Feel free to write your ideas and wishes in a reply to this toot.

acelaya,
@acelaya@mastodon.social avatar

@Crell @sebastian I recently learned about TestWith, which can be an alternative to data providers for simple cases.

EDIT: sorry, I just realized you were answering Sebastian, not openly asking the community 😅

acelaya,
@acelaya@mastodon.social avatar

@sebastian @Crell Is there any particular reason we should actually avoid it? Or is it just a matter of personal preference?

grmpyprogrammer, to random
@grmpyprogrammer@phpc.social avatar

Life of the Staff Software Engineer — 6 hours over two days of step-debugging a failed test, and going over ALL the tests, and checking my test factories, to discover deep in the code I was using a datetime library wrong.

acelaya,
@acelaya@mastodon.social avatar

@grmpyprogrammer @derickr You may want to take a look at chronos, an alternative to carbon but with immutable objects
https://github.com/cakephp/chronos

It used to have the same API, but I reckon it has deviated a bit over time.

greg0ire, to random
@greg0ire@phpc.social avatar

Apparently some people need to hear this so here we go: doctrine/orm 3 is compatible with doctrine/dbal 3, so it should be possible for you to upgrade to doctrine/orm 3, test and deploy, let things run for a few days and then upgrade to doctrine/dbal 4 instead of upgrading both packages at once. Also, if you use doctrine/orm is mentioned in your composer.json, but not doctrine/dbal, you're probably doing it wrong.

acelaya,
@acelaya@mastodon.social avatar

@greg0ire I updated both packages a couple weeks ago, and I have had zero problems since.
You guys made an incredible job there.

ramsey, to random
@ramsey@phpc.social avatar

Do I know any software engineers who work at at Chess.com?

LinkedIn says I don’t, but maybe I’m connected to someone here who works there. If so, please DM me. I have some questions about a job posting, and maybe you can help.

acelaya,
@acelaya@mastodon.social avatar

@ramsey Nikola Poša works there, but he's not on Mastodon AFAIK
https://x.com/nikolaposa?t=2A0uVUGYJz0sdQMEHkS5XQ

ramsey, to random
@ramsey@phpc.social avatar

What’s going on with the version numbers on this package? https://packagist.org/packages/mobiledetect/mobiledetectlib

acelaya,
@acelaya@mastodon.social avatar

@stof @ramsey I have just asked https://github.com/serbanghita/Mobile-Detect/issues/938#issuecomment-1806453889
But based on the previous response, it's probably 4.8 because it adds support to PHP 8 🤷‍♂️

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines