@heiglandreas@phpc.social
@heiglandreas@phpc.social avatar

heiglandreas

@heiglandreas@phpc.social

Father. Husband. PHP-Nerd. Draughtsman. Soil-Scientist. Brewer. Rescue-Diver. OSS-Maintainer. Challenge-Accepter.

Homebase roughly 50N 8E

@ teamup.com, ingewikkeld.net & stella-maris.solutions

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

heiglandreas, to random
@heiglandreas@phpc.social avatar

Anyone around that knows whether there is ANY package around that implements an FTP server on top of react?

The results of my google foo as well as of a search on packagist are more ... well...

imagine a western, high noon right in front of the bar: and now remove the tumbleweed...

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

heiglandreas, to random
@heiglandreas@phpc.social avatar

Another case of Symfony suffering from NIH-syndrome unfolding... 😕

💔

heiglandreas, to random
@heiglandreas@phpc.social avatar

I am having fun creating an office 365 account.... 🤣

At least in Safari I get further than in Firefox... 🤦‍♂️

A screenshot just saying "Konto erstellen". Nothing else. It looks like the system and firefox do not get along very well....

heiglandreas, to random
@heiglandreas@phpc.social avatar

I think I just found a new adventure.

Guilt as a service

Hire me when you need someone to blame.

Attractive rates and conditions!

After all: "when you know whom to blame you can concentrate on the fix!"

🙈

heiglandreas, to random
@heiglandreas@phpc.social avatar

Are there plans for a pre @unKonf gathering? Officially or inofficially?

heiglandreas, to random
@heiglandreas@phpc.social avatar

First takeaway from going back to MacOS: Running tests in a dockerized environment got considerably slower.... 😕

heiglandreas, to random
@heiglandreas@phpc.social avatar

I am continuouslyreading that the best way to represent Money would be to use the smallest denominator of a currency. Like use cents for Euros.

Is it just me that feels like its oversimplifying things? That that is like "use UTC-timestamps for datetimes"?

https://gist.github.com/rgs/6509585 is for sure a good read.

To me any system that isn't capable to handle the british pre-1970s currency is not up to the job. Not because we should go back there, but because it is based on too many implicit assumptions

heiglandreas, to random
@heiglandreas@phpc.social avatar

So my daughter has to give a presentation tomorrow (actually "A PowerPoint"). First she asked whether the slides are OK (they were! She did an awesome job with keynote!) , and then whether she could borrow my clicker.... 🙈

I think my job there is done....

heiglandreas, to random
@heiglandreas@phpc.social avatar

To be quite honest: I'm falling in love with

heiglandreas, to random
@heiglandreas@phpc.social avatar

I had a lot of tests failing due to teh ClockInterface implementation being Symfonys clock-implementation. That is not what a clock interface is about. Need to investigate now what caused that 😕

heiglandreas, to random
@heiglandreas@phpc.social avatar

That's a new one: Unable to create an Email from an instance of "Symfony\Component\Mime\Message" as the body is too complex.

🙈 😱

heiglandreas, to random
@heiglandreas@phpc.social avatar

Yust a short reminder: Locale != Language

Language is part of a Locale. But a locale contains sooo much more. Like number and date formating or calendaring rules or currencies or....

Also:

Flags != Languages.

Or which languages do these flags stand for: 🇿🇦 🇨🇭

heiglandreas, to random
@heiglandreas@phpc.social avatar

One of my main issues with PSR7/15 is that the controllers return a ResponseInterface.

I'd rather have the controller return a DTO that is then used down the pipeline to be converted into whatever the request requested via their Accept-header. I don't want to have to take care of that in each and every controller...

I think I should write something longer about the why and what... 😕

heiglandreas, to random
@heiglandreas@phpc.social avatar

So I thought I could add some more countries to https://packagist.org/packages/org_heigl/holidaychecker after adding a small change to the schema to accommodate holidays that only occur every x years.

O boy.....

First the rabbit-hole with the XSD-validation for an attribute that requires a second (I skipped the requirement) and then some tests failed ...

I currently think it's due to some ICU changes. So for the last hour I now try to debug why setting the month of an IntlCalendar doesn't ... set the month 🤦‍♂️

heiglandreas, to random
@heiglandreas@phpc.social avatar

I start seeing technical debt everywhere.

Whether that is an "I'll do the laundry later" at home, a "we'll do the refactoring in the next sprint" or "Transitioning away from fossil fuels in energy systems, in a just, orderly and equitable manner, accelerating action in this critical decade, so as to achieve net zero by 2050 in keeping with the science;" in global politics:

It's cuting a corner now to fix it later.

Without adding the added cost of fixing it later into the descission making.

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

TIL that

$a = set_error_handler('my_error_handler');
set_error_handler($a);

is something different than

set_error_handler('my_error_handler');
restore_error_handler();

🤯

Edit: Fixed typos

heiglandreas, to random
@heiglandreas@phpc.social avatar

So it took me almost 5 hours to get from Frankfurt to Frankfurt.... 🙈

And that even (almost) without delay!

heiglandreas, to random
@heiglandreas@phpc.social avatar

Deutsche Bahn in a nutshell....

heiglandreas, to random
@heiglandreas@phpc.social avatar

"Security Researchers" that "find" a problem and instead of contacting the developers publish the problem on CVE sites, reserve a CVE but don't update it and generally cause havoc....

I got to know about it because a user asked when an updated version will be available that fixes the CVE...

Checking that I didn't find any info on what the actual problem should be.

In the end it seems to be something that can be exploited when one can trick an admin into sharing their session-id....

heiglandreas, to random
@heiglandreas@phpc.social avatar

Oh Wow!

We are now able to create native PHP-Desktop applications...

At least native within NPM... within Electron...

...

Sometimes... Just sometimes... just because one can doesn't really mean one should.

Call me old-fashioned, but can I please get PHP-GTK back?

heiglandreas, to random
@heiglandreas@phpc.social avatar

Starting the day with answering emails from "security researchers" ...

heiglandreas, to random
@heiglandreas@phpc.social avatar

Hey @zend, what shall I say....

Mobile first is still a new thing?

And the text goes on as small like the beginning. And I haven't figured out what that slider does (apart from reloading the website).

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....

🤪😱

heiglandreas, to random
@heiglandreas@phpc.social avatar

TIL class-constant handling in PHP is completely bollocks...

I'll use for internal stuff private constants and for everything that is used in more than one class I'll create Enums.

Everything else is a mess.

I'll need some more research for a blogpost though....

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