@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.

mitelg, to php
@mitelg@phpc.social avatar

new member in the herd :elephpant: thanks to the guys from https://safefive.de

mitelg,
@mitelg@phpc.social avatar

@derickr maybe @Schrank can help 😁

mitelg, to php
@mitelg@phpc.social avatar
kaiserkiwi, to webdev
@kaiserkiwi@corteximplant.com avatar

PSA for my fellow #WebDev​s:

If you ever get the "offer" to work with #Shopware 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.

#Coding

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 ✌️

mitelg,
@mitelg@phpc.social avatar

@kaiserkiwi yeah, we learnt very much from the 6.5 major release, to phrase it that way 😬 It seems, we did better with the current 6.6 release.

yes, just hit me up, I'm always happy to help

scottkeckwarren, to random
@scottkeckwarren@phpc.social avatar

#phpc developers, sometimes when I run #phpunit 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

#PHP 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.

#phptip #phptrick

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. 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

#php #phpstan

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 if we have a general issue there, we should try to fix it 😁

mitelg,
@mitelg@phpc.social avatar

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

mitelg, to random
@mitelg@phpc.social avatar

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

see you again on #SCD24

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 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 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 #phpstan

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 😁

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 or 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

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

welcome to the herde 🐘💙

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