cspray, to php
@cspray@phpc.social avatar

Today I was able to implement a feature in Annotated Contain that will resolve my longest outstanding issue; injecting a collection of services. The feature will release in 2.4 but I'm so excited about getting this done I wrote an article about how to use this new functionality.

https://www.cspray.io/blog/injecting-service-collections-with-annotated-container/

#php

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

Since 11 no longer has any of the CodeCoverageIgnore attributes, and the docs say “Do not use annotations in comments in new tests that you write. Use attributes instead,” does this mean PHPUnit will no longer allow you to exclude classes, functions, or blocks of code from coverage reports?

orchidpink, to php

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.

#php #webdev #programming

simonhamp, to Laravel
@simonhamp@phpc.social avatar

Here's a little #Laravel #PHP tool I built as my New Tab page

It lists all my projects based on the filesystem, giving me an overview of their state at a glance and quick access to various tools

It also lets me add custom details, search and more

It's built on Laravel Volt, which was really fun to use!

Will open source at some point

video/mp4

michael, to Laravel
@michael@thms.uk avatar

Been playing around with Laravel Livewire a bit today, and it’s quite cool actually.

Really a powerful way to quickly get an app with interactivity going, if you can’t or don’t want to use a JS framework.

mobileatom, to php
@mobileatom@flipboard.com avatar
symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
sarah, to php
@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, to php
@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! #php #laravel https://masteringlaravel.io/daily/2024-05-31-how-do-you-test-code-you-dont-understand

joachim, to programming
@joachim@drupal.community avatar

I've just seen a #programming pattern in #PHP where a method could return two lists of things. Instead of doing that, it takes as a parameter a callable, and passes the two lists to the callable. Instead of:

[$a, $b] = getLists($param);
// Act on both lists.

we have:

$callable = function($a, $b) {
// Act on both lists
}
actOnLists($param, $callable);

Is that a #FunctionalProgramming pattern?

nyamsprod, to php
@nyamsprod@phpc.social avatar

I have a question regarding dependencies and semver for #php 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 ?

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

I'm looking for a 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.

pilhuhn, to php
@pilhuhn@mastodon.social avatar

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

Or a big vulnerability…

robert, to php
@robert@flownative.social avatar

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

sarah, to php
@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

maccath, to php
@maccath@phpc.social avatar

The life of a maintainer (and generally any back-end engineer) - if your existence is acknowledged, something's probably gone wrong! I feel you, @jrf_nl

Thank you to all of the package maintainers out there 💕

jclermont, to php
@jclermont@phpc.social avatar
symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
scoonch, to photoshop French
@scoonch@mamot.fr avatar

Dev Web fullstack, je termine un long CDD en fin de semaine. Je suis donc libre à partir du 3 juin.

CDI distanciel de préférence sinon je m'adapte, je suis à Paris.

Compétences en +:
Maquettiste ,
Monteur vidéo , ,
Habillage/Animation

CV dispo en mp.

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

En route for (Karlsruhe) with the elephpant patriarch and an advanced session on types in . See you there!

honeybadger, to php
@honeybadger@honeybadger.social avatar
mobileatom, to php
@mobileatom@flipboard.com avatar
mobileatom, to php
@mobileatom@flipboard.com avatar

ICONV, SET THE CHARSET TO RCE: EXPLOITING THE GLIBC TO HACK THE PHP ENGINE (PART 1).

https://www.ambionics.io/blog/iconv-cve-2024-2961-p1?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines