From a9235b6ee990da4dee71d87d143f9e3a4007d149 Mon Sep 17 00:00:00 2001 From: orklah Date: Wed, 20 Jan 2021 23:41:41 +0100 Subject: [PATCH] fix wrong order of types (#5058) --- dictionaries/CallMap.php | 4 ++-- dictionaries/CallMap_80_delta.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index 885d71f74..44bff21cd 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -1774,7 +1774,7 @@ return [ 'DateTime::add' => ['static', 'interval'=>'DateInterval'], 'DateTime::createFromFormat' => ['static|false', 'format'=>'string', 'time'=>'string', 'timezone='=>'?DateTimeZone'], 'DateTime::createFromImmutable' => ['static', 'datetTimeImmutable'=>'DateTimeImmutable'], -'DateTime::createFromInterface' => ['DateTimeInterface', 'self'], +'DateTime::createFromInterface' => ['self', 'DateTimeInterface'], 'DateTime::diff' => ['DateInterval|false', 'datetime2'=>'DateTimeInterface', 'absolute='=>'bool'], 'DateTime::format' => ['string|false', 'format'=>'string'], 'DateTime::getLastErrors' => ['array{warning_count:int,warnings:array,error_count:int,errors:array}'], @@ -1794,7 +1794,7 @@ return [ 'DateTimeImmutable::__wakeup' => ['void'], 'DateTimeImmutable::add' => ['static', 'interval'=>'DateInterval'], 'DateTimeImmutable::createFromFormat' => ['static|false', 'format'=>'string', 'time'=>'string', 'timezone='=>'?DateTimeZone'], -'DateTimeImmutable::createFromInterface' => ['DateTimeInterface', 'self'], +'DateTimeImmutable::createFromInterface' => ['self', 'DateTimeInterface'], 'DateTimeImmutable::createFromMutable' => ['static', 'datetime'=>'DateTime'], 'DateTimeImmutable::diff' => ['DateInterval', 'datetime2'=>'DateTimeInterface', 'absolute='=>'bool'], 'DateTimeImmutable::format' => ['string|false', 'format'=>'string'], diff --git a/dictionaries/CallMap_80_delta.php b/dictionaries/CallMap_80_delta.php index c531782d1..728cdc292 100644 --- a/dictionaries/CallMap_80_delta.php +++ b/dictionaries/CallMap_80_delta.php @@ -50,8 +50,8 @@ return [ 'curl_share_init' => ['CurlShareHandle'], 'curl_share_setopt' => ['bool', 'sh'=>'CurlShareHandle', 'option'=>'int', 'value'=>'mixed'], 'curl_unescape' => ['string|false', 'ch'=>'CurlShareHandle', 'string'=>'string'], -'DateTime::createFromInterface' => ['DateTimeInterface', 'self'], -'DateTimeImmutable::createFromInterface' => ['DateTimeInterface', 'self'], +'DateTime::createFromInterface' => ['self', 'DateTimeInterface'], +'DateTimeImmutable::createFromInterface' => ['self', 'DateTimeInterface'], 'date_add' => ['DateTime', 'object'=>'DateTime', 'interval'=>'DateInterval'], 'date_date_set' => ['DateTime', 'object'=>'DateTime', 'year'=>'int', 'month'=>'int', 'day'=>'int'], 'date_diff' => ['DateInterval', 'obj1'=>'DateTimeInterface', 'obj2'=>'DateTimeInterface', 'absolute='=>'bool'],