He rediseñado blogpocket.app, aplicación PWA donde se recopilan todos los contenidos de Blogpocket, usando el editor del sitio de #WordPress, con el bloque de pila, y posición sticky. ¿Qué te parece?
Not exactly a hot take but wow what a cursed language is #php
From the comments:
It seems intval is interpreting valid numeric strings differently between PHP 5.6 and 7.0 on one hand, and PHP 7.1 on the other hand.
<?php
echo intval('1e5');
?>
will return 1 on PHP 5.6 and PHP 7.0,
but it will return 100000 on PHP 7.1.
I released v2 of Annotated Container! It is a pretty big milestone for a project I've spent a lot of time working on. Getting this release out allows me to start thinking about how to continue improving the library.
To commemorate the occasion I wrote a deep-dive article on how Annotated Container handles autowiring.
Millionen Webseiten betroffen: Kritische Lücke in populärem Wordpress-Plug-in
Auf mehr als einer Million Wordpress-Instanzen läuft Essential Addons for Elementor. Angreifer können durch eine kritische Lücke die Kontrolle übernehmen.
@SenseException please do not loop over all attributes and instantiate them.
This API is designed to work with attributes that aren't available, which is key to treat attributes like metadata (which they are) instead of coupled code.
E.g. a standalone package can perfectly ship a model class using Doctrine attributes, but still be used in applications without Doctrine. Blindly instantiating attributes breaks this.
@SenseException I forgot to mention the alternative: Use array_merge($reflectionClass->getAttributes(StrAttribute::class), $reflectionClass->getAttributes(IntAttribute::class)).
This makes sure you only instantiate attributes that you defined.
If your method's return type has 4 different possible types, some of which are list-ish and some not, your API is beyond saving and you should just start over from scratch.
Accidentally discovered when writing a blog post in Wordpress that if I select the text I'm going to add a link to from the clipboard and do the paste key sequence*, it just adds the link and I don't have to do the little popup menu song-and-dance.
on Mac it's <command>-V; on Windows and I guess Linux*, it's <control>-V.
**tell me what it is on Linux, if it's not that, please.
Embrace change!
Currently upgrading an app from #TYPO3 8.7 up to 12 LTS, from PHP 7.3 up to 8.2. Non composer to composer. FTP to ssh+rsync via Gitlab CI job. First time unit and functional tests and frontend tests with codeception. Up to phpstan level 6 fixed. And much more.
A looot of work but things start to look really well now.