SymfonyUniverse Hot

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'

derickr, to php
@derickr@phpc.social avatar

It's PHP's birthday! 29, years old today.

#php

A cake cut out a slice off, and the big side taken.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@derickr @rasmus happy birthday

derickr,
@derickr@phpc.social avatar

@maswaba Yes! Without users like you (and me) back then, it would never have gotten big.

kubikpixel, to php
@kubikpixel@chaos.social avatar

I still need to take a closer look at the toots of @shadowserver but it seems to be an other argument against and on Windows to the boss and customers… 🙄

»[…] A critical vulnerability in the PHP language can be trivially exploited to execute malicious on devices, security researchers warned as they urged those affected to take action before the weekend starts. […]«
– on @arstechnica

⚠️ https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/

martijn,
@martijn@ieji.de avatar

@kubikpixel @shadowserver @arstechnica
Only hits the windows version. But I haven't heard anyone doing webdev on windows that doesn't use wsl anymore. Wouldn't really know why you would want to use xampp or windows specific versions anyway except for some obscure use cases (like directory access etc)

kubikpixel,
@kubikpixel@chaos.social avatar

@martijn ...I absolutely agree with you, but I still have such cases, even from bosses who call themselves professionals 🙄

Skoop, to php
@Skoop@phpc.social avatar

I wrote something about making the choice between upgrading or upgrading: https://skoop.dev/blog/2024/06/07/upgrade_or_upgrade/

Skoop,
@Skoop@phpc.social avatar

@ralphschindler Laravel Shift seems to be Rector on steroids?

ralphschindler,
@ralphschindler@phpc.social avatar

@Skoop for what shift is doing, I'd say rector might get you nearly 1/2 way there.

The primary goal of shift is to make your application code look as if it were installed into a fresh modern application skeleton, down to the comments... that is in addition to doing the application code refactoring and composer updates.

ultimike, to drupal
@ultimike@drupal.community avatar

You had me at “weird”.

https://blog.horizontaldigital.com/try-one-weird-trick-migrate-api

I can totally see where this might come in handy in some situations when migrating data into .

Blog post by Daniel Flanagan

ekes,
@ekes@drupal.community avatar

That for sure falls into why didn't I think of that. 🤯

Of course get defaults to the value passed. It does that all the time implicitly. I had never thought you could explicitly make it do that so you can say where the source pass on is.

Example from the issue:

process:  
 processed_value:  
-  
 plugin: callable  
 source: field_product  
 callable: ucfirst  
-   
 plugin: concat  
 source:  
- 'constants/i'  
- null  
ramsey, to php
@ramsey@phpc.social avatar

It boils my blood to hear folks insinuate that is the source of their performance problems and they should switch to microservices in another language to fix the performance issues. Maybe spend a little bit of time figuring out where your bottlenecks are and fix those, first!

(This may or may not be a sub-toot.)

itsjoshbruce,
@itsjoshbruce@phpc.social avatar

@ramsey: This pool cue is warped.

I totally meant for it to go in that pocket after banking off five rails (I mean API calls).

It’s gotta be the shoes.

ramsey,
@ramsey@phpc.social avatar

@preinheimer This is usually the case for developers who rewrite things in a different programming language, too, so it’s rarely the programming language itself that made things more performant.

ramsey, to php
@ramsey@phpc.social avatar

What’s the difference between memory usage and peak memory usage?

(As in #PHP's memory_get_usage() and memory_get_peak_usage() functions.)

Crell,
@Crell@phpc.social avatar

@ramsey @sean That is my understanding. Though as usual, when the current memory goes down is rather unpredictable.

alfredbez,

@ramsey keep in mind that there is also memory_reset_peak_usage(). Take a look at how these functions behave here: https://3v4l.org/60tlE#v8.3.8

wowa_TYPO3, to php German
@wowa_TYPO3@techhub.social avatar

🌟 Das Programm der Developer Days 2024 ist online! Von der Eröffnungskeynote bis zu Networking-Sessions – sei dabei und vernetze dich mit der TYPO3-Community! 🚀
https://t3dd24.typo3.com/schedule

wimleers, to drupal
@wimleers@drupal.community avatar
derickr, to php
@derickr@phpc.social avatar

@SecondeJ kicking off tonight's PHP London meeting.

ultimike, to drupal
@ultimike@drupal.community avatar

Admittedly, this free plugin pack for @ckeditor for looks very useful, but try finding out how much the realtime collaboration feature is. Go ahead, I’ll wait…

https://ckeditor.com/blog/drupal-ckeditor-5-plugin-pack/

hotsauce,
@hotsauce@drupal.community avatar

@ultimike @chrisfromredfin
One of the folks from CKEditor did a presentation for us at Lullabot about the paid features and I asked. He said because it’s all cloud based, it’s scaled based on the size of the project/site so they price accordingly on a project by project basis, no standard plan or anything (yet). Not exactly helpful but at least its something 🤷‍♂️

ultimike,
@ultimike@drupal.community avatar

@hotsauce @chrisfromredfin Yes, I've heard similar. Still, "starting at..." would be nice (and shouldn't be difficult.)

sarah, to php
@sarah@phpc.social avatar

Here are my top 5 favorite Composer packages in (in no particular order):

  1. mezzio/*
  2. psr/*
  3. monolog/monolog
  4. league/flysystem
  5. symfony/console

There are many others I love but I find myself using these on most if not all projects.

typo3, to php German
@typo3@typo3.social avatar

🚀 The schedule is here! With 40+ speakers and innovative first-time talks, this event is set to be amazing. Topics include extension development, frontend trends, AI, and more. Join us and get smarter for the future!

Check out the full schedule: https://t3dd24.typo3.com/schedule

mobileatom, to drupal
@mobileatom@flipboard.com avatar

Introducing CKEditor 5 Plugin Pack module for Drupal. #drupal #CKEditor

https://ckeditor.com/blog/drupal-ckeditor-5-plugin-pack/?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

shochdoerfer, to Symfony German
@shochdoerfer@phpc.social avatar

Schedule Symfony Commands via Admin with this plugin https://github.com/synolia/SyliusSchedulerCommandPlugin

  • 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