+1

Il giorno lunedì 15 aprile 2024 alle 16:00:50 UTC+2 Woody Gilk ha scritto:

On Mon, Apr 15, 2024 at 8:40 AM Matteo Beccati <mat...@beccati.com> wrote:

Hi Vincent,Il 15/04/2024 15:28, Vincent de Lau ha scritto:> I would not 
mind a small rationale in the errata why it is `?string` and
> not `string|null`.

That would mean raising the required version to 8.0, when union types 
were introduced.


Which we can do, but it would be a *major* (2.0) version change. This is an 
incremental step with a *minor* (1.1) version change.


It would be a minor change even if bumping to PHP 8+ and switching to 
"string|null" union type as long as "= null" is in place.
This change would not break any existing API as the implementations with 
"string $x = null" are still accepted even if the interface declares it as 
"string|null"



--
Woody Gilk (he/him)
https://www.shadowhand.com



 

Cheers
-- 
Matteo Beccati

Development & Consulting - http://www.beccati.com/

-- 
You received this message because you are subscribed to the Google Groups 
"PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to php-fig+u...@googlegroups.com.

To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/723dba4f-ab7f-4dab-a63d-73951da3798d%40beccati.com
.

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to php-fig+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/17474f71-666c-4290-a408-e5f1f7ab6c8an%40googlegroups.com.

Reply via email to