Skip to content

Commit a2ab9e2

Browse files
committed
[phpstorm-stubs] update stubs to migration version for php 8.2
1 parent 1eb87f3 commit a2ab9e2

37 files changed

+1285
-350
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
fail-fast: false
10-
name: Run tests against php 8.1
10+
name: Run tests against php 8.2
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414

1515
- name: Build Docker Container
1616
run: docker-compose -f docker-compose.yml build >/dev/null
1717
env:
18-
PHP_VERSION: '8.1'
18+
PHP_VERSION: '8.2'
1919

2020
- name: Composer Install
21-
run: docker-compose -f docker-compose.yml run -e PHP_VERSION=8.1 test_runner composer update
21+
run: docker-compose -f docker-compose.yml run -e PHP_VERSION=8.2 test_runner composer update
2222
env:
23-
PHP_VERSION: '8.1'
23+
PHP_VERSION: '8.2'
2424

2525
- name: Dump Reflection To File
26-
run: docker-compose -f docker-compose.yml run -e PHP_VERSION=8.1 php_under_test /usr/local/bin/php tests/Tools/dump-reflection-to-file.php ReflectionData.json
26+
run: docker-compose -f docker-compose.yml run -e PHP_VERSION=8.2 php_under_test /usr/local/bin/php tests/Tools/dump-reflection-to-file.php ReflectionData.json
2727
env:
28-
PHP_VERSION: '8.1'
28+
PHP_VERSION: '8.2'
2929

3030
- name: Run Tests
31-
run: docker-compose -f docker-compose.yml run -e PHP_VERSION=8.1 test_runner vendor/bin/phpunit --testsuite PHP_8.1
31+
run: docker-compose -f docker-compose.yml run -e PHP_VERSION=8.2 test_runner vendor/bin/phpunit --testsuite PHP_8.2
3232
env:
33-
PHP_VERSION: '8.1'
33+
PHP_VERSION: '8.2'
3434
additional:
3535
runs-on: ubuntu-latest
3636
name: Run cs-fixer and stubs structure tests

Core/Core.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,9 @@ function set_error_handler(?callable $callback, int $error_levels = E_ALL|E_STRI
669669
/**
670670
* Restores the previous error handler function
671671
* @link https://php.net/manual/en/function.restore-error-handler.php
672-
* @return bool This function always returns true.
672+
* @return true This function always returns true.
673673
*/
674-
function restore_error_handler(): bool {}
674+
function restore_error_handler(): true {}
675675

676676
/**
677677
* Sets a user-defined exception handler function
@@ -692,9 +692,9 @@ function set_exception_handler(?callable $callback) {}
692692
/**
693693
* Restores the previously defined exception handler function
694694
* @link https://php.net/manual/en/function.restore-exception-handler.php
695-
* @return bool This function always returns true.
695+
* @return true This function always returns true.
696696
*/
697-
function restore_exception_handler(): bool {}
697+
function restore_exception_handler(): true {}
698698

699699
/**
700700
* Returns an array with the name of the defined classes

Core/Core_c.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,3 +1028,33 @@ final class ReturnTypeWillChange
10281028
{
10291029
public function __construct() {}
10301030
}
1031+
1032+
/**
1033+
* @since 8.2
1034+
*/
1035+
final class AllowDynamicProperties
1036+
{
1037+
public function __construct() {}
1038+
}
1039+
1040+
/**
1041+
* @since 8.2
1042+
*/
1043+
final class SensitiveParameter
1044+
{
1045+
public function __construct() {}
1046+
}
1047+
1048+
/**
1049+
* @since 8.2
1050+
*/
1051+
final class SensitiveParameterValue
1052+
{
1053+
private readonly mixed $value;
1054+
1055+
public function __construct(mixed $value) {}
1056+
1057+
public function getValue(): mixed {}
1058+
1059+
public function __debugInfo(): array {}
1060+
}

0 commit comments

Comments
 (0)