[php-*] Explicitly declare nullable parameters (#20524)

* [php-nextgen] Explicitly declare nullable parameters explicitly

* Fix some deprecation warnings in other php generators

* [php-nextgen] Fix PHP 8.4 deprecation warnings with nullable/optional array parameters
This commit is contained in:
Julian Vennen
2025-01-23 05:06:15 -05:00
committed by GitHub
parent ad8de61143
commit a68ad56ea9
104 changed files with 209 additions and 208 deletions

View File

@@ -301,7 +301,7 @@ class DefaultValue implements ModelInterface, ArrayAccess, JsonSerializable
*
* @param array $data Associated array of property values initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('array_string_enum_ref_default', $data ?? [], [["success","failure"]]);
$this->setIfExists('array_string_enum_default', $data ?? [], [["success","failure"]]);