Skip to content

Commit

Permalink
Update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
phpstan-bot committed Nov 8, 2023
1 parent 2597096 commit a869a8a
Show file tree
Hide file tree
Showing 37 changed files with 7 additions and 8,149 deletions.
14 changes: 0 additions & 14 deletions stubs/ext/date/DatePeriod.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,11 @@ public function getIterator(): Iterator
* @cvalue PHP_DATE_PERIOD_EXCLUDE_START_DATE
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const EXCLUDE_START_DATE = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_PERIOD_EXCLUDE_START_DATE
*/
#[\Since('8.3')]
public const EXCLUDE_START_DATE = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_PERIOD_INCLUDE_END_DATE
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const INCLUDE_END_DATE = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_PERIOD_INCLUDE_END_DATE
*/
#[\Since('8.3')]
public const INCLUDE_END_DATE = UNKNOWN;
}
56 changes: 0 additions & 56 deletions stubs/ext/date/DateTimeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,100 +40,44 @@ public function __serialize(): array;
public function __unserialize(array $data): void;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const ATOM = DATE_ATOM;
/** @var string */
#[\Since('8.3')]
public const ATOM = DATE_ATOM;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const COOKIE = DATE_COOKIE;
/** @var string */
#[\Since('8.3')]
public const COOKIE = DATE_COOKIE;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const ISO8601 = DATE_ISO8601;
/** @var string */
#[\Since('8.3')]
public const ISO8601 = DATE_ISO8601;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const ISO8601_EXPANDED = DATE_ISO8601_EXPANDED;
/** @var string */
#[\Since('8.3')]
public const ISO8601_EXPANDED = DATE_ISO8601_EXPANDED;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const RFC822 = DATE_RFC822;
/** @var string */
#[\Since('8.3')]
public const RFC822 = DATE_RFC822;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const RFC850 = DATE_RFC850;
/** @var string */
#[\Since('8.3')]
public const RFC850 = DATE_RFC850;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const RFC1036 = DATE_RFC1036;
/** @var string */
#[\Since('8.3')]
public const RFC1036 = DATE_RFC1036;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const RFC1123 = DATE_RFC1123;
/** @var string */
#[\Since('8.3')]
public const RFC1123 = DATE_RFC1123;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const RFC7231 = DATE_RFC7231;
/** @var string */
#[\Since('8.3')]
public const RFC7231 = DATE_RFC7231;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const RFC2822 = DATE_RFC2822;
/** @var string */
#[\Since('8.3')]
public const RFC2822 = DATE_RFC2822;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const RFC3339 = DATE_RFC3339;
/** @var string */
#[\Since('8.3')]
public const RFC3339 = DATE_RFC3339;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const RFC3339_EXTENDED = DATE_RFC3339_EXTENDED;
/** @var string */
#[\Since('8.3')]
public const RFC3339_EXTENDED = DATE_RFC3339_EXTENDED;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const RSS = DATE_RSS;
/** @var string */
#[\Since('8.3')]
public const RSS = DATE_RSS;
/** @var string */
#[\Since('8.2')]
#[\Until('8.3')]
public const W3C = DATE_W3C;
/** @var string */
#[\Since('8.3')]
public const W3C = DATE_W3C;
}
98 changes: 0 additions & 98 deletions stubs/ext/date/DateTimeZone.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,181 +76,83 @@ public static function __set_state(array $array)
* @cvalue PHP_DATE_TIMEZONE_GROUP_AFRICA
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const AFRICA = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_AFRICA
*/
#[\Since('8.3')]
public const AFRICA = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_AMERICA
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const AMERICA = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_AMERICA
*/
#[\Since('8.3')]
public const AMERICA = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ANTARCTICA
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const ANTARCTICA = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ANTARCTICA
*/
#[\Since('8.3')]
public const ANTARCTICA = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ARCTIC
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const ARCTIC = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ARCTIC
*/
#[\Since('8.3')]
public const ARCTIC = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ASIA
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const ASIA = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ASIA
*/
#[\Since('8.3')]
public const ASIA = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ATLANTIC
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const ATLANTIC = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ATLANTIC
*/
#[\Since('8.3')]
public const ATLANTIC = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_AUSTRALIA
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const AUSTRALIA = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_AUSTRALIA
*/
#[\Since('8.3')]
public const AUSTRALIA = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_EUROPE
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const EUROPE = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_EUROPE
*/
#[\Since('8.3')]
public const EUROPE = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_INDIAN
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const INDIAN = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_INDIAN
*/
#[\Since('8.3')]
public const INDIAN = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_PACIFIC
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const PACIFIC = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_PACIFIC
*/
#[\Since('8.3')]
public const PACIFIC = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_UTC
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const UTC = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_UTC
*/
#[\Since('8.3')]
public const UTC = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ALL
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const ALL = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ALL
*/
#[\Since('8.3')]
public const ALL = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ALL_W_BC
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const ALL_WITH_BC = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_GROUP_ALL_W_BC
*/
#[\Since('8.3')]
public const ALL_WITH_BC = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_PER_COUNTRY
*/
#[\Since('8.2')]
#[\Until('8.3')]
public const PER_COUNTRY = UNKNOWN;
/**
* @var int
* @cvalue PHP_DATE_TIMEZONE_PER_COUNTRY
*/
#[\Since('8.3')]
public const PER_COUNTRY = UNKNOWN;
}
Loading

0 comments on commit a869a8a

Please sign in to comment.