@mitelg@phpc.social avatar

mitelg

@mitelg@phpc.social

Engineering Lead at Shopware 💙
Mostly about work related stuff: PHP 🐘 and E-Commerce 🏬
Sometimes private stuff/opinions 😉

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

kaiserkiwi, to webdev
@kaiserkiwi@corteximplant.com avatar

PSA for my fellow ​s:

If you ever get the "offer" to work with 6, run. Run as fast as you can. There is nothing out there that is more of a developer nightmare than this pile of junk.

95% of my gray hair comes only from Shopware.

mitelg,
@mitelg@phpc.social avatar

@kaiserkiwi Do you have something specific to complain about?

mitelg,
@mitelg@phpc.social avatar

@kaiserkiwi okay thanks 🙂 we are always open for improvements and there are various channels, where you can get help.
so, if you "must" interact with our software again, just let me know ✌️

scottkeckwarren, to random
@scottkeckwarren@phpc.social avatar

developers, sometimes when I run I receive 100s of errors (in my integration tests) that might only originate from 2 lines. Is there a way to consolidate these based on stack trace?

mitelg,
@mitelg@phpc.social avatar

@scottkeckwarren that would be so great!
@sebastian maybe? 🫣

dseguy, to php French
@dseguy@phpc.social avatar

doesn't allow float as index in arrays.

It is possible to use them as such by casting them to string. Later, type juggling will allow adding to another float, seamlessly.

https://php-tips.readthedocs.io/en/latest/tips/store_float_as_index.html

mitelg,
@mitelg@phpc.social avatar

@dseguy works "seamlessly"? I guess, it will also lose information due to the float precision issues in some cases 😬

Schrank, to random German
@Schrank@phpc.social avatar

Uff. #dhl ey.

mitelg,
@mitelg@phpc.social avatar

@Schrank eigentlich ist das Passwort für DHLs System zu lang. dafür gibt's aber keine exception. oder so 😁
genauso ein Krampf mit den E-Mails. willst dich von Sendungsbestätigungen unsubcriben und die sagen mir ein + in der Adresse ist ungültig. Junge! ihr habt mir dahin gerade ein Mail geschickt!?!! 😬

Schrank, to random German
@Schrank@phpc.social avatar

TL;DR Writing shopware code and using the configuration? Make sure to always pass a salesChannelId to get the correct value.

A little background about this fact-

https://winkelwagen.de/2024/04/11/shopware-configuration-does-not-default-to-current-sales-channel/

mitelg,
@mitelg@phpc.social avatar

@Schrank nice 👍
one thing, which might be misleading:

Order by <int> ASC makes NULL first

one could assume by this snippet, that the salesChannelId is an integer, but as all IDs in Shopware, it is a string/binary

stefanzweifel, to php
@stefanzweifel@phpc.social avatar

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.

Links to all packages:
https://stefanzweifel.dev/projects

mitelg,
@mitelg@phpc.social avatar

@regis @stefanzweifel tip: use the baseline feature! this ensures that new added code has the desired level 🙂👍

Schrank, to random German
@Schrank@phpc.social avatar

A migration from Magento to Shopware can break your customer accounts, because they are not assigned to a sales channel. How to find them? I'll show you.

https://winkelwagen.de/2024/03/28/migration-find-customer-which-cant-login-because-they-have-multiple-accounts/

mitelg,
@mitelg@phpc.social avatar

@Schrank is there something that needs to be fixed in the Magento profile?

mitelg,
@mitelg@phpc.social avatar

@Schrank if we have a general issue there, we should try to fix it 😁

mitelg, to random
@mitelg@phpc.social avatar

thanks for everything at the
I had nice talks, there were interesting discussions and muuuch FOOD! 🤤
thanks for organising @Schrank, Claudia, Carmen and Rico! 💙👍

see you again on

mitelg, to random
@mitelg@phpc.social avatar

had an interesting discussion about AI in tech moderated by @kleinmann

now we are talking about and
important topic for everyone in the upcoming months

mitelg, to random
@mitelg@phpc.social avatar

@phpc image upload does not work here on this Mastodon instance 😢 it is complaining about thumbnail processing

//cc @ramsey

mitelg,
@mitelg@phpc.social avatar

@ian @phpc @ramsey hey Ian,
thank you for reaching out!

I also tried the Tusky android app but also the desktop webside. same error on both devices.

yes, it is a normal *.jpg file, shot with my Google Pixel 5, 2,4MB big 🤔

