@greg0ire@phpc.social avatar

greg0ire

@greg0ire@phpc.social

J'ai plus d'une corde à ma harpe

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

nyamsprod, to php
@nyamsprod@phpc.social avatar

I have a question regarding dependencies and semver for maintainers. let's say I have package B which depends on package A.

If I move a class from package A to package B does this constitute a BC break for A and B or only for A ?

greg0ire,
@greg0ire@phpc.social avatar

@nyamsprod Only for A I'd say… moving means removing from A: breaking change, and adding to B: not a breaking change.

greg0ire, to random
@greg0ire@phpc.social avatar

Wanna get confused? Yesterday I reported a bug about SQL injection not working: https://github.com/tree-sitter/tree-sitter-php/issues/243

greg0ire,
@greg0ire@phpc.social avatar

@SenseException Why not? I love here doc!

greg0ire, to random
@greg0ire@phpc.social avatar

Pretty pleased with the name I picked for that branch: https://github.com/doctrine/dbal/pull/6332

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.

greg0ire, to random
@greg0ire@phpc.social avatar

After a few years of looking for scraps of disk space when upgrading my OS because stupid past me thought that 11 GiB would be enough for Fedora, I finally got around to reformatting/reinstalling my / and /home, this time with a sensible configuration. No more weird stuff with symlinks, no more breaking packages by removing unused locale files. Phew.

dantleech, to random
@dantleech@fosstodon.org avatar

difftastic is possibly going to make my git life better.

https://difftastic.wilfred.me.uk

greg0ire,
@greg0ire@phpc.social avatar

@dantleech I used to use https://github.com/so-fancy/diff-so-fancy until now, and will use https://github.com/dandavison/delta at home, and difftastic at work. My first impression is that difftastic does a better job (I think it might be more precise? I'm not even sure actually. It definitely integrates better with my colorscheme), but is hard to configure right, or to use with git log -p (they recommend using an alias, but I don't think delta requires that, will have to check back home).

greg0ire,
@greg0ire@phpc.social avatar

@dantleech So soon? Why?

greg0ire,
@greg0ire@phpc.social avatar

@dantleech Ah yeah that's annoying… but maybe there is a flag you can use to use the old way?

greg0ire, to random
@greg0ire@phpc.social avatar

Here's a pattern that I have observed throughout my carrier.

What I need: a bunch of integers
What I get: an xslx with lots and lots of sheets

Every. Time.

greg0ire,
@greg0ire@phpc.social avatar

@hypolite Thanks for having my back! This toot editing feature is so cool!

dantleech, to random
@dantleech@fosstodon.org avatar

need more sleep:

App: Enter this number on your phone's authenticator "38"
Me: types in phpone "38"
Phone: incorrect pin, try again
Me: types in phone "38"
Phone: incorrect pin try again
Me: types... oh wait!

greg0ire,
@greg0ire@phpc.social avatar

@dantleech I love that your phone is a phpone. Where can I get one?

dantleech, to random
@dantleech@fosstodon.org avatar

Lots of people talk about "fake" objects as alternatives to Mocks.

But I say i'm using a different implementation. It may be called a "TestXXXX" or "ArrayXXXX" or whatever, but it's living in src with the production code and can itself be tested.

So in that sense, I rather don't "fake" anything.

greg0ire,
@greg0ire@phpc.social avatar

@dantleech But it shouldn't be available in a production context though, right? If yes, why make it autoloadable in a production context at all?

greg0ire,
@greg0ire@phpc.social avatar

@dantleech @ocramius Yes, if you use autowiring and layers of decoration it's easy to make a mistake. I'm more comfortable with the test/Support layout, and instead of <random_crap> , you could maybe (partially?) mirror the layout you have in src

greg0ire, to random
@greg0ire@phpc.social avatar

🥁🥁🥁🥁🥁

https://www.doctrine-project.org/2024/02/03/doctrine-orm-3-and-dbal-4-released.html

48 h later this still feels surreal

greg0ire,
@greg0ire@phpc.social avatar

@SenseException Yeah, a dream come true.

greg0ire, to random
@greg0ire@phpc.social avatar
greg0ire,
@greg0ire@phpc.social avatar
greg0ire,
@greg0ire@phpc.social avatar

@rskuipers Yes, that's it, you can get even more details about it here: https://github.com/doctrine/dbal/issues/3167

greg0ire, to random
@greg0ire@phpc.social avatar

📦released: doctrine/orm 3.0.0-RC1

Try it out, and check out the release notes: https://github.com/doctrine/orm/releases/tag/3.0.0-RC1

Looping, to random French
@Looping@anticapitalist.party avatar

Valeurs Actuelles définitivement condamné pour les caricatures racistes de Obono.
On se souvient que Philippe Val était venu témoigner en faveur de VA !

https://www.huffingtonpost.fr/justice/video/philippe-val-explique-son-soutien-a-valeurs-actuelles-face-a-daniele-obono_182726.html

greg0ire,
@greg0ire@phpc.social avatar

@Looping Phlippe Val, c'est le jumeau (encore plus) maléfique de Philippe Val?

dgoosens, (edited ) to php
@dgoosens@phpc.social avatar

hello #PHP community ( @phpc )
Existential question...

What ya think ?

greg0ire,
@greg0ire@phpc.social avatar

@dgoosens @phpc final fantasy class

b0rk, to random
@b0rk@jvns.ca avatar

whenever i write "in git, a merge commit has 2 parents", I always get "well, actually..." replies saying that a merge commit can have more than 2 parents.

but have you ever done a merge with more than 2 parents? why? (I haven't!)

greg0ire,
@greg0ire@phpc.social avatar

@b0rk I've done an octopus merge once for fun. We had a merge release train, with many, many merge requests, each with its own build pipeline. We deployed. There was a bug, and we rolled back. Now, I had to deploy the same with one less pull request, and I knew they didn't conflict with each other. So Instead of doing a revert and pollute the history, I reset to before the merge train and ran git merge branch1 branch2 branch3… branchn on the main branch and pushed.🐙

rachel, to random
@rachel@oomfie.world avatar

Je ne comprenais pas le titre avant de me rendre compte que c'était la traduction de "Every. Single. Emoji."
Microsoft vaut presque 300 milliards de dollars mais j'imagine que des traducteurs c'est trop cher pour eux.

greg0ire,
@greg0ire@phpc.social avatar

@rachel Chaque. Célibataire. Emoji.

sebastian, to random
@sebastian@phpc.social avatar

For the first time since I started using Composer for managing the dependencies in my projects and Git for version control in my projects, I was wondering today how to use git-bisect to find a breaking commit between two releases of a Composer-managed dependency.

And just a little over a week ago, @greg0ire published an article on the topic:

https://dev.to/greg0ire/bisecting-vendors-12kd

Thank you!

greg0ire,
@greg0ire@phpc.social avatar

@supergarv @sebastian Thank you ❤️

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