PHP

donatj,
@donatj@mastodon.social avatar

In it would be nice if UnhandledMatchError contained the unmatched item.

derickr,
@derickr@phpc.social avatar

@donatj you mean in the error message?

sarah,
@sarah@phpc.social avatar

The language is incredibly powerful. It’s great for many things. But not everything.

I wouldn’t write a web server in PHP and deploy it to production.

But the fact that I could makes the language incredibly powerful.

thgs,
@thgs@phpc.social avatar

@sarah not booting everything every time can be quite performant though

alexanderschnitzler, German
@alexanderschnitzler@mstdn.social avatar

Zum ersten mal Sentry Performance für eine PHP-App konfiguriert, mit Query-Analyse etc.

Ganz schön mächtig, das Ganze!

Geht mit ein paar Hacks tatsächlich sehr gut in da man sich durch Request-Middleware und DBAL-Middleware super überall hereinhängen kann.

Zudem dann noch ein paar Breadcrumbs eingebaut und schon ist man deutlich schlauer was so abgeht auf der Seite.

kanti,
@kanti@mastodontech.de avatar

@alexanderschnitzler ich hab da schon länger eine Extensions die auch an sentry meldet: https://extensions.typo3.org/extension/server_timing macht auch noch guzzle requests und extbase Actions

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@kanti Muss ich mit mal anschauen. Sieht auf den ersten Blick super aus!

flavioheleno,
@flavioheleno@phpc.social avatar

would you like to run your for all available Releases but forgets to update it whenever new versions are available? Try my latest action to improve your build matrix: https://github.com/flavioheleno/php-active-releases-action

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

I haven’t said it in a while, but I want to make sure everyone knows that I really appreciate what @eric and @john are doing at @phparch. I think the work they’re doing is awesome!

You should check out @phparch.

(No one is paying me for this promotion, nor have I been asked to do this.)

ramsey,
@ramsey@phpc.social avatar

@lewiscowles1986 @eric @john @phparch I’m not sure what this means.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@ramsey @eric @john @phparch
It was positive. I Always see you promoting PHP Ugly, PHP Arch is a view onto a way to develop with PHP.

I'll take compliments off my LinkedIn 😂😢

Girgias,
@Girgias@phpc.social avatar

Welcome, my name is Gina, my profession Engine Janitor, finding obscure bugs while cleaning up code and creating new and better engine APIs.

nielsdos,
@nielsdos@phpc.social avatar
Girgias,
@Girgias@phpc.social avatar

@nielsdos the classic :D

wyri,
@wyri@haxim.us avatar

Wrote a fancy one-liner because I didn't want to toss in the mix and go all in on . Actions response to it: 🖕 🖕 🖕

The first image is the full one liner, but it already 💩 out on the right image

Image of the following code: echo "${$(cat ${{ inputs.dockerfile }} | grep FROM | tail -n 1)}"

wyri,
@wyri@haxim.us avatar

I ended up with this adding some to the one liner:

mobileatom,
@mobileatom@flipboard.com avatar

Of Tools and Dependencies.

https://andreas.heigl.org/?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

typo3, German
@typo3@typo3.social avatar

Once again it's Developer Appreciation Day - a thank you to everyone who has diligently contributed to the development of the project over the past month. Cheers to you! 🧡

Here you can find the latest contributions to the : https://typo3.com/blog/coders-corner-may-2024

wowa_TYPO3, German
@wowa_TYPO3@techhub.social avatar

Du nutzt TYPO3 und bist nicht in der Community? Das ist ein schwerer Fehler! Verpass nicht die Chancen und Inspirationen, die dir entgehen. Jetzt meinen neuen Artikel lesen und aktiv werden!
https://wwagner.net/blog/a/typo3-nutzen-und-die-community-ignorieren-ein-schwerer-fehler

#TYPO3 #Community

sarah,
@sarah@phpc.social avatar

What is your favorite composer package in ?

paulshryock,
@paulshryock@phpc.social avatar

@sarah pest

orchidpink,

Would you be surprised if I told you the array key gets converted to an integer?

Well, it does. In PHP array keys that are numeric strings are converted to integers.

supergarv, (edited ) German
@supergarv@phpc.social avatar