mitelg,
@mitelg@phpc.social avatar

@ian @phpc @ramsey
it seems to be an issue with my photo. as you can see it works fine with screenshots 😁👍
Thanks anyway! much appreciated!

mitelg, to Symfony
@mitelg@phpc.social avatar

gets rolling 💪 we are currently voting on the topics for today.
If you want to talk about just hit me up. But I am also open for every related topic 😁✌️

See you there

Schrank, to random
@Schrank@phpc.social avatar

If you want something special to eat or need a gift: https://pestodealer.de/

I don’t want to say, we bought a lot, but the paper bag ripped apart 🙈

mitelg,
@mitelg@phpc.social avatar

@Schrank SW5 😍😅

edit: but they should update 😬

markusstaab, to random German
@markusstaab@phpc.social avatar

Anyone having the problem of accidental wrong "use" statements like

use _PHPStan_156ee64ba\Symfony\Component\String\Exception\RuntimeException;

taken from prefixed-phar files, e.g. because of bad IDE autocompletion?

Fixed it for you in

https://phpstan.org/r/bdd5949f-b3d6-4b57-b2de-813e431b6563

mitelg,
@mitelg@phpc.social avatar

@markusstaab better would be if the IDE would not auto complete to these at all in the first place 😁

ocramius, to random
@ocramius@mastodon.social avatar

Customer of mine just retired #Cypress and switched all their e2e testing to #Playwright: so proud of them!

mitelg,
@mitelg@phpc.social avatar
Schrank, to random
@Schrank@phpc.social avatar

Good morning world! ☀️

mitelg,
@mitelg@phpc.social avatar
heiglandreas, to random
@heiglandreas@phpc.social avatar

So it looks like the sylius #elePHPant will happen 😁

Thank you to all supporters that made that possible

mitelg,
@mitelg@phpc.social avatar

@heiglandreas @Schrank 🎉 that's good news 😁 must have been a final sprint

mitelg, to Symfony
@mitelg@phpc.social avatar

today we released the first RC of the new upcoming major version Shopware 6.6.0.0
https://github.com/shopware/shopware/releases/tag/v6.6.0.0-rc1

Schrank, to Symfony
@Schrank@phpc.social avatar

If you are into , and/or follow @winkelwagen, it’s my company and all our blogposts are pushed there. I guarantee a VERY low advertising and marketing ratio 🙃

mitelg,
@mitelg@phpc.social avatar

@Schrank @winkelwagen add hashtags like #php or #shopware to the posts of your blog. one can follow hashtags here at mastodon, so you will automatically have a broader audience 😉

Schrank, to random German
@Schrank@phpc.social avatar
mitelg,
@mitelg@phpc.social avatar

@Schrank ich darf lösen:
(pseudo code)
try
tons of checks
catch everything
throw: password is too short

dgoosens, to random
@dgoosens@phpc.social avatar

hello @phpstan

So I'm bulding my first Custom Extension (excellent documentation by the way https://phpstan.org/developing-extensions/rules)

Wondering if there is a way to use @Xdebug within the rule... Breakpoints appear to be skipped although I know the script executes (and my Xdebug setup works from the CLI) ?

mitelg,
@mitelg@phpc.social avatar

@dgoosens by experience I can tell that @OndrejMirtes is very supportive, if you open a discussion or issue on GitHub. maybe try that 😉

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

Today, I was cut in layoffs. I’m so gutted because I loved this company, & my team was the best; I’ll miss my team most.

Now, as I look ahead, I’m searching for a staff/principal role where I can help other developers level-up through mentoring, tooling/infra, architecture, & improving DX. I’d love to work with a company contributing to open source & even to the #PHP programming language itself.

Update (27 Feb 2024): Thanks, everyone! I’ve accepted an offer. Please see update in thread below.

mitelg,
@mitelg@phpc.social avatar

@ramsey I will write you a pm 👍

  • All
  • Subscribed
  • Moderated
  • Favorites
  • normalnudes
  • everett
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • rosin
  • slotface
  • InstantRegret
  • mdbf
  • PowerRangers
  • kavyap
  • tsrsr
  • DreamBathrooms
  • Leos
  • ngwrru68w68
  • hgfsjryuu7
  • cubers
  • GTA5RPClips
  • khanakhh
  • vwfavf
  • ethstaker
  • osvaldo12
  • modclub
  • cisconetworking
  • tacticalgear
  • tester
  • anitta
  • All magazines