#microformats 2026-11-01
2026-11-01 UTC
gasiyu joined the channel
barnaby joined the channel
#
[pfefferle] I would really recommend to drop all php versions below at least 7.4
[jeremycherfas], thatoddshade, [snarfed], barnaby and pimeille joined the channel
thatoddshade, kal_jan, barnaby and jtojnar joined the channel
#
jtojnar gRegor++
sivoais joined the channel
#
jtojnar yeah, I drafted it just to be sure
#
jtojnar gRegor https://github.com/microformats/php-mf2/pull/274 is ready now
#
jtojnar we should also bump the PHP version to 7.4
#
jtojnar and ideally add PHP typehints since that is a BC break too
barnaby joined the channel
#
jtojnar gRegor already am
#
gRegor interested in consensus on enabling the language parsing in 0.6.0 as well: https://github.com/microformats/php-mf2/issues/240
barnaby joined the channel
#
jtojnar gRegor the type hints are non-trivial, we will probably need to postpone them to 0.7
#
jtojnar there are lot of methods that return something else than the phpdoc says
#
jtojnar and it is not clear if I should update the phpdoc or the behaviour
thatoddshade joined the channel
#
jtojnar for example, parseImg claims to return string but it actually returns `string | array
{value: string, alt: string}`#
jtojnar and we have `parseU(): string` that can return the output of `resolveUrl(parseImg(...))`
#
jtojnar `parseUrl` would previously return the input unchanged if `parse_url` did not like it
#
jtojnar but if we restrict parseUrl to only take string, it would not work
#
jtojnar I opened draft in https://github.com/microformats/php-mf2/pull/292
#
jtojnar gRegor https://github.com/microformats/php-mf2/pull/281 would also be useful since it make the tests run much faster
[artlung], barnaby and thatoddshade joined the channel
#
jtojnar gRegor managed to make it work. Added PHPStan as well to make it less likely there are regressions