Property #Getter methods (in #PHP, and frameworks like #TYPO3 #Drupal #Symfony)...

(Boost for reach, trying to get a feel for this)

joachim,
@joachim@drupal.community avatar

@supergarv Yup! It's a case I hadn't considered properly when I designed the system and I can't see any behaviour which would be 'correct'. I need to have a big rethink and do a 2.0 one day.

supergarv,
@supergarv@phpc.social avatar

@joachim Hhm. How about having two interchangeable solutions then, or some kind of "bugfeature switch"? Would it be able to sort out by the users of the lib/app specifying what they would intent/expect? Sounds interesting! 🧐

mobileatom,
@mobileatom@flipboard.com avatar
sarah,
@sarah@phpc.social avatar

Looking for work? Make sure you check out my latest project, PHP For Hire (https://phpforhire.com). It's a directory of PHP talent available for hire!

jclermont,
@jclermont@phpc.social avatar

How do you test code you don't understand? We deal with this when joining legacy projects, but I recently found a novel solution involving fuzz testing. Super useful! https://masteringlaravel.io/daily/2024-05-31-how-do-you-test-code-you-dont-understand

typo3, German
@typo3@typo3.social avatar

TYPO3 is supercharging newsrooms and publishing houses!

We’ve published a new industry vertical landing page for the News, Media, and Publishing sector, full of information on TYPO3’s features can ensure companies can deliver content to their audiences quickly and securely.

Find out how news and media companies can make the most out .

Check it out: https://typo3.com/solutions/industry-vertical/news-media-and-publishing

nyamsprod,
@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 ?

alessandrolai,
@alessandrolai@phpc.social avatar

@nyamsprod as other have said, definitely a BC for A due to class removal. And due to the inverse relation, you don't even have an easy migration path (like with a plain class_alias or an extension)... 😔

nyamsprod,
@nyamsprod@phpc.social avatar

@alessandrolai I have an easy way out I can bump package A to the next major and keep B in it's current version and move the class there effectively embracing the BC break BUT it makes my monorepo ugly to work with until I bump package B to the same version as package A and I need in the meantime fin a good git-split tool able to handle 2 majors release ... that's the complex part

mobileatom,
@mobileatom@flipboard.com avatar
beausimensen,
@beausimensen@phpc.social avatar

I'm looking for a #rector or php-cs-fixer rule that will enforce Modifier Keywords Order as defined in PER.

I would be fine with a PER-specific solution but happy to configure something generic w/ PER rules.

#php

alessandrolai,
@alessandrolai@phpc.social avatar

@beausimensen @Girgias maybe there's another dedicated rule? Because I see that they support the readonly token since a long time ago: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/5968

beausimensen,
@beausimensen@phpc.social avatar

@alessandrolai @Girgias If there is I haven't found it, yet. @Girgias suggested rule sense like where it belongs. What I meant to say is THAT RULE doesn't seem to care what order readonly comes.

pilhuhn,
@pilhuhn@mastodon.social avatar

seems to have some fan-boys out there ;-)

Or a big vulnerability…

heiglandreas,
@heiglandreas@phpc.social avatar

@michael Yeah. Looms lime the server needs some more resources...🙈

Didn't expect so many people to be interested in my ramblings on a sunday.... 🤣

michael,
@michael@thms.uk avatar

@heiglandreas the joys of posting links on the fediverse 😬

robert,
@robert@flownative.social avatar

Now @dseguy talks about PHP types, all the way down to its implementation in the PHP engine.

#neoscon24 #php

sarah,
@sarah@phpc.social avatar

If you haven't picked up a free copy of my book, Mastering Object-Oriented PHP, make sure you head over to https://masteringobjectorientedphp.com and get your copy today! Free is my way of giving back to the PHP community.

#php #oop #opensource #software #development #free

webcodingcafe,
@webcodingcafe@phpc.social avatar

@sarah Thank you. Are there any technical issues? I wasn't able to claim a copy with Firefox ESR on Debian. It "doesn't work". 😿

sarah,
@sarah@phpc.social avatar

@webcodingcafe Hmm. Any error message or anything? If you DM me your address I can email you a copy of the book.

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