Skip to content

Commit 2802b16

Browse files
committed
Update stubs
1 parent 56ccadc commit 2802b16

File tree

76 files changed

+437
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+437
-15
lines changed

Php8StubsMap.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2717,6 +2717,36 @@ public function __construct(int $phpVersionId)
27172717
]);
27182718
}
27192719

2720+
if ($phpVersionId >= 80300) {
2721+
$classes = \array_merge($classes, [
2722+
'dateerror' => 'stubs/ext/date/DateError.php',
2723+
'dateexception' => 'stubs/ext/date/DateException.php',
2724+
'dateinvalidoperationexception' => 'stubs/ext/date/DateInvalidOperationException.php',
2725+
'dateinvalidtimezoneexception' => 'stubs/ext/date/DateInvalidTimeZoneException.php',
2726+
'datemalformedintervalstringexception' => 'stubs/ext/date/DateMalformedIntervalStringException.php',
2727+
'datemalformedperiodstringexception' => 'stubs/ext/date/DateMalformedPeriodStringException.php',
2728+
'datemalformedstringexception' => 'stubs/ext/date/DateMalformedStringException.php',
2729+
'dateobjecterror' => 'stubs/ext/date/DateObjectError.php',
2730+
'daterangeerror' => 'stubs/ext/date/DateRangeError.php',
2731+
]);
2732+
2733+
$functions = \array_merge($functions, [
2734+
'json_validate' => 'stubs/ext/json/json_validate.php',
2735+
'mb_str_pad' => 'stubs/ext/mbstring/mb_str_pad.php',
2736+
'pg_enter_pipeline_mode' => 'stubs/ext/pgsql/pg_enter_pipeline_mode.php',
2737+
'pg_exit_pipeline_mode' => 'stubs/ext/pgsql/pg_exit_pipeline_mode.php',
2738+
'pg_pipeline_status' => 'stubs/ext/pgsql/pg_pipeline_status.php',
2739+
'pg_pipeline_sync' => 'stubs/ext/pgsql/pg_pipeline_sync.php',
2740+
'pg_set_error_context_visibility' => 'stubs/ext/pgsql/pg_set_error_context_visibility.php',
2741+
'posix_eaccess' => 'stubs/ext/posix/posix_eaccess.php',
2742+
'posix_fpathconf' => 'stubs/ext/posix/posix_fpathconf.php',
2743+
'posix_pathconf' => 'stubs/ext/posix/posix_pathconf.php',
2744+
'posix_sysconf' => 'stubs/ext/posix/posix_sysconf.php',
2745+
'random\\intervalboundary' => 'stubs/ext/random/Random/IntervalBoundary.php',
2746+
'socket_atmark' => 'stubs/ext/sockets/socket_atmark.php',
2747+
]);
2748+
}
2749+
27202750
// UPDATE BELONGS HERE
27212751

27222752
$this->classes = $classes;

stubs/Zend/SensitiveParameterValue.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#[\Since('8.2')]
88
final class SensitiveParameterValue
99
{
10-
private readonly mixed $value;
1110
public function __construct(mixed $value)
1211
{
1312
}

stubs/ext/date/DateError.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
*/
6+
#[\Since('8.3')]
7+
class DateError extends \Error
8+
{
9+
}

stubs/ext/date/DateException.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
*/
6+
#[\Since('8.3')]
7+
class DateException extends \Exception
8+
{
9+
}

stubs/ext/date/DateInterval.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ public function __construct(string $duration)
77
}
88
/**
99
* @tentative-return-type
10-
* @alias date_interval_create_from_date_string
1110
* @return (DateInterval | false)
1211
*/
1312
public static function createFromDateString(string $datetime)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
*/
6+
#[\Since('8.3')]
7+
class DateInvalidOperationException extends \DateException
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
*/
6+
#[\Since('8.3')]
7+
class DateInvalidTimeZoneException extends \Exception
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
*/
6+
#[\Since('8.3')]
7+
class DateMalformedIntervalStringException extends \DateException
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
*/
6+
#[\Since('8.3')]
7+
class DateMalformedPeriodStringException extends \DateException
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
*/
6+
#[\Since('8.3')]
7+
class DateMalformedStringException extends \DateException
8+
{
9+
}

0 commit comments

Comments
 (0)