@theseer@phpc.social avatar

theseer

@theseer@phpc.social

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

heiglandreas, to random
@heiglandreas@phpc.social avatar

I hate VPN!

It never worked out of the box for me. There are soooooo many moving parts.

Debugging is difficult.

And it's always the clients fault...

theseer,
@theseer@phpc.social avatar

@heiglandreas Interestingly, the VPN in question works on mac, windows and linux all over the world ;)

Skoop, to random
@Skoop@phpc.social avatar

Is my search-fu leaving me, or is there no PHAR for Rector?

theseer,
@theseer@phpc.social avatar

@Skoop @heiglandreas @sven Why not talk to Thomas about it? :)

If we need to enhance phive to support this, I can do that..

theseer,
@theseer@phpc.social avatar

@Skoop @heiglandreas @sven Okay, that's a lame excuse he wrote there, tbh.

There is no need to "manually update files".

We could also consider creating a phar-io update wrapper component that allows for an easy "--self-update" process to be included.

afilina, to random
@afilina@phpc.social avatar

This looks suspiciously similar to azjezz/psl, just with a different API. It even has the same name: PHP Standard Library.

The PHP community would be better if devs worked together instead of copying and re-branding someone else's work. Credit to azjezz for the original PSL.

theseer,
@theseer@phpc.social avatar

@afilina At least the screenshot shows a perfect example of adding pointless complexity rather than addressing the design flaw of using implicit APIs with magic strings.

Crell, to random
@Crell@phpc.social avatar
theseer,
@theseer@phpc.social avatar

@Crell The thing that I see happening a lot is that things are made configurable that aren't actually configurable - for instance because there's only one implementation to choose from - or should be represented by code rather then being generalized into something requiring more configuration than actual code would have...

theseer, to random
@theseer@phpc.social avatar

So, @phpukconference, is it long enough after the 2024's edition to start begging for an Eddie? ;-)

What does one have to do?

asgrim, to random
@asgrim@phpc.social avatar

I'm gonna be on a live stream on Friday!!! Will be chatting about the new PECL replacement tool, PIE 🥧 that I'm working on...

https://www.youtube.com/watch?v=uWsGDUCxbT0

theseer,
@theseer@phpc.social avatar

@afilina you do? Feel like helping with documentation on docs.templado.io ?

heiglandreas, to random
@heiglandreas@phpc.social avatar

Question for the @phpstan pros:

What am I missing here?

final class stdClassList
{
/** @var array<int, stdClass> */
public readonly array $classes;

public function __construct(stdClass ...$classes)
{
$this->classes = $classes;
}
}

https://phpstan.org/r/5b86ba21-7486-4eb5-bccf-1ebd4327829e

PHPStan reports "Property stdClassList::$classes (array<int, stdClass>) does not accept array<int|string, stdClass>." but I would expect that $classes will always be array<int, stdClass> without any string-keys

theseer,
@theseer@phpc.social avatar

@shochdoerfer @heiglandreas @phpstan The problem is the variadic.

If you destruct an associative array when passing the key is not an int.

theseer,
@theseer@phpc.social avatar

@shochdoerfer @heiglandreas @phpstan The variadic doesn't care. All phpstan is telling you that if you do new StdClassList( ...['a' =&gt; new StdClass]); the key "a" is kept in the params array. And does not magically turn into an int. If you'd do $this-&gt;classes = array_values($classes); the problem is gone.

theseer,
@theseer@phpc.social avatar

@heiglandreas @shochdoerfer @phpstan You didn't ask whether or not the behavior of PHP makes sense though ;-p

heiglandreas, to random
@heiglandreas@phpc.social avatar

So I seem to be in a lonely path now.

I finally started the project to write a small purpose-driven FTP server that accepts a file and sends it to an email address.

I decided to use ReactPHP for that.

FTP is.... challenging. On the server side at least.

Why? I have a scanner that can scan to FTP. But I need to send the files via email. And the FTP server I so far used can't send emails from new files. So what's the natural approach as developer?

How hard can it be....

🤪😱

theseer,
@theseer@phpc.social avatar

@heiglandreas systemd path service?

derickr, to php
@derickr@phpc.social avatar

Today we welcomed Sir Humphrey to our herd!

theseer,
@theseer@phpc.social avatar

@derickr can you get me one aswell? ;-)

theseer,
@theseer@phpc.social avatar

@derickr Ask someone? :-D I'm willing to pay haha

theseer,
@theseer@phpc.social avatar

@Exakat why don't you just bring some to confoo? ;-)

theseer, to random
@theseer@phpc.social avatar

Sooo, anyone already around for Confoo? 🙂

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

TIL: in #Php, you can create a new instance (not a clone) of an object from an existing instance with the following syntax:

$a1 = new A();
$a2 = new $a1();

Very convenient with anonymous classes! Just a bit confusing if you expect $a1() to call the A::__invoke magic method (because it won’t)

theseer,
@theseer@phpc.social avatar

@sarah me neither :-)

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

Do you still use PHP on 32 bit machines?

theseer,
@theseer@phpc.social avatar

@sebastian I wonder where that question comes from... ;-)

theseer, to random
@theseer@phpc.social avatar

So who's going to be at @ConFooCa next week and wants to trade ?

https://elephpant.me/herd/arneblankerts

Check my herd and what i'm missing ;) I can bring my duplicates along! 🙂 (But only those to trade :-p )

I might also be willing to buy :)

afilina, to random
@afilina@phpc.social avatar

I tried to be an attendee-only at a conference and failed. I am taking over Tomas Votruba's talk about Rector on short notice (with his slides and permission), as he's unable to make the trip to Montreal.

https://confoo.ca/en/2024/session/automated-refactoring-and-upgrades-with-rector

theseer,
@theseer@phpc.social avatar

@afilina hey, that means I'll see you next week in person? 😄

Skoop, to random
@Skoop@phpc.social avatar

I really would like an opportunity to get in on a Product Owner role at some point. Unfortunately all the requests for PO roles specify the ideal candidate has 5+ years of previous experience as a PO

theseer,
@theseer@phpc.social avatar

@Skoop Apply/Offer anyway? People and companies have a tendency to require 10+ years of experience in a field that exists for 2..

theseer, to random
@theseer@phpc.social avatar

Following the steps documented using https://rpms.remirepo.net/wizard/ for getting PHP 8.3 as default on Fedora 39 (after removing the default 8.2) I only get PHP 8.3.0-RC.1...?

@remi What do I do wrong? ;-)

theseer,
@theseer@phpc.social avatar

When I try for php82-* I also only get 8.2.10 ... What's going on here? ;-)

theseer,
@theseer@phpc.social avatar

@remi That seems to have fixed it. I just ran dnf clean all &amp;&amp; dnf update and got 8.2.15 and 8.3.2

Thanks 😃

theseer, to random
@theseer@phpc.social avatar

It's 2024 and the year starts with rejections. I wonder why it's so hard to deal with those ,)

This time, @dpc_ibuildings rejected my proposals. Wonder what I might have done to them, because @dpc_ibuildings and @phptek are the only ones that almost constantly reject me 💔 #sigh #imposterSyndrom

theseer,
@theseer@phpc.social avatar

@Skoop Oh I don't doubt it is possible ;-) I just have a rather long "track record" of failing to make the cut. Which, for whatever reason, bothers me more than it probably should..

theseer,
@theseer@phpc.social avatar

@shochdoerfer @phpugmrn Should be possible to organize. It's rather a logicstical question ;)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • tester
  • tsrsr
  • DreamBathrooms
  • Durango
  • magazineikmin
  • mdbf
  • Youngstown
  • vwfavf
  • slotface
  • ethstaker
  • rosin
  • thenastyranch
  • kavyap
  • PowerRangers
  • Leos
  • ngwrru68w68
  • osvaldo12
  • cubers
  • everett
  • GTA5RPClips
  • cisconetworking
  • hgfsjryuu7
  • InstantRegret
  • tacticalgear
  • normalnudes
  • modclub
  • khanakhh
  • anitta
  • All magazines