@Schrank@phpc.social avatar

Schrank

@Schrank@phpc.social

#shopware #magento #weuc #mageuc #scuc #mageone #winkelwagen #php #safefive he/him tfr
He|him, try to be vegan, still learning about LGBTQI+, racial, etc. inequality,

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

Schrank, to php
@Schrank@phpc.social avatar

I have a cli script which looks like this:
->run($argv[1], $argv[2]);

the 2nd parameter is optional and has a default value. Is there a way to not pass $argv[2] if it is not present to not run into

run(): Argument #2 ($path) must be of type string, null given

Or do I need to test this and have two different calls?

theseer,
@theseer@phpc.social avatar

@Schrank ?? 'default'

isotopp, (edited ) to random German
@isotopp@chaos.social avatar

deleted_by_author

  • Loading...
  • lilischote, to random German
    @lilischote@chaos.social avatar

    Hier ist eure letzte Chance damit ich eure Frage im abschließenden großen Video zur genitalangleichenden Operation (trans Frau) beantworte.

    Frist für Fragen bis Sonntag!

    seatek, to random
    @seatek@hard.blue avatar

    This has taken me way, way too long to learn.

    dghd_info, to mastodon German
    @dghd_info@higher-edu.social avatar

    Liebe Community,

    die Gesellschaft für Medien in der Wissenschaft (#GMW) und wir betreiben ab sofort eine eigene #Mastodon Instanz!

    Unter https://higher-edu.social können sich interessierte Personen aus dem Bereich der innovativen Hochschulbildung registrieren.

    Mehr Infos dazu unter https://www.dghd.de/blog/dghd-und-gmw-go-mastodon/

    qsx, to random German
    @qsx@chaos.social avatar

    Can somebody recommend an app to watch media.ccc.de (or at least a decent media player) for Android tablets?

    Vael, to vegan German
    @Vael@social.tchncs.de avatar

    Ich hätte da eine Frage an die vegane Kochbubble hier.
    Ich würde mir gerne ein veganes Kochbuch zulegen, dass auch Grundlagen enthält oder erklärt.
    Bei Kochbüchern von Influencern bin ich erstmal skeptisch.
    Gibt's sowas? Habt ihr Tipps?
    Vielen Dank schonmal^^

    trimethylpentan, to random German
    @trimethylpentan@norden.social avatar

    Zu dem für heute angekündigten wieder die Erinnerung:

    Geht oder fahrt unter keinen Umständen in überflutete Gebiete, egal wie flach es aussieht!

    Geht noch viel weniger in volllaufende Keller oder Garagen! Wenn da irgendwas wichtiges drin ist, dann holt es jetzt hoch.

    Sichert jetzt, wenn es noch geht und ihr in exponierten Lagen wohnt, Eingänge und Kellerschächte ab. Wenn das Wasser erstmal da ist, ist es zu spät.

    kuschelkirche, to random German
    @kuschelkirche@kirche.social avatar
    luna, to random

    ​:neocat_box:​ stollen to add alt text

    hukl, to random
    @hukl@chaos.social avatar

    TIL: There is a shop in my neighborhood focussing on alcohol free drinks as in alcohol free rum, whiskey, gin, wine, champagne etc. Mhmm actually a bit curious how an alcohol free whiskey would be like. Sharing this because I know a handful of non-alcohol peeps.

    https://nuechtern.berlin

    marysheep, to random German
    @marysheep@chaos.social avatar

    Bürgerinnenpflicht und -privileg erfüllt. Mehr als 87.000 Menschen haben schon per Briefwahl gewählt. ✅

    netzpolitik_feed, to random German
    @netzpolitik_feed@chaos.social avatar

    Für das Standardisierungsgremium IETF ist es neu, sich mit Themen wie Stalking zu beschäftigen. Doch bei der Diskussion um einen Standard für Standort-Tracker war genau das notwendig. Mallory Knodel sagt im Interview mit @anneroth, die Standards-Community sollte stolz darauf sein, jetzt auch gesellschaftliche Auswirkungen miteinzubeziehen. https://netzpolitik.org/2024/interview-zu-standort-trackern-google-und-apple-kooperieren-lieber-als-ein-verbot-zu-riskieren/

    freddy,
    @freddy@security.plumbing avatar

    @netzpolitik_feed @anneroth So wichtig, dass sich Zivilgesellschaft in Foren für technische Standards einbringt. Wer sich in zB W3C oder WHATWG einbringen möchte und eine kurze Orientierung sucht, darf mich jederzeit fragen. Ich helfe gerne.

    Schrank, to random
    @Schrank@phpc.social avatar

    You try to debug, but the admin worker is always breaking on your xdebug breakpoints? Let met show you how to avoid it.

    https://winkelwagen.de/2024/05/28/shopware-phpstorm-easier-xdebug-in-administration/

    qrazi,
    @qrazi@phpc.social avatar

    @Schrank Oh, never thought to use it for that, that's clever! Love conditional breakpoints, use those a lot to hit only the case I'm interested in, e.g. within a loop.

    Come to think of it, the xdebug browser plugin I use activates xdebug by setting a cookie value. If it would set only a get param on the URL, JS requests probably wouldn't activate xdebug sessions either. 🤔 I've run into the reverse where I wanted to debug a request initiated by a JS that did not pass along the current cookies.

    flugarzt, to random German
    @flugarzt@muenchen.social avatar

    Reise von Bayern in den Süden

    Früher:
    Reisepässe suchen
    Benzingutscheine kaufen
    Geld für Maut wechseln
    Traveler Cheques kaufen
    Mind. zwei Grenzkontrollen (+Stau)
    Maut nur mit Cash bezahlen
    Vor Ort mehr Geld wechseln/Cheques einlösen
    Rest des Urlaubs falsch in DM umrechnen
    Zu Hause nutzlose Fremdwährung übrig

    Heute:
    Packen (Perso eh immer dabei)
    Maut in AT online buchen
    Losfahren
    Maut in ITA/SLO/CRO mit Kreditkarte
    Ankommen

    #Europa ist gut für uns, wählt keine Europagegner!

    #fckafd

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

    @packagist Awesome! composer req phpunit now adds phpunit to require-dev as default, without asking - I LIKE!

    heiglandreas,
    @heiglandreas@phpc.social avatar

    @Schrank @packagist Adding DEV-dependencies via composer is probably the most misused use of a dependency manager...

    I mean... those development tools are not really dependencies of your project...

    But 🤷

    tef, to random
    @tef@mastodon.social avatar

    here's the iTerm "Pls No AI" gitlab issue https://gitlab.com/gnachman/iterm2/-/issues/11475 so i guess it's not a popular move

    tb, to random
    @tb@tldr.nettime.org avatar
    BrokkoliMuskel, to random German
    @BrokkoliMuskel@chaos.social avatar

    Falls ihr in eurem mobilen Endgerät eine Sleep Schedule habt, mit unterschiedlichen Weckzeiten für Werktage und Wochenende, ändert das mal fluchs*, wenn ich es nicht gerade zufällig gesehen hätte, wäre mein Alarm morgen um 5:30 Uhr losgeballert.

    *außer ihr müsst morgen zur Lohnarbeit oder wollt unverständlicherweise so viel wie möglich vom Tag wach sein

    vandi, to random German
    @vandi@nrw.social avatar

    Die Versicherung könnte mit der Streichung aller fossilen Subventionen finanziert werden.

    martinrue, to random
    @martinrue@mstdn.social avatar

    "Never waste 10 minutes doing something by hand that you can fail to automate in 2 hours."

    ... is the sponsor of today's episode!

    jensscholz, to random German
    @jensscholz@mastodon.social avatar

    Das schöne ist, dass die Reaktion "wenn die LG so agiert, dann machen die Leute* doch erst recht nichts für die Umwelt!" völlig egal ist, weil wer nichts tut und damit droht, nichts zu tun, am Ende keine Rolle spielt, weil er die Bilanz nicht verändert.

    (*"Leute" meint natürlich nicht andere, sondern ist nur die feigere Version für "ich" - feige, weil die Person durchaus weiß, dass der selbe Satz mit "ich" ihn noch viel mehr als Ausrede für Egoismus sichtbar machen würde als er eh schon ist.)

    thebadfall, to random German
    @thebadfall@troet.cafe avatar

    Kommt ein Vampir aufm Tandem in ne Polizeikontrolle. Fragt die Polizei: „Haben sie was getrunken?“ Der Vampir.: „Ja, aber nur zwei Radler.“ 🙃 Der fiel mir grad wieder ein, als ein Pärchen auf nem Tandem an mir vorbeifuhr. 🤦‍♀️

    heiglandreas, to random
    @heiglandreas@phpc.social avatar

    Can anyone decently explain to me why people are so fixated on assigning a gender to someone?

    Why is that important?

    You wanna address them? "Hey [whatever the person told you they want to be called]"

    You weren't told how to address them? "Excuse me: I'm Andreas, What's your name?"

    They don't tell you? Have you considered that they probably don't want to talk to you?

    https://benjojo.co.uk/u/benjojo/h/3RDQ97768tt28Tk321

    sebastian, to Symfony
    @sebastian@phpc.social avatar

    Here is the material that I used for my "PHPUnit for Shopware Developers" presentation at @ShopwareDevs Community Day:

    https://thephp.cc/presentations/phpunit-for-shopware-developers?ref=mastodon

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