From 56ab9335d67c505d6eeae411584e2066e7a1ac0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Brekelmans?= Date: Fri, 6 Aug 2021 15:12:06 +0200 Subject: [PATCH] Fix PHP8 build (#284) --- .github/workflows/auto-regenerate.yml | 2 +- .github/workflows/continuous-integration.yml | 4 +- .../rector-continuous-integration.yml | 12 +- .gitignore | 2 +- .travis.yml.old | 68 - README.md | 19 +- composer.json | 9 +- generated/apache.php | 1 - generated/apcu.php | 1 - generated/array.php | 9 +- generated/bzip2.php | 11 +- generated/calendar.php | 3 +- generated/classobj.php | 1 - generated/com.php | 9 +- generated/cubrid.php | 119 +- generated/curl.php | 25 +- generated/datetime.php | 17 +- generated/dir.php | 13 +- generated/dom.php | 1 - generated/eio.php | 83 +- generated/errorfunc.php | 3 +- generated/exec.php | 3 +- generated/fileinfo.php | 7 +- generated/filesystem.php | 71 +- generated/filter.php | 5 +- generated/fpm.php | 1 - generated/ftp.php | 45 +- generated/funchand.php | 5 +- generated/gettext.php | 1 - generated/gmp.php | 7 +- generated/gnupg.php | 19 +- generated/hash.php | 3 +- generated/ibase.php | 65 +- generated/ibmDb2.php | 33 +- generated/iconv.php | 1 - generated/image.php | 157 +- generated/imap.php | 79 +- generated/info.php | 1 - generated/inotify.php | 3 +- generated/json.php | 3 +- generated/ldap.php | 119 +- generated/libxml.php | 1 - generated/lzf.php | 1 - generated/mailparse.php | 11 +- generated/mbstring.php | 37 +- generated/misc.php | 13 +- generated/mysql.php | 63 +- generated/mysqli.php | 1 - generated/network.php | 5 +- generated/oci8.php | 77 +- generated/opcache.php | 1 - generated/openssl.php | 89 +- generated/outcontrol.php | 1 - generated/password.php | 3 +- generated/pcntl.php | 7 +- generated/pcre.php | 1 - generated/pgsql.php | 155 +- generated/posix.php | 1 - generated/ps.php | 133 +- generated/pspell.php | 1 - generated/readline.php | 5 +- generated/rpminfo.php | 1 - generated/rrd.php | 3 +- generated/sem.php | 27 +- generated/session.php | 9 +- generated/shmop.php | 5 +- generated/simplexml.php | 1 - generated/sockets.php | 49 +- generated/sodium.php | 1 - generated/solr.php | 1 - generated/spl.php | 9 +- generated/sqlsrv.php | 37 +- generated/ssdeep.php | 1 - generated/ssh2.php | 59 +- generated/stream.php | 39 +- generated/strings.php | 7 +- generated/swoole.php | 5 +- generated/uodbc.php | 67 +- generated/uopz.php | 1 - generated/url.php | 7 +- generated/var.php | 3 +- generated/xdiff.php | 3 +- generated/xml.php | 9 +- generated/xmlrpc.php | 3 +- generated/yaml.php | 7 +- generated/yaz.php | 17 +- generated/zip.php | 15 +- generated/zlib.php | 29 +- generator/composer.json | 4 +- generator/composer.lock | 2109 +++++++++++++---- generator/config/ignoredFunctions.php | 6 +- generator/config/specialCasesFunctions.php | 3 + generator/doc/update.sh | 20 +- generator/phpunit.xml.dist | 32 +- generator/src/FileCreator.php | 6 +- generator/src/GenerateCommand.php | 2 +- .../CustomPhpStanFunctionMap.php | 1 + generator/tests/DocPageTest.php | 2 - generator/tests/GeneratedFilesTest.php | 7 +- generator/tests/rector/0.7/composer.json | 18 - generator/tests/rector/composer.json | 18 + .../tests/rector/{0.7 => }/phpunit.xml.dist | 7 - generator/tests/rector/{0.7 => }/src/test.php | 0 .../rector/{0.7 => }/tests/RectorTest.php | 2 +- lib/DateTimeImmutable.php | 4 +- lib/Exceptions/CurlException.php | 4 +- .../Exceptions/SimplexmlException.php | 2 +- lib/special_cases.php | 86 +- rector-migrate-0.7.php => rector-migrate.php | 0 109 files changed, 2695 insertions(+), 1699 deletions(-) delete mode 100644 .travis.yml.old delete mode 100644 generator/tests/rector/0.7/composer.json create mode 100644 generator/tests/rector/composer.json rename generator/tests/rector/{0.7 => }/phpunit.xml.dist (62%) rename generator/tests/rector/{0.7 => }/src/test.php (100%) rename generator/tests/rector/{0.7 => }/tests/RectorTest.php (77%) rename {generated => lib}/Exceptions/SimplexmlException.php (88%) rename rector-migrate-0.7.php => rector-migrate.php (100%) diff --git a/.github/workflows/auto-regenerate.yml b/.github/workflows/auto-regenerate.yml index 7e22bb39..c4d4f8c0 100644 --- a/.github/workflows/auto-regenerate.yml +++ b/.github/workflows/auto-regenerate.yml @@ -18,7 +18,7 @@ jobs: uses: "shivammathur/setup-php@v2" with: coverage: "pcov" - php-version: "7.4" + php-version: "8.0" - name: "Check out salathe/phpdoc-base" uses: "actions/checkout@v2" diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 505768b6..36c31b75 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -16,9 +16,7 @@ jobs: strategy: matrix: php-version: - - "7.2" - - "7.3" - - "7.4" + - "8.0" dependencies: - "highest" diff --git a/.github/workflows/rector-continuous-integration.yml b/.github/workflows/rector-continuous-integration.yml index 46c1e0be..10f5eb98 100644 --- a/.github/workflows/rector-continuous-integration.yml +++ b/.github/workflows/rector-continuous-integration.yml @@ -9,16 +9,14 @@ on: jobs: rector-continuous-integration: - name: "Check if refactoring can be done with rector/rector:~0.7.0" + name: "Check if refactoring can be done with rector/rector" runs-on: "ubuntu-latest" strategy: matrix: php-version: - - "7.2" - - "7.3" - - "7.4" + - "8.0" dependencies: - "highest" @@ -34,13 +32,13 @@ jobs: - name: "Composer install" run: "composer install && composer rector && composer test" - working-directory: "generator/tests/rector/0.7" + working-directory: "generator/tests/rector" - name: "Run rector" run: "composer rector" - working-directory: "generator/tests/rector/0.7" + working-directory: "generator/tests/rector" - name: "Run tests" run: "composer test" - working-directory: "generator/tests/rector/0.7" + working-directory: "generator/tests/rector" diff --git a/.gitignore b/.gitignore index c16f3ae5..4a7f4685 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,5 @@ /generator/doc/entities/generated.ent /composer.lock vendor/ -/generator/tests/rector/0.7/composer.lock +/generator/tests/rector/composer.lock .phpunit.result.cache diff --git a/.travis.yml.old b/.travis.yml.old deleted file mode 100644 index 8adae7af..00000000 --- a/.travis.yml.old +++ /dev/null @@ -1,68 +0,0 @@ -language: php -matrix: - fast_finish: true # Don't wait for the allowed failures to build. - include: - - php: 7.3 - env: PREFER_LOWEST="" - - php: 7.2 - env: PREFER_LOWEST="" - allow_failures: - # PHP 7.4 testing is allowed to fail because the container isn't ready yet - - php: 7.4 - env: PREFER_LOWEST="" - -cache: - directories: - - generator/doc/doc-en - - vendor - - generator/vendor - - $HOME/.composer - -before_script: -- cd generator && composer install --no-interaction && cd .. -- | - if [ ! -d "generator/doc/doc-en/en" ]; then - cd generator/doc - svn co https://svn.php.net/repository/phpdoc/modules/doc-en doc-en - cd ../.. - else - cd generator/doc/doc-en - svn update - if [ $? -ne 0 ]; - then - cd .. - rm -rf doc-en - svn co https://svn.php.net/repository/phpdoc/modules/doc-en doc-en - cd doc-en - fi - cd ../../.. - fi -- composer update - -script: -- cd generator && ./vendor/bin/phpunit && cd .. -- cd generator && composer cs-check && cd .. -- cd generator && composer phpstan && cd .. -- composer dump-autoload -- composer cs-check -- composer phpstan -# Now, let's regenerate all files and see if we obtain the same set of files as the ones commited: -- cd generator && ./safe.php generate && cd .. -- | - if output=$(git status --porcelain) && [ -z "$output" ]; then - # all is good - echo "Generated files are the same as committed file: OK" - else - # Uncommitted changes - echo "Generated files are different from commited files. Please run './safe.php generate' command and commit the results." - echo "Detected changes:" - git status - git diff - echo "Generated files are different from commited files. Please run './safe.php generate' command and commit the results." - exit 1; - fi -- cd generator/tests/rector/0.5 && composer install && composer rector && composer test && cd ../../../.. -- cd generator/tests/rector/0.6 && composer install && composer rector && composer test && cd ../../../.. - -after_script: -- cd generator && travis_retry php vendor/bin/php-coveralls -v --root_dir="./generator" diff --git a/README.md b/README.md index f6369de8..f0fbeb2f 100644 --- a/README.md +++ b/README.md @@ -9,21 +9,6 @@ Safe PHP ======== -# This project is deprecated - - - -Because of how this project needs to be in sync with the official PHP documentation, maintaining a set of functions for PHP 7 is simply too difficult, which means we have to drop support for versions below PHP 8. - -On the other hand, because this project is used in other libraries, I cannot actually change the PHP dependency in composer.json to ^8.0 without risking some huge versions conflicts. - -So the only solution I see is to create a new project: [Safe8](https://github.com/thecodingmachine/safe8/). - -The old safe library will stay on Packagist, but it won't be updated anymore. - - -**Work in progress** - A set of core PHP functions rewritten to throw exceptions instead of returning `false` when an error is encountered. ## The problem @@ -128,7 +113,7 @@ tool that performs instant refactoring of your application. Run ```bash -$ composer require --dev rector/rector:^0.7 +$ composer require --dev rector/rector ``` to install `rector/rector`. @@ -136,7 +121,7 @@ to install `rector/rector`. Run ```bash -vendor/bin/rector process src/ --config vendor/thecodingmachine/safe/rector-migrate-0.7.php +vendor/bin/rector process src/ --config vendor/thecodingmachine/safe/rector-migrate.php ``` to run `rector/rector`. diff --git a/composer.json b/composer.json index c0890a7f..f754c2c9 100644 --- a/composer.json +++ b/composer.json @@ -27,6 +27,7 @@ "generated/curl.php", "generated/datetime.php", "generated/dir.php", + "generated/dom.php", "generated/eio.php", "generated/errorfunc.php", "generated/exec.php", @@ -36,6 +37,7 @@ "generated/fpm.php", "generated/ftp.php", "generated/funchand.php", + "generated/gettext.php", "generated/gmp.php", "generated/gnupg.php", "generated/hash.php", @@ -45,7 +47,6 @@ "generated/image.php", "generated/imap.php", "generated/info.php", - "generated/ingres-ii.php", "generated/inotify.php", "generated/json.php", "generated/ldap.php", @@ -56,8 +57,6 @@ "generated/misc.php", "generated/mysql.php", "generated/mysqli.php", - "generated/mysqlndMs.php", - "generated/mysqlndQc.php", "generated/network.php", "generated/oci8.php", "generated/opcache.php", @@ -76,8 +75,8 @@ "generated/sem.php", "generated/session.php", "generated/shmop.php", - "generated/simplexml.php", "generated/sockets.php", + "generated/sodium.php", "generated/solr.php", "generated/spl.php", "generated/sqlsrv.php", @@ -100,7 +99,7 @@ ] }, "require": { - "php": ">=7.2" + "php": "^8.0" }, "require-dev": { "phpstan/phpstan": "^0.12", diff --git a/generated/apache.php b/generated/apache.php index 9515d231..2bb3632a 100644 --- a/generated/apache.php +++ b/generated/apache.php @@ -197,4 +197,3 @@ function virtual(string $uri): void throw ApacheException::createFromPhpError(); } } - diff --git a/generated/apcu.php b/generated/apcu.php index 4b8914fc..733b2436 100644 --- a/generated/apcu.php +++ b/generated/apcu.php @@ -110,4 +110,3 @@ function apcu_sma_info(bool $limited = false): array } return $result; } - diff --git a/generated/array.php b/generated/array.php index f676290d..a31109f8 100644 --- a/generated/array.php +++ b/generated/array.php @@ -88,7 +88,7 @@ function array_replace_recursive(array $array, array ...$replacements): array error_clear_last(); if ($replacements !== []) { $result = \array_replace_recursive($array, ...$replacements); - }else { + } else { $result = \array_replace_recursive($array); } if ($result === null) { @@ -123,7 +123,7 @@ function array_replace(array $array, array ...$replacements): array error_clear_last(); if ($replacements !== []) { $result = \array_replace($array, ...$replacements); - }else { + } else { $result = \array_replace($array); } if ($result === null) { @@ -155,12 +155,12 @@ function array_replace(array $array, array ...$replacements): array * @throws ArrayException * */ -function array_walk_recursive(array &$array, callable $callback, $arg = null): void +function array_walk_recursive(array &$array, callable $callback, $arg = null): void { error_clear_last(); if ($arg !== null) { $result = \array_walk_recursive($array, $callback, $arg); - }else { + } else { $result = \array_walk_recursive($array, $callback); } if ($result === false) { @@ -633,4 +633,3 @@ function usort(array &$array, callable $callback): void throw ArrayException::createFromPhpError(); } } - diff --git a/generated/bzip2.php b/generated/bzip2.php index 3124423b..8087c748 100644 --- a/generated/bzip2.php +++ b/generated/bzip2.php @@ -12,7 +12,7 @@ * @throws Bzip2Exception * */ -function bzclose( $bz): void +function bzclose($bz): void { error_clear_last(); $result = \bzclose($bz); @@ -32,7 +32,7 @@ function bzclose( $bz): void * @throws Bzip2Exception * */ -function bzflush( $bz): void +function bzflush($bz): void { error_clear_last(); $result = \bzflush($bz); @@ -57,7 +57,7 @@ function bzflush( $bz): void * @throws Bzip2Exception * */ -function bzread( $bz, int $length = 1024): string +function bzread($bz, int $length = 1024): string { error_clear_last(); $result = \bzread($bz, $length); @@ -82,12 +82,12 @@ function bzread( $bz, int $length = 1024): string * @throws Bzip2Exception * */ -function bzwrite( $bz, string $data, int $length = null): int +function bzwrite($bz, string $data, int $length = null): int { error_clear_last(); if ($length !== null) { $result = \bzwrite($bz, $data, $length); - }else { + } else { $result = \bzwrite($bz, $data); } if ($result === false) { @@ -95,4 +95,3 @@ function bzwrite( $bz, string $data, int $length = null): int } return $result; } - diff --git a/generated/calendar.php b/generated/calendar.php index 249e9ce2..f5ad7b20 100644 --- a/generated/calendar.php +++ b/generated/calendar.php @@ -42,7 +42,7 @@ function unixtojd(int $timestamp = null): int error_clear_last(); if ($timestamp !== null) { $result = \unixtojd($timestamp); - }else { + } else { $result = \unixtojd(); } if ($result === false) { @@ -50,4 +50,3 @@ function unixtojd(int $timestamp = null): int } return $result; } - diff --git a/generated/classobj.php b/generated/classobj.php index 9c3a5cbb..dd2535ae 100644 --- a/generated/classobj.php +++ b/generated/classobj.php @@ -23,4 +23,3 @@ function class_alias(string $class, string $alias, bool $autoload = true): void throw ClassobjException::createFromPhpError(); } } - diff --git a/generated/com.php b/generated/com.php index bd2c724d..5f249342 100644 --- a/generated/com.php +++ b/generated/com.php @@ -47,12 +47,12 @@ function com_create_guid(): string * @throws ComException * */ -function com_event_sink(object $variant, object $sink_object, $sink_interface = null): void +function com_event_sink(object $variant, object $sink_object, $sink_interface = null): void { error_clear_last(); if ($sink_interface !== null) { $result = \com_event_sink($variant, $sink_object, $sink_interface); - }else { + } else { $result = \com_event_sink($variant, $sink_object); } if ($result === false) { @@ -145,7 +145,7 @@ function com_print_typeinfo(object $variant, string $dispatch_interface = null, $result = \com_print_typeinfo($variant, $dispatch_interface, $display_sink); } elseif ($dispatch_interface !== null) { $result = \com_print_typeinfo($variant, $dispatch_interface); - }else { + } else { $result = \com_print_typeinfo($variant); } if ($result === false) { @@ -185,7 +185,7 @@ function variant_date_to_timestamp(object $variant): int * @throws ComException * */ -function variant_round( $value, int $decimals) +function variant_round($value, int $decimals) { error_clear_last(); $result = \variant_round($value, $decimals); @@ -194,4 +194,3 @@ function variant_round( $value, int $decimals) } return $result; } - diff --git a/generated/cubrid.php b/generated/cubrid.php index cbf5d251..559bc973 100644 --- a/generated/cubrid.php +++ b/generated/cubrid.php @@ -124,12 +124,12 @@ * @throws CubridException * */ -function cubrid_bind( $req_identifier, int $bind_index, $bind_value, string $bind_value_type = null): void +function cubrid_bind($req_identifier, int $bind_index, $bind_value, string $bind_value_type = null): void { error_clear_last(); if ($bind_value_type !== null) { $result = \cubrid_bind($req_identifier, $bind_index, $bind_value, $bind_value_type); - }else { + } else { $result = \cubrid_bind($req_identifier, $bind_index, $bind_value); } if ($result === false) { @@ -150,7 +150,7 @@ function cubrid_bind( $req_identifier, int $bind_index, $bind_value, string $bi * @throws CubridException * */ -function cubrid_col_size( $conn_identifier, string $oid, string $attr_name): int +function cubrid_col_size($conn_identifier, string $oid, string $attr_name): int { error_clear_last(); $result = \cubrid_col_size($conn_identifier, $oid, $attr_name); @@ -170,7 +170,7 @@ function cubrid_col_size( $conn_identifier, string $oid, string $attr_name): int * @throws CubridException * */ -function cubrid_column_names( $req_identifier): array +function cubrid_column_names($req_identifier): array { error_clear_last(); $result = \cubrid_column_names($req_identifier); @@ -190,7 +190,7 @@ function cubrid_column_names( $req_identifier): array * @throws CubridException * */ -function cubrid_column_types( $req_identifier): array +function cubrid_column_types($req_identifier): array { error_clear_last(); $result = \cubrid_column_types($req_identifier); @@ -217,7 +217,7 @@ function cubrid_column_types( $req_identifier): array * @throws CubridException * */ -function cubrid_commit( $conn_identifier): void +function cubrid_commit($conn_identifier): void { error_clear_last(); $result = \cubrid_commit($conn_identifier); @@ -312,7 +312,7 @@ function cubrid_connect_with_url(string $conn_url, string $userid = null, string $result = \cubrid_connect_with_url($conn_url, $userid, $passwd); } elseif ($userid !== null) { $result = \cubrid_connect_with_url($conn_url, $userid); - }else { + } else { $result = \cubrid_connect_with_url($conn_url); } if ($result === false) { @@ -356,7 +356,7 @@ function cubrid_connect(string $host, int $port, string $dbname, string $userid $result = \cubrid_connect($host, $port, $dbname, $userid, $passwd); } elseif ($userid !== null) { $result = \cubrid_connect($host, $port, $dbname, $userid); - }else { + } else { $result = \cubrid_connect($host, $port, $dbname); } if ($result === false) { @@ -378,7 +378,7 @@ function cubrid_connect(string $host, int $port, string $dbname, string $userid * @throws CubridException * */ -function cubrid_current_oid( $req_identifier): string +function cubrid_current_oid($req_identifier): string { error_clear_last(); $result = \cubrid_current_oid($req_identifier); @@ -398,12 +398,12 @@ function cubrid_current_oid( $req_identifier): string * @throws CubridException * */ -function cubrid_disconnect( $conn_identifier = null): void +function cubrid_disconnect($conn_identifier = null): void { error_clear_last(); if ($conn_identifier !== null) { $result = \cubrid_disconnect($conn_identifier); - }else { + } else { $result = \cubrid_disconnect(); } if ($result === false) { @@ -421,7 +421,7 @@ function cubrid_disconnect( $conn_identifier = null): void * @throws CubridException * */ -function cubrid_drop( $conn_identifier, string $oid): void +function cubrid_drop($conn_identifier, string $oid): void { error_clear_last(); $result = \cubrid_drop($conn_identifier, $oid); @@ -441,7 +441,7 @@ function cubrid_drop( $conn_identifier, string $oid): void * @throws CubridException * */ -function cubrid_free_result( $req_identifier): void +function cubrid_free_result($req_identifier): void { error_clear_last(); $result = \cubrid_free_result($req_identifier); @@ -461,7 +461,7 @@ function cubrid_free_result( $req_identifier): void * @throws CubridException * */ -function cubrid_get_charset( $conn_identifier): string +function cubrid_get_charset($conn_identifier): string { error_clear_last(); $result = \cubrid_get_charset($conn_identifier); @@ -483,7 +483,7 @@ function cubrid_get_charset( $conn_identifier): string * @throws CubridException * */ -function cubrid_get_class_name( $conn_identifier, string $oid): string +function cubrid_get_class_name($conn_identifier, string $oid): string { error_clear_last(); $result = \cubrid_get_class_name($conn_identifier, $oid); @@ -625,7 +625,7 @@ function cubrid_get_client_info(): string * @throws CubridException * */ -function cubrid_get_db_parameter( $conn_identifier): array +function cubrid_get_db_parameter($conn_identifier): array { error_clear_last(); $result = \cubrid_get_db_parameter($conn_identifier); @@ -645,7 +645,7 @@ function cubrid_get_db_parameter( $conn_identifier): array * @throws CubridException * */ -function cubrid_get_query_timeout( $req_identifier): int +function cubrid_get_query_timeout($req_identifier): int { error_clear_last(); $result = \cubrid_get_query_timeout($req_identifier); @@ -664,7 +664,7 @@ function cubrid_get_query_timeout( $req_identifier): int * @throws CubridException * */ -function cubrid_get_server_info( $conn_identifier): string +function cubrid_get_server_info($conn_identifier): string { error_clear_last(); $result = \cubrid_get_server_info($conn_identifier); @@ -692,12 +692,12 @@ function cubrid_get_server_info( $conn_identifier): string * @throws CubridException * */ -function cubrid_insert_id( $conn_identifier = null): string +function cubrid_insert_id($conn_identifier = null): string { error_clear_last(); if ($conn_identifier !== null) { $result = \cubrid_insert_id($conn_identifier); - }else { + } else { $result = \cubrid_insert_id(); } if ($result === false) { @@ -735,7 +735,7 @@ function cubrid_lob_close(array $lob_identifier_array): void * @throws CubridException * */ -function cubrid_lob_export( $conn_identifier, $lob_identifier, string $path_name): void +function cubrid_lob_export($conn_identifier, $lob_identifier, string $path_name): void { error_clear_last(); $result = \cubrid_lob_export($conn_identifier, $lob_identifier, $path_name); @@ -758,7 +758,7 @@ function cubrid_lob_export( $conn_identifier, $lob_identifier, string $path_nam * @throws CubridException * */ -function cubrid_lob_get( $conn_identifier, string $sql): array +function cubrid_lob_get($conn_identifier, string $sql): array { error_clear_last(); $result = \cubrid_lob_get($conn_identifier, $sql); @@ -778,7 +778,7 @@ function cubrid_lob_get( $conn_identifier, string $sql): array * @throws CubridException * */ -function cubrid_lob_send( $conn_identifier, $lob_identifier): void +function cubrid_lob_send($conn_identifier, $lob_identifier): void { error_clear_last(); $result = \cubrid_lob_send($conn_identifier, $lob_identifier); @@ -796,7 +796,7 @@ function cubrid_lob_send( $conn_identifier, $lob_identifier): void * @throws CubridException * */ -function cubrid_lob_size( $lob_identifier): string +function cubrid_lob_size($lob_identifier): string { error_clear_last(); $result = \cubrid_lob_size($lob_identifier); @@ -822,12 +822,12 @@ function cubrid_lob_size( $lob_identifier): string * @throws CubridException * */ -function cubrid_lob2_bind( $req_identifier, int $bind_index, $bind_value, string $bind_value_type = null): void +function cubrid_lob2_bind($req_identifier, int $bind_index, $bind_value, string $bind_value_type = null): void { error_clear_last(); if ($bind_value_type !== null) { $result = \cubrid_lob2_bind($req_identifier, $bind_index, $bind_value, $bind_value_type); - }else { + } else { $result = \cubrid_lob2_bind($req_identifier, $bind_index, $bind_value); } if ($result === false) { @@ -844,7 +844,7 @@ function cubrid_lob2_bind( $req_identifier, int $bind_index, $bind_value, strin * @throws CubridException * */ -function cubrid_lob2_close( $lob_identifier): void +function cubrid_lob2_close($lob_identifier): void { error_clear_last(); $result = \cubrid_lob2_close($lob_identifier); @@ -867,7 +867,7 @@ function cubrid_lob2_close( $lob_identifier): void * @throws CubridException * */ -function cubrid_lob2_export( $lob_identifier, string $file_name): void +function cubrid_lob2_export($lob_identifier, string $file_name): void { error_clear_last(); $result = \cubrid_lob2_export($lob_identifier, $file_name); @@ -890,7 +890,7 @@ function cubrid_lob2_export( $lob_identifier, string $file_name): void * @throws CubridException * */ -function cubrid_lob2_import( $lob_identifier, string $file_name): void +function cubrid_lob2_import($lob_identifier, string $file_name): void { error_clear_last(); $result = \cubrid_lob2_import($lob_identifier, $file_name); @@ -912,14 +912,14 @@ function cubrid_lob2_import( $lob_identifier, string $file_name): void * @throws CubridException * */ -function cubrid_lob2_new( $conn_identifier = null, string $type = "BLOB") +function cubrid_lob2_new($conn_identifier = null, string $type = "BLOB") { error_clear_last(); if ($type !== "BLOB") { $result = \cubrid_lob2_new($conn_identifier, $type); } elseif ($conn_identifier !== null) { $result = \cubrid_lob2_new($conn_identifier); - }else { + } else { $result = \cubrid_lob2_new(); } if ($result === false) { @@ -939,7 +939,7 @@ function cubrid_lob2_new( $conn_identifier = null, string $type = "BLOB") * @throws CubridException * */ -function cubrid_lob2_read( $lob_identifier, int $len): string +function cubrid_lob2_read($lob_identifier, int $len): string { error_clear_last(); $result = \cubrid_lob2_read($lob_identifier, $len); @@ -978,7 +978,7 @@ function cubrid_lob2_read( $lob_identifier, int $len): string * @throws CubridException * */ -function cubrid_lob2_seek( $lob_identifier, int $offset, int $origin = CUBRID_CURSOR_CURRENT): void +function cubrid_lob2_seek($lob_identifier, int $offset, int $origin = CUBRID_CURSOR_CURRENT): void { error_clear_last(); $result = \cubrid_lob2_seek($lob_identifier, $offset, $origin); @@ -1017,7 +1017,7 @@ function cubrid_lob2_seek( $lob_identifier, int $offset, int $origin = CUBRID_CU * @throws CubridException * */ -function cubrid_lob2_seek64( $lob_identifier, string $offset, int $origin = CUBRID_CURSOR_CURRENT): void +function cubrid_lob2_seek64($lob_identifier, string $offset, int $origin = CUBRID_CURSOR_CURRENT): void { error_clear_last(); $result = \cubrid_lob2_seek64($lob_identifier, $offset, $origin); @@ -1035,7 +1035,7 @@ function cubrid_lob2_seek64( $lob_identifier, string $offset, int $origin = CUBR * @throws CubridException * */ -function cubrid_lob2_size( $lob_identifier): int +function cubrid_lob2_size($lob_identifier): int { error_clear_last(); $result = \cubrid_lob2_size($lob_identifier); @@ -1057,7 +1057,7 @@ function cubrid_lob2_size( $lob_identifier): int * @throws CubridException * */ -function cubrid_lob2_size64( $lob_identifier): string +function cubrid_lob2_size64($lob_identifier): string { error_clear_last(); $result = \cubrid_lob2_size64($lob_identifier); @@ -1076,7 +1076,7 @@ function cubrid_lob2_size64( $lob_identifier): string * @throws CubridException * */ -function cubrid_lob2_tell( $lob_identifier): int +function cubrid_lob2_tell($lob_identifier): int { error_clear_last(); $result = \cubrid_lob2_tell($lob_identifier); @@ -1098,7 +1098,7 @@ function cubrid_lob2_tell( $lob_identifier): int * @throws CubridException * */ -function cubrid_lob2_tell64( $lob_identifier): string +function cubrid_lob2_tell64($lob_identifier): string { error_clear_last(); $result = \cubrid_lob2_tell64($lob_identifier); @@ -1119,7 +1119,7 @@ function cubrid_lob2_tell64( $lob_identifier): string * @throws CubridException * */ -function cubrid_lob2_write( $lob_identifier, string $buf): void +function cubrid_lob2_write($lob_identifier, string $buf): void { error_clear_last(); $result = \cubrid_lob2_write($lob_identifier, $buf); @@ -1138,7 +1138,7 @@ function cubrid_lob2_write( $lob_identifier, string $buf): void * @throws CubridException * */ -function cubrid_lock_read( $conn_identifier, string $oid): void +function cubrid_lock_read($conn_identifier, string $oid): void { error_clear_last(); $result = \cubrid_lock_read($conn_identifier, $oid); @@ -1157,7 +1157,7 @@ function cubrid_lock_read( $conn_identifier, string $oid): void * @throws CubridException * */ -function cubrid_lock_write( $conn_identifier, string $oid): void +function cubrid_lock_write($conn_identifier, string $oid): void { error_clear_last(); $result = \cubrid_lock_write($conn_identifier, $oid); @@ -1191,7 +1191,7 @@ function cubrid_lock_write( $conn_identifier, string $oid): void * @throws CubridException * */ -function cubrid_move_cursor( $req_identifier, int $offset, int $origin = CUBRID_CURSOR_CURRENT): int +function cubrid_move_cursor($req_identifier, int $offset, int $origin = CUBRID_CURSOR_CURRENT): int { error_clear_last(); $result = \cubrid_move_cursor($req_identifier, $offset, $origin); @@ -1212,7 +1212,7 @@ function cubrid_move_cursor( $req_identifier, int $offset, int $origin = CUBRID_ * @throws CubridException * */ -function cubrid_next_result( $result): void +function cubrid_next_result($result): void { error_clear_last(); $result = \cubrid_next_result($result); @@ -1307,7 +1307,7 @@ function cubrid_pconnect_with_url(string $conn_url, string $userid = null, strin $result = \cubrid_pconnect_with_url($conn_url, $userid, $passwd); } elseif ($userid !== null) { $result = \cubrid_pconnect_with_url($conn_url, $userid); - }else { + } else { $result = \cubrid_pconnect_with_url($conn_url); } if ($result === false) { @@ -1352,7 +1352,7 @@ function cubrid_pconnect(string $host, int $port, string $dbname, string $userid $result = \cubrid_pconnect($host, $port, $dbname, $userid, $passwd); } elseif ($userid !== null) { $result = \cubrid_pconnect($host, $port, $dbname, $userid); - }else { + } else { $result = \cubrid_pconnect($host, $port, $dbname); } if ($result === false) { @@ -1380,7 +1380,7 @@ function cubrid_pconnect(string $host, int $port, string $dbname, string $userid * @throws CubridException * */ -function cubrid_prepare( $conn_identifier, string $prepare_stmt, int $option = 0) +function cubrid_prepare($conn_identifier, string $prepare_stmt, int $option = 0) { error_clear_last(); $result = \cubrid_prepare($conn_identifier, $prepare_stmt, $option); @@ -1409,14 +1409,14 @@ function cubrid_prepare( $conn_identifier, string $prepare_stmt, int $option = 0 * @throws CubridException * */ -function cubrid_put( $conn_identifier, string $oid, string $attr = null, $value = null): void +function cubrid_put($conn_identifier, string $oid, string $attr = null, $value = null): void { error_clear_last(); if ($value !== null) { $result = \cubrid_put($conn_identifier, $oid, $attr, $value); } elseif ($attr !== null) { $result = \cubrid_put($conn_identifier, $oid, $attr); - }else { + } else { $result = \cubrid_put($conn_identifier, $oid); } if ($result === false) { @@ -1438,7 +1438,7 @@ function cubrid_put( $conn_identifier, string $oid, string $attr = null, $value * @throws CubridException * */ -function cubrid_rollback( $conn_identifier): void +function cubrid_rollback($conn_identifier): void { error_clear_last(); $result = \cubrid_rollback($conn_identifier); @@ -1837,14 +1837,14 @@ function cubrid_rollback( $conn_identifier): void * @throws CubridException * */ -function cubrid_schema( $conn_identifier, int $schema_type, string $class_name = null, string $attr_name = null): array +function cubrid_schema($conn_identifier, int $schema_type, string $class_name = null, string $attr_name = null): array { error_clear_last(); if ($attr_name !== null) { $result = \cubrid_schema($conn_identifier, $schema_type, $class_name, $attr_name); } elseif ($class_name !== null) { $result = \cubrid_schema($conn_identifier, $schema_type, $class_name); - }else { + } else { $result = \cubrid_schema($conn_identifier, $schema_type); } if ($result === false) { @@ -1866,7 +1866,7 @@ function cubrid_schema( $conn_identifier, int $schema_type, string $class_name = * @throws CubridException * */ -function cubrid_seq_drop( $conn_identifier, string $oid, string $attr_name, int $index): void +function cubrid_seq_drop($conn_identifier, string $oid, string $attr_name, int $index): void { error_clear_last(); $result = \cubrid_seq_drop($conn_identifier, $oid, $attr_name, $index); @@ -1888,7 +1888,7 @@ function cubrid_seq_drop( $conn_identifier, string $oid, string $attr_name, int * @throws CubridException * */ -function cubrid_seq_insert( $conn_identifier, string $oid, string $attr_name, int $index, string $seq_element): void +function cubrid_seq_insert($conn_identifier, string $oid, string $attr_name, int $index, string $seq_element): void { error_clear_last(); $result = \cubrid_seq_insert($conn_identifier, $oid, $attr_name, $index, $seq_element); @@ -1910,7 +1910,7 @@ function cubrid_seq_insert( $conn_identifier, string $oid, string $attr_name, in * @throws CubridException * */ -function cubrid_seq_put( $conn_identifier, string $oid, string $attr_name, int $index, string $seq_element): void +function cubrid_seq_put($conn_identifier, string $oid, string $attr_name, int $index, string $seq_element): void { error_clear_last(); $result = \cubrid_seq_put($conn_identifier, $oid, $attr_name, $index, $seq_element); @@ -1932,7 +1932,7 @@ function cubrid_seq_put( $conn_identifier, string $oid, string $attr_name, int $ * @throws CubridException * */ -function cubrid_set_add( $conn_identifier, string $oid, string $attr_name, string $set_element): void +function cubrid_set_add($conn_identifier, string $oid, string $attr_name, string $set_element): void { error_clear_last(); $result = \cubrid_set_add($conn_identifier, $oid, $attr_name, $set_element); @@ -1960,7 +1960,7 @@ function cubrid_set_add( $conn_identifier, string $oid, string $attr_name, strin * @throws CubridException * */ -function cubrid_set_autocommit( $conn_identifier, bool $mode): void +function cubrid_set_autocommit($conn_identifier, bool $mode): void { error_clear_last(); $result = \cubrid_set_autocommit($conn_identifier, $mode); @@ -1987,7 +1987,7 @@ function cubrid_set_autocommit( $conn_identifier, bool $mode): void * @throws CubridException * */ -function cubrid_set_db_parameter( $conn_identifier, int $param_type, int $param_value): void +function cubrid_set_db_parameter($conn_identifier, int $param_type, int $param_value): void { error_clear_last(); $result = \cubrid_set_db_parameter($conn_identifier, $param_type, $param_value); @@ -2009,7 +2009,7 @@ function cubrid_set_db_parameter( $conn_identifier, int $param_type, int $param_ * @throws CubridException * */ -function cubrid_set_drop( $conn_identifier, string $oid, string $attr_name, string $set_element): void +function cubrid_set_drop($conn_identifier, string $oid, string $attr_name, string $set_element): void { error_clear_last(); $result = \cubrid_set_drop($conn_identifier, $oid, $attr_name, $set_element); @@ -2028,7 +2028,7 @@ function cubrid_set_drop( $conn_identifier, string $oid, string $attr_name, stri * @throws CubridException * */ -function cubrid_set_query_timeout( $req_identifier, int $timeout): void +function cubrid_set_query_timeout($req_identifier, int $timeout): void { error_clear_last(); $result = \cubrid_set_query_timeout($req_identifier, $timeout); @@ -2036,4 +2036,3 @@ function cubrid_set_query_timeout( $req_identifier, int $timeout): void throw CubridException::createFromPhpError(); } } - diff --git a/generated/curl.php b/generated/curl.php index e9689100..0593a29f 100644 --- a/generated/curl.php +++ b/generated/curl.php @@ -13,7 +13,7 @@ * @throws CurlException * */ -function curl_copy_handle( $handle) +function curl_copy_handle($handle) { error_clear_last(); $result = \curl_copy_handle($handle); @@ -34,7 +34,7 @@ function curl_copy_handle( $handle) * @throws CurlException * */ -function curl_escape( $handle, string $string): string +function curl_escape($handle, string $string): string { error_clear_last(); $result = \curl_escape($handle, $string); @@ -59,7 +59,7 @@ function curl_escape( $handle, string $string): string * @throws CurlException * */ -function curl_exec( $handle) +function curl_exec($handle) { error_clear_last(); $result = \curl_exec($handle); @@ -532,12 +532,12 @@ function curl_exec( $handle) * @throws CurlException * */ -function curl_getinfo( $handle, int $option = null) +function curl_getinfo($handle, int $option = null) { error_clear_last(); if ($option !== null) { $result = \curl_getinfo($handle, $option); - }else { + } else { $result = \curl_getinfo($handle); } if ($result === false) { @@ -567,7 +567,7 @@ function curl_init(string $url = null) error_clear_last(); if ($url !== null) { $result = \curl_init($url); - }else { + } else { $result = \curl_init(); } if ($result === false) { @@ -586,7 +586,7 @@ function curl_init(string $url = null) * @throws CurlException * */ -function curl_multi_errno( $multi_handle): int +function curl_multi_errno($multi_handle): int { error_clear_last(); $result = \curl_multi_errno($multi_handle); @@ -642,7 +642,7 @@ function curl_multi_errno( $multi_handle): int * @throws CurlException * */ -function curl_multi_info_read( $multi_handle, ?int &$queued_messages = null): array +function curl_multi_info_read($multi_handle, ?int &$queued_messages = null): array { error_clear_last(); $result = \curl_multi_info_read($multi_handle, $queued_messages); @@ -3010,7 +3010,7 @@ function curl_multi_init() * @throws CurlException * */ -function curl_setopt( $handle, int $option, $value): void +function curl_setopt($handle, int $option, $value): void { error_clear_last(); $result = \curl_setopt($handle, $option, $value); @@ -3029,7 +3029,7 @@ function curl_setopt( $handle, int $option, $value): void * @throws CurlException * */ -function curl_share_errno( $share_handle): int +function curl_share_errno($share_handle): int { error_clear_last(); $result = \curl_share_errno($share_handle); @@ -3106,7 +3106,7 @@ function curl_share_errno( $share_handle): int * @throws CurlException * */ -function curl_share_setopt( $share_handle, int $option, $value): void +function curl_share_setopt($share_handle, int $option, $value): void { error_clear_last(); $result = \curl_share_setopt($share_handle, $option, $value); @@ -3126,7 +3126,7 @@ function curl_share_setopt( $share_handle, int $option, $value): void * @throws CurlException * */ -function curl_unescape( $handle, string $string): string +function curl_unescape($handle, string $string): string { error_clear_last(); $result = \curl_unescape($handle, $string); @@ -3135,4 +3135,3 @@ function curl_unescape( $handle, string $string): string } return $result; } - diff --git a/generated/datetime.php b/generated/datetime.php index df868f28..8dc81328 100644 --- a/generated/datetime.php +++ b/generated/datetime.php @@ -244,7 +244,7 @@ function date_sunrise(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, f $result = \date_sunrise($timestamp, $returnFormat, $latitude, $longitude); } elseif ($latitude !== null) { $result = \date_sunrise($timestamp, $returnFormat, $latitude); - }else { + } else { $result = \date_sunrise($timestamp, $returnFormat); } if ($result === false) { @@ -347,7 +347,7 @@ function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, fl $result = \date_sunset($timestamp, $returnFormat, $latitude, $longitude); } elseif ($latitude !== null) { $result = \date_sunset($timestamp, $returnFormat, $latitude); - }else { + } else { $result = \date_sunset($timestamp, $returnFormat); } if ($result === false) { @@ -379,7 +379,7 @@ function date(string $format, int $timestamp = null): string error_clear_last(); if ($timestamp !== null) { $result = \date($format, $timestamp); - }else { + } else { $result = \date($format); } if ($result === false) { @@ -434,7 +434,7 @@ function gmmktime(int $hour, int $minute = null, int $second = null, int $month $result = \gmmktime($hour, $minute, $second); } elseif ($minute !== null) { $result = \gmmktime($hour, $minute); - }else { + } else { $result = \gmmktime($hour); } if ($result === false) { @@ -470,7 +470,7 @@ function gmstrftime(string $format, int $timestamp = null): string error_clear_last(); if ($timestamp !== null) { $result = \gmstrftime($format, $timestamp); - }else { + } else { $result = \gmstrftime($format); } if ($result === false) { @@ -592,7 +592,7 @@ function idate(string $format, int $timestamp = null): int error_clear_last(); if ($timestamp !== null) { $result = \idate($format, $timestamp); - }else { + } else { $result = \idate($format); } if ($result === false) { @@ -654,7 +654,7 @@ function mktime(int $hour, int $minute = null, int $second = null, int $month = $result = \mktime($hour, $minute, $second); } elseif ($minute !== null) { $result = \mktime($hour, $minute); - }else { + } else { $result = \mktime($hour); } if ($result === false) { @@ -766,7 +766,7 @@ function strtotime(string $datetime, int $baseTimestamp = null): int error_clear_last(); if ($baseTimestamp !== null) { $result = \strtotime($datetime, $baseTimestamp); - }else { + } else { $result = \strtotime($datetime); } if ($result === false) { @@ -806,4 +806,3 @@ function timezone_name_from_abbr(string $abbr, int $utcOffset = -1, int $isDST = } return $result; } - diff --git a/generated/dir.php b/generated/dir.php index 7af97efc..4752fba1 100644 --- a/generated/dir.php +++ b/generated/dir.php @@ -85,12 +85,12 @@ function getcwd(): string * @throws DirException * */ -function opendir(string $path, $context = null) +function opendir(string $path, $context = null) { error_clear_last(); if ($context !== null) { $result = \opendir($path, $context); - }else { + } else { $result = \opendir($path); } if ($result === false) { @@ -113,12 +113,12 @@ function opendir(string $path, $context = null) * @throws DirException * */ -function rewinddir( $dir_handle = null) +function rewinddir($dir_handle = null) { error_clear_last(); if ($dir_handle !== null) { $result = \rewinddir($dir_handle); - }else { + } else { $result = \rewinddir(); } if ($result === false) { @@ -147,12 +147,12 @@ function rewinddir( $dir_handle = null) * @throws DirException * */ -function scandir(string $directory, int $sorting_order = SCANDIR_SORT_ASCENDING, $context = null): array +function scandir(string $directory, int $sorting_order = SCANDIR_SORT_ASCENDING, $context = null): array { error_clear_last(); if ($context !== null) { $result = \scandir($directory, $sorting_order, $context); - }else { + } else { $result = \scandir($directory, $sorting_order); } if ($result === false) { @@ -160,4 +160,3 @@ function scandir(string $directory, int $sorting_order = SCANDIR_SORT_ASCENDING, } return $result; } - diff --git a/generated/dom.php b/generated/dom.php index cc861da8..69b87f8b 100644 --- a/generated/dom.php +++ b/generated/dom.php @@ -24,4 +24,3 @@ function dom_import_simplexml(\SimpleXMLElement $node): \DOMElement } return $result; } - diff --git a/generated/eio.php b/generated/eio.php index 43b8b970..1fffa900 100644 --- a/generated/eio.php +++ b/generated/eio.php @@ -19,7 +19,7 @@ * @throws EioException * */ -function eio_busy(int $delay, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_busy(int $delay, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_busy($delay, $pri, $callback, $data); @@ -71,7 +71,7 @@ function eio_busy(int $delay, int $pri = EIO_PRI_DEFAULT, callable $callback = N * @throws EioException * */ -function eio_chmod(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_chmod(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_chmod($path, $mode, $pri, $callback, $data); @@ -123,7 +123,7 @@ function eio_chmod(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, callable * @throws EioException * */ -function eio_chown(string $path, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_chown(string $path, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_chown($path, $uid, $gid, $pri, $callback, $data); @@ -172,7 +172,7 @@ function eio_chown(string $path, int $uid, int $gid = -1, int $pri = EIO_PRI_DEF * @throws EioException * */ -function eio_close( $fd, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_close($fd, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_close($fd, $pri, $callback, $data); @@ -231,7 +231,7 @@ function eio_close( $fd, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, * @throws EioException * */ -function eio_custom(callable $execute, int $pri, callable $callback, $data = NULL) +function eio_custom(callable $execute, int $pri, callable $callback, $data = null) { error_clear_last(); $result = \eio_custom($execute, $pri, $callback, $data); @@ -280,7 +280,7 @@ function eio_custom(callable $execute, int $pri, callable $callback, $data = NU * @throws EioException * */ -function eio_dup2( $fd, $fd2, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_dup2($fd, $fd2, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_dup2($fd, $fd2, $pri, $callback, $data); @@ -352,7 +352,7 @@ function eio_event_loop(): void * @throws EioException * */ -function eio_fallocate( $fd, int $mode, int $offset, int $length, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_fallocate($fd, int $mode, int $offset, int $length, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_fallocate($fd, $mode, $offset, $length, $pri, $callback, $data); @@ -402,7 +402,7 @@ function eio_fallocate( $fd, int $mode, int $offset, int $length, int $pri = EIO * @throws EioException * */ -function eio_fchmod( $fd, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_fchmod($fd, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_fchmod($fd, $mode, $pri, $callback, $data); @@ -453,7 +453,7 @@ function eio_fchmod( $fd, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callb * @throws EioException * */ -function eio_fchown( $fd, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_fchown($fd, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_fchown($fd, $uid, $gid, $pri, $callback, $data); @@ -501,7 +501,7 @@ function eio_fchown( $fd, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, c * @throws EioException * */ -function eio_fdatasync( $fd, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_fdatasync($fd, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_fdatasync($fd, $pri, $callback, $data); @@ -550,12 +550,12 @@ function eio_fdatasync( $fd, int $pri = EIO_PRI_DEFAULT, callable $callback = NU * @throws EioException * */ -function eio_fstat( $fd, int $pri, callable $callback, $data = null) +function eio_fstat($fd, int $pri, callable $callback, $data = null) { error_clear_last(); if ($data !== null) { $result = \eio_fstat($fd, $pri, $callback, $data); - }else { + } else { $result = \eio_fstat($fd, $pri, $callback); } if ($result === false) { @@ -603,12 +603,12 @@ function eio_fstat( $fd, int $pri, callable $callback, $data = null) * @throws EioException * */ -function eio_fstatvfs( $fd, int $pri, callable $callback, $data = null) +function eio_fstatvfs($fd, int $pri, callable $callback, $data = null) { error_clear_last(); if ($data !== null) { $result = \eio_fstatvfs($fd, $pri, $callback, $data); - }else { + } else { $result = \eio_fstatvfs($fd, $pri, $callback); } if ($result === false) { @@ -655,7 +655,7 @@ function eio_fstatvfs( $fd, int $pri, callable $callback, $data = null) * @throws EioException * */ -function eio_fsync( $fd, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_fsync($fd, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_fsync($fd, $pri, $callback, $data); @@ -706,7 +706,7 @@ function eio_fsync( $fd, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, * @throws EioException * */ -function eio_ftruncate( $fd, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_ftruncate($fd, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_ftruncate($fd, $offset, $pri, $callback, $data); @@ -757,7 +757,7 @@ function eio_ftruncate( $fd, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callab * @throws EioException * */ -function eio_futime( $fd, float $atime, float $mtime, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_futime($fd, float $atime, float $mtime, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_futime($fd, $atime, $mtime, $pri, $callback, $data); @@ -801,7 +801,7 @@ function eio_futime( $fd, float $atime, float $mtime, int $pri = EIO_PRI_DEFAULT * @throws EioException * */ -function eio_grp(callable $callback, string $data = NULL) +function eio_grp(callable $callback, string $data = null) { error_clear_last(); $result = \eio_grp($callback, $data); @@ -850,7 +850,7 @@ function eio_grp(callable $callback, string $data = NULL) * @throws EioException * */ -function eio_lstat(string $path, int $pri, callable $callback, $data = NULL) +function eio_lstat(string $path, int $pri, callable $callback, $data = null) { error_clear_last(); $result = \eio_lstat($path, $pri, $callback, $data); @@ -900,7 +900,7 @@ function eio_lstat(string $path, int $pri, callable $callback, $data = NULL) * @throws EioException * */ -function eio_mkdir(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_mkdir(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_mkdir($path, $mode, $pri, $callback, $data); @@ -965,7 +965,7 @@ function eio_mkdir(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, callable * @throws EioException * */ -function eio_mknod(string $path, int $mode, int $dev, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_mknod(string $path, int $mode, int $dev, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_mknod($path, $mode, $dev, $pri, $callback, $data); @@ -1013,7 +1013,7 @@ function eio_mknod(string $path, int $mode, int $dev, int $pri = EIO_PRI_DEFAULT * @throws EioException * */ -function eio_nop(int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_nop(int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_nop($pri, $callback, $data); @@ -1064,7 +1064,7 @@ function eio_nop(int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = * @throws EioException * */ -function eio_readahead( $fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_readahead($fd, $offset, $length, $pri, $callback, $data); @@ -1368,7 +1368,7 @@ function eio_readahead( $fd, int $offset, int $length, int $pri = EIO_PRI_DEFAUL * @throws EioException * */ -function eio_readdir(string $path, int $flags, int $pri, callable $callback, string $data = NULL) +function eio_readdir(string $path, int $flags, int $pri, callable $callback, string $data = null) { error_clear_last(); $result = \eio_readdir($path, $flags, $pri, $callback, $data); @@ -1416,7 +1416,7 @@ function eio_readdir(string $path, int $flags, int $pri, callable $callback, str * @throws EioException * */ -function eio_readlink(string $path, int $pri, callable $callback, string $data = NULL) +function eio_readlink(string $path, int $pri, callable $callback, string $data = null) { error_clear_last(); $result = \eio_readlink($path, $pri, $callback, $data); @@ -1465,7 +1465,7 @@ function eio_readlink(string $path, int $pri, callable $callback, string $data = * @throws EioException * */ -function eio_rename(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_rename(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_rename($path, $new_path, $pri, $callback, $data); @@ -1513,7 +1513,7 @@ function eio_rename(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, * @throws EioException * */ -function eio_rmdir(string $path, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_rmdir(string $path, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_rmdir($path, $pri, $callback, $data); @@ -1569,7 +1569,7 @@ function eio_rmdir(string $path, int $pri = EIO_PRI_DEFAULT, callable $callback * @throws EioException * */ -function eio_seek( $fd, int $offset, int $whence, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_seek($fd, int $offset, int $whence, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_seek($fd, $offset, $whence, $pri, $callback, $data); @@ -1621,7 +1621,7 @@ function eio_seek( $fd, int $offset, int $whence, int $pri = EIO_PRI_DEFAULT, ca * @throws EioException * */ -function eio_sendfile( $out_fd, $in_fd, int $offset, int $length, int $pri = null, callable $callback = null, string $data = null) +function eio_sendfile($out_fd, $in_fd, int $offset, int $length, int $pri = null, callable $callback = null, string $data = null) { error_clear_last(); if ($data !== null) { @@ -1630,7 +1630,7 @@ function eio_sendfile( $out_fd, $in_fd, int $offset, int $length, int $pri = nu $result = \eio_sendfile($out_fd, $in_fd, $offset, $length, $pri, $callback); } elseif ($pri !== null) { $result = \eio_sendfile($out_fd, $in_fd, $offset, $length, $pri); - }else { + } else { $result = \eio_sendfile($out_fd, $in_fd, $offset, $length); } if ($result === false) { @@ -1679,7 +1679,7 @@ function eio_sendfile( $out_fd, $in_fd, int $offset, int $length, int $pri = nu * @throws EioException * */ -function eio_stat(string $path, int $pri, callable $callback, $data = NULL) +function eio_stat(string $path, int $pri, callable $callback, $data = null) { error_clear_last(); $result = \eio_stat($path, $pri, $callback, $data); @@ -1730,12 +1730,12 @@ function eio_stat(string $path, int $pri, callable $callback, $data = NULL) * @throws EioException * */ -function eio_statvfs(string $path, int $pri, callable $callback, $data = null) +function eio_statvfs(string $path, int $pri, callable $callback, $data = null) { error_clear_last(); if ($data !== null) { $result = \eio_statvfs($path, $pri, $callback, $data); - }else { + } else { $result = \eio_statvfs($path, $pri, $callback); } if ($result === false) { @@ -1784,7 +1784,7 @@ function eio_statvfs(string $path, int $pri, callable $callback, $data = null) * @throws EioException * */ -function eio_symlink(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_symlink(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_symlink($path, $new_path, $pri, $callback, $data); @@ -1843,7 +1843,7 @@ function eio_symlink(string $path, string $new_path, int $pri = EIO_PRI_DEFAULT, * @throws EioException * */ -function eio_sync_file_range( $fd, int $offset, int $nbytes, int $flags, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_sync_file_range($fd, int $offset, int $nbytes, int $flags, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_sync_file_range($fd, $offset, $nbytes, $flags, $pri, $callback, $data); @@ -1864,7 +1864,7 @@ function eio_sync_file_range( $fd, int $offset, int $nbytes, int $flags, int $pr * @throws EioException * */ -function eio_sync(int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_sync(int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_sync($pri, $callback, $data); @@ -1912,7 +1912,7 @@ function eio_sync(int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data * @throws EioException * */ -function eio_syncfs( $fd, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_syncfs($fd, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_syncfs($fd, $pri, $callback, $data); @@ -1962,7 +1962,7 @@ function eio_syncfs( $fd, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, * @throws EioException * */ -function eio_truncate(string $path, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_truncate(string $path, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_truncate($path, $offset, $pri, $callback, $data); @@ -2010,7 +2010,7 @@ function eio_truncate(string $path, int $offset = 0, int $pri = EIO_PRI_DEFAULT, * @throws EioException * */ -function eio_unlink(string $path, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_unlink(string $path, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_unlink($path, $pri, $callback, $data); @@ -2060,7 +2060,7 @@ function eio_unlink(string $path, int $pri = EIO_PRI_DEFAULT, callable $callback * @throws EioException * */ -function eio_utime(string $path, float $atime, float $mtime, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_utime(string $path, float $atime, float $mtime, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_utime($path, $atime, $mtime, $pri, $callback, $data); @@ -2113,7 +2113,7 @@ function eio_utime(string $path, float $atime, float $mtime, int $pri = EIO_PRI_ * @throws EioException * */ -function eio_write( $fd, string $str, int $length = 0, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, $data = NULL) +function eio_write($fd, string $str, int $length = 0, int $offset = 0, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null) { error_clear_last(); $result = \eio_write($fd, $str, $length, $offset, $pri, $callback, $data); @@ -2122,4 +2122,3 @@ function eio_write( $fd, string $str, int $length = 0, int $offset = 0, int $pri } return $result; } - diff --git a/generated/errorfunc.php b/generated/errorfunc.php index 8998954c..ac64a7d8 100644 --- a/generated/errorfunc.php +++ b/generated/errorfunc.php @@ -73,11 +73,10 @@ function error_log(string $message, int $message_type = 0, string $destination = $result = \error_log($message, $message_type, $destination, $extra_headers); } elseif ($destination !== null) { $result = \error_log($message, $message_type, $destination); - }else { + } else { $result = \error_log($message, $message_type); } if ($result === false) { throw ErrorfuncException::createFromPhpError(); } } - diff --git a/generated/exec.php b/generated/exec.php index 8d80285d..24ad8f87 100644 --- a/generated/exec.php +++ b/generated/exec.php @@ -125,7 +125,7 @@ function exec(string $command, ?array &$output = null, ?int &$result_code = null * @throws ExecException * */ -function proc_get_status( $process): array +function proc_get_status($process): array { error_clear_last(); $result = \proc_get_status($process); @@ -216,4 +216,3 @@ function system(string $command, ?int &$result_code = null): string } return $result; } - diff --git a/generated/fileinfo.php b/generated/fileinfo.php index bb5c5104..237dd81e 100644 --- a/generated/fileinfo.php +++ b/generated/fileinfo.php @@ -11,7 +11,7 @@ * @throws FileinfoException * */ -function finfo_close( $finfo): void +function finfo_close($finfo): void { error_clear_last(); $result = \finfo_close($finfo); @@ -48,7 +48,7 @@ function finfo_open(int $flags = FILEINFO_NONE, string $magic_database = null) error_clear_last(); if ($magic_database !== null) { $result = \finfo_open($flags, $magic_database); - }else { + } else { $result = \finfo_open($flags); } if ($result === false) { @@ -68,7 +68,7 @@ function finfo_open(int $flags = FILEINFO_NONE, string $magic_database = null) * @throws FileinfoException * */ -function mime_content_type( $filename): string +function mime_content_type($filename): string { error_clear_last(); $result = \mime_content_type($filename); @@ -77,4 +77,3 @@ function mime_content_type( $filename): string } return $result; } - diff --git a/generated/filesystem.php b/generated/filesystem.php index 4f9ce517..2026d66a 100644 --- a/generated/filesystem.php +++ b/generated/filesystem.php @@ -16,7 +16,7 @@ * @throws FilesystemException * */ -function chgrp(string $filename, $group): void +function chgrp(string $filename, $group): void { error_clear_last(); $result = \chgrp($filename, $group); @@ -78,7 +78,7 @@ function chmod(string $filename, int $permissions): void * @throws FilesystemException * */ -function chown(string $filename, $user): void +function chown(string $filename, $user): void { error_clear_last(); $result = \chown($filename, $user); @@ -105,12 +105,12 @@ function chown(string $filename, $user): void * @throws FilesystemException * */ -function copy(string $source, string $dest, $context = null): void +function copy(string $source, string $dest, $context = null): void { error_clear_last(); if ($context !== null) { $result = \copy($source, $dest, $context); - }else { + } else { $result = \copy($source, $dest); } if ($result === false) { @@ -172,7 +172,7 @@ function disk_total_space(string $directory): float * @throws FilesystemException * */ -function fclose( $stream): void +function fclose($stream): void { error_clear_last(); $result = \fclose($stream); @@ -193,7 +193,7 @@ function fclose( $stream): void * @throws FilesystemException * */ -function fflush( $stream): void +function fflush($stream): void { error_clear_last(); $result = \fflush($stream); @@ -237,7 +237,7 @@ function fflush( $stream): void * @throws FilesystemException * */ -function file_get_contents(string $filename, bool $use_include_path = false, $context = null, int $offset = 0, int $length = null): string +function file_get_contents(string $filename, bool $use_include_path = false, $context = null, int $offset = 0, int $length = null): string { error_clear_last(); if ($length !== null) { @@ -246,7 +246,7 @@ function file_get_contents(string $filename, bool $use_include_path = false, $c $result = \file_get_contents($filename, $use_include_path, $context, $offset); } elseif ($context !== null) { $result = \file_get_contents($filename, $use_include_path, $context); - }else { + } else { $result = \file_get_contents($filename, $use_include_path); } if ($result === false) { @@ -330,12 +330,12 @@ function file_get_contents(string $filename, bool $use_include_path = false, $c * @throws FilesystemException * */ -function file_put_contents(string $filename, $data, int $flags = 0, $context = null): int +function file_put_contents(string $filename, $data, int $flags = 0, $context = null): int { error_clear_last(); if ($context !== null) { $result = \file_put_contents($filename, $data, $flags, $context); - }else { + } else { $result = \file_put_contents($filename, $data, $flags); } if ($result === false) { @@ -390,12 +390,12 @@ function file_put_contents(string $filename, $data, int $flags = 0, $context = * @throws FilesystemException * */ -function file(string $filename, int $flags = 0, $context = null): array +function file(string $filename, int $flags = 0, $context = null): array { error_clear_last(); if ($context !== null) { $result = \file($filename, $flags, $context); - }else { + } else { $result = \file($filename, $flags); } if ($result === false) { @@ -602,7 +602,7 @@ function filesize(string $filename): int * @throws FilesystemException * */ -function flock( $stream, int $operation, ?int &$would_block = null): void +function flock($stream, int $operation, ?int &$would_block = null): void { error_clear_last(); $result = \flock($stream, $operation, $would_block); @@ -810,12 +810,12 @@ function flock( $stream, int $operation, ?int &$would_block = null): void * @throws FilesystemException * */ -function fopen(string $filename, string $mode, bool $use_include_path = false, $context = null) +function fopen(string $filename, string $mode, bool $use_include_path = false, $context = null) { error_clear_last(); if ($context !== null) { $result = \fopen($filename, $mode, $use_include_path, $context); - }else { + } else { $result = \fopen($filename, $mode, $use_include_path); } if ($result === false) { @@ -846,7 +846,7 @@ function fopen(string $filename, string $mode, bool $use_include_path = false, * @throws FilesystemException * */ -function fputcsv( $handle, array $fields, string $separator = ",", string $enclosure = '"', string $escape_char = "\\"): int +function fputcsv($handle, array $fields, string $separator = ",", string $enclosure = '"', string $escape_char = "\\"): int { error_clear_last(); $result = \fputcsv($handle, $fields, $separator, $enclosure, $escape_char); @@ -896,7 +896,7 @@ function fputcsv( $handle, array $fields, string $separator = ",", string $enclo * @throws FilesystemException * */ -function fread( $stream, int $length): string +function fread($stream, int $length): string { error_clear_last(); $result = \fread($stream, $length); @@ -921,7 +921,7 @@ function fread( $stream, int $length): string * @throws FilesystemException * */ -function fstat( $stream): array +function fstat($stream): array { error_clear_last(); $result = \fstat($stream); @@ -949,7 +949,7 @@ function fstat( $stream): array * @throws FilesystemException * */ -function ftruncate( $stream, int $size): void +function ftruncate($stream, int $size): void { error_clear_last(); $result = \ftruncate($stream, $size); @@ -973,12 +973,12 @@ function ftruncate( $stream, int $size): void * @throws FilesystemException * */ -function fwrite( $handle, string $string, int $length = null): int +function fwrite($handle, string $string, int $length = null): int { error_clear_last(); if ($length !== null) { $result = \fwrite($handle, $string, $length); - }else { + } else { $result = \fwrite($handle, $string); } if ($result === false) { @@ -1102,7 +1102,7 @@ function glob(string $pattern, int $flags = 0): array * @throws FilesystemException * */ -function lchgrp(string $filename, $group): void +function lchgrp(string $filename, $group): void { error_clear_last(); $result = \lchgrp($filename, $group); @@ -1123,7 +1123,7 @@ function lchgrp(string $filename, $group): void * @throws FilesystemException * */ -function lchown(string $filename, $user): void +function lchown(string $filename, $user): void { error_clear_last(); $result = \lchown($filename, $user); @@ -1198,12 +1198,12 @@ function lstat(string $filename): array * @throws FilesystemException * */ -function mkdir(string $directory, int $permissions = 0777, bool $recursive = false, $context = null): void +function mkdir(string $directory, int $permissions = 0777, bool $recursive = false, $context = null): void { error_clear_last(); if ($context !== null) { $result = \mkdir($directory, $permissions, $recursive, $context); - }else { + } else { $result = \mkdir($directory, $permissions, $recursive); } if ($result === false) { @@ -1300,12 +1300,12 @@ function parse_ini_string(string $ini_string, bool $process_sections = false, in * @throws FilesystemException * */ -function readfile(string $filename, bool $use_include_path = false, $context = null): int +function readfile(string $filename, bool $use_include_path = false, $context = null): int { error_clear_last(); if ($context !== null) { $result = \readfile($filename, $use_include_path, $context); - }else { + } else { $result = \readfile($filename, $use_include_path); } if ($result === false) { @@ -1394,12 +1394,12 @@ function realpath(string $path): string * @throws FilesystemException * */ -function rename(string $oldname, string $newname, $context = null): void +function rename(string $oldname, string $newname, $context = null): void { error_clear_last(); if ($context !== null) { $result = \rename($oldname, $newname, $context); - }else { + } else { $result = \rename($oldname, $newname); } if ($result === false) { @@ -1417,7 +1417,7 @@ function rename(string $oldname, string $newname, $context = null): void * @throws FilesystemException * */ -function rewind( $stream): void +function rewind($stream): void { error_clear_last(); $result = \rewind($stream); @@ -1437,12 +1437,12 @@ function rewind( $stream): void * @throws FilesystemException * */ -function rmdir(string $directory, $context = null): void +function rmdir(string $directory, $context = null): void { error_clear_last(); if ($context !== null) { $result = \rmdir($directory, $context); - }else { + } else { $result = \rmdir($directory); } if ($result === false) { @@ -1545,7 +1545,7 @@ function touch(string $filename, int $time = null, int $atime = null): void $result = \touch($filename, $time, $atime); } elseif ($time !== null) { $result = \touch($filename, $time); - }else { + } else { $result = \touch($filename); } if ($result === false) { @@ -1564,16 +1564,15 @@ function touch(string $filename, int $time = null, int $atime = null): void * @throws FilesystemException * */ -function unlink(string $filename, $context = null): void +function unlink(string $filename, $context = null): void { error_clear_last(); if ($context !== null) { $result = \unlink($filename, $context); - }else { + } else { $result = \unlink($filename); } if ($result === false) { throw FilesystemException::createFromPhpError(); } } - diff --git a/generated/filter.php b/generated/filter.php index cd9d843b..aba02b4d 100644 --- a/generated/filter.php +++ b/generated/filter.php @@ -36,7 +36,7 @@ * @throws FilterException * */ -function filter_input_array(int $type, $options = FILTER_DEFAULT, bool $add_empty = true): ?array +function filter_input_array(int $type, $options = FILTER_DEFAULT, bool $add_empty = true): ?array { error_clear_last(); $result = \filter_input_array($type, $options, $add_empty); @@ -70,7 +70,7 @@ function filter_input_array(int $type, $options = FILTER_DEFAULT, bool $add_emp * @throws FilterException * */ -function filter_var_array(array $array, $options = FILTER_DEFAULT, bool $add_empty = true): ?array +function filter_var_array(array $array, $options = FILTER_DEFAULT, bool $add_empty = true): ?array { error_clear_last(); $result = \filter_var_array($array, $options, $add_empty); @@ -79,4 +79,3 @@ function filter_var_array(array $array, $options = FILTER_DEFAULT, bool $add_em } return $result; } - diff --git a/generated/fpm.php b/generated/fpm.php index 57daf526..08b39410 100644 --- a/generated/fpm.php +++ b/generated/fpm.php @@ -20,4 +20,3 @@ function fastcgi_finish_request(): void throw FpmException::createFromPhpError(); } } - diff --git a/generated/ftp.php b/generated/ftp.php index 8fbe26ee..a36e853a 100644 --- a/generated/ftp.php +++ b/generated/ftp.php @@ -15,7 +15,7 @@ * @throws FtpException * */ -function ftp_alloc( $ftp, int $size, ?string &$response = null): void +function ftp_alloc($ftp, int $size, ?string &$response = null): void { error_clear_last(); $result = \ftp_alloc($ftp, $size, $response); @@ -35,7 +35,7 @@ function ftp_alloc( $ftp, int $size, ?string &$response = null): void * @throws FtpException * */ -function ftp_append( $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY): void +function ftp_append($ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY): void { error_clear_last(); $result = \ftp_append($ftp, $remote_filename, $local_filename, $mode); @@ -52,7 +52,7 @@ function ftp_append( $ftp, string $remote_filename, string $local_filename, int * @throws FtpException * */ -function ftp_cdup( $ftp): void +function ftp_cdup($ftp): void { error_clear_last(); $result = \ftp_cdup($ftp); @@ -70,7 +70,7 @@ function ftp_cdup( $ftp): void * @throws FtpException * */ -function ftp_chdir( $ftp, string $directory): void +function ftp_chdir($ftp, string $directory): void { error_clear_last(); $result = \ftp_chdir($ftp, $directory); @@ -91,7 +91,7 @@ function ftp_chdir( $ftp, string $directory): void * @throws FtpException * */ -function ftp_chmod( $ftp, int $permissions, string $filename): int +function ftp_chmod($ftp, int $permissions, string $filename): int { error_clear_last(); $result = \ftp_chmod($ftp, $permissions, $filename); @@ -110,7 +110,7 @@ function ftp_chmod( $ftp, int $permissions, string $filename): int * @throws FtpException * */ -function ftp_close( $ftp): void +function ftp_close($ftp): void { error_clear_last(); $result = \ftp_close($ftp); @@ -156,7 +156,7 @@ function ftp_connect(string $hostname, int $port = 21, int $timeout = 90) * @throws FtpException * */ -function ftp_delete( $ftp, string $filename): void +function ftp_delete($ftp, string $filename): void { error_clear_last(); $result = \ftp_delete($ftp, $filename); @@ -179,7 +179,7 @@ function ftp_delete( $ftp, string $filename): void * @throws FtpException * */ -function ftp_fget( $ftp, $stream, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): void +function ftp_fget($ftp, $stream, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): void { error_clear_last(); $result = \ftp_fget($ftp, $stream, $remote_filename, $mode, $offset); @@ -202,7 +202,7 @@ function ftp_fget( $ftp, $stream, string $remote_filename, int $mode = FTP_BINA * @throws FtpException * */ -function ftp_fput( $ftp, string $remote_filename, $stream, int $mode = FTP_BINARY, int $offset = 0): void +function ftp_fput($ftp, string $remote_filename, $stream, int $mode = FTP_BINARY, int $offset = 0): void { error_clear_last(); $result = \ftp_fput($ftp, $remote_filename, $stream, $mode, $offset); @@ -225,7 +225,7 @@ function ftp_fput( $ftp, string $remote_filename, $stream, int $mode = FTP_BINA * @throws FtpException * */ -function ftp_get( $ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): void +function ftp_get($ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): void { error_clear_last(); $result = \ftp_get($ftp, $local_filename, $remote_filename, $mode, $offset); @@ -244,7 +244,7 @@ function ftp_get( $ftp, string $local_filename, string $remote_filename, int $mo * @throws FtpException * */ -function ftp_login( $ftp, string $username, string $password): void +function ftp_login($ftp, string $username, string $password): void { error_clear_last(); $result = \ftp_login($ftp, $username, $password); @@ -263,7 +263,7 @@ function ftp_login( $ftp, string $username, string $password): void * @throws FtpException * */ -function ftp_mkdir( $ftp, string $directory): string +function ftp_mkdir($ftp, string $directory): string { error_clear_last(); $result = \ftp_mkdir($ftp, $directory); @@ -283,7 +283,7 @@ function ftp_mkdir( $ftp, string $directory): string * @throws FtpException * */ -function ftp_mlsd( $ftp, string $directory): array +function ftp_mlsd($ftp, string $directory): array { error_clear_last(); $result = \ftp_mlsd($ftp, $directory); @@ -312,7 +312,7 @@ function ftp_mlsd( $ftp, string $directory): array * @throws FtpException * */ -function ftp_nb_put( $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $offset = 0): int +function ftp_nb_put($ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $offset = 0): int { error_clear_last(); $result = \ftp_nb_put($ftp, $remote_filename, $local_filename, $mode, $offset); @@ -335,7 +335,7 @@ function ftp_nb_put( $ftp, string $remote_filename, string $local_filename, int * @throws FtpException * */ -function ftp_nlist( $ftp, string $directory): array +function ftp_nlist($ftp, string $directory): array { error_clear_last(); $result = \ftp_nlist($ftp, $directory); @@ -360,7 +360,7 @@ function ftp_nlist( $ftp, string $directory): array * @throws FtpException * */ -function ftp_pasv( $ftp, bool $enable): void +function ftp_pasv($ftp, bool $enable): void { error_clear_last(); $result = \ftp_pasv($ftp, $enable); @@ -382,7 +382,7 @@ function ftp_pasv( $ftp, bool $enable): void * @throws FtpException * */ -function ftp_put( $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $offset = 0): void +function ftp_put($ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $offset = 0): void { error_clear_last(); $result = \ftp_put($ftp, $remote_filename, $local_filename, $mode, $offset); @@ -400,7 +400,7 @@ function ftp_put( $ftp, string $remote_filename, string $local_filename, int $mo * @throws FtpException * */ -function ftp_pwd( $ftp): string +function ftp_pwd($ftp): string { error_clear_last(); $result = \ftp_pwd($ftp); @@ -421,7 +421,7 @@ function ftp_pwd( $ftp): string * @throws FtpException * */ -function ftp_rename( $ftp, string $from, string $to): void +function ftp_rename($ftp, string $from, string $to): void { error_clear_last(); $result = \ftp_rename($ftp, $from, $to); @@ -440,7 +440,7 @@ function ftp_rename( $ftp, string $from, string $to): void * @throws FtpException * */ -function ftp_rmdir( $ftp, string $directory): void +function ftp_rmdir($ftp, string $directory): void { error_clear_last(); $result = \ftp_rmdir($ftp, $directory); @@ -464,7 +464,7 @@ function ftp_rmdir( $ftp, string $directory): void * @throws FtpException * */ -function ftp_site( $ftp, string $command): void +function ftp_site($ftp, string $command): void { error_clear_last(); $result = \ftp_site($ftp, $command); @@ -514,7 +514,7 @@ function ftp_ssl_connect(string $hostname, int $port = 21, int $timeout = 90) * @throws FtpException * */ -function ftp_systype( $ftp): string +function ftp_systype($ftp): string { error_clear_last(); $result = \ftp_systype($ftp); @@ -523,4 +523,3 @@ function ftp_systype( $ftp): string } return $result; } - diff --git a/generated/funchand.php b/generated/funchand.php index a31c4a49..33ba809e 100644 --- a/generated/funchand.php +++ b/generated/funchand.php @@ -33,16 +33,15 @@ function create_function(string $args, string $code): string * @throws FunchandException * */ -function register_tick_function(callable $callback, ...$args): void +function register_tick_function(callable $callback, ...$args): void { error_clear_last(); if ($args !== []) { $result = \register_tick_function($callback, ...$args); - }else { + } else { $result = \register_tick_function($callback); } if ($result === false) { throw FunchandException::createFromPhpError(); } } - diff --git a/generated/gettext.php b/generated/gettext.php index 2d259a95..f7816e38 100644 --- a/generated/gettext.php +++ b/generated/gettext.php @@ -25,4 +25,3 @@ function bindtextdomain(string $domain, string $directory): string } return $result; } - diff --git a/generated/gmp.php b/generated/gmp.php index fab3494b..ccdb80c5 100644 --- a/generated/gmp.php +++ b/generated/gmp.php @@ -13,7 +13,7 @@ * @throws GmpException * */ -function gmp_binomial( $n, int $k): \GMP +function gmp_binomial($n, int $k): \GMP { error_clear_last(); $result = \gmp_binomial($n, $k); @@ -34,7 +34,7 @@ function gmp_binomial( $n, int $k): \GMP * @throws GmpException * */ -function gmp_export( $num, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string +function gmp_export($num, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string { error_clear_last(); $result = \gmp_export($num, $word_size, $flags); @@ -77,7 +77,7 @@ function gmp_import(string $data, int $word_size = 1, int $flags = GMP_MSW_FIRST * @throws GmpException * */ -function gmp_random_seed( $seed): void +function gmp_random_seed($seed): void { error_clear_last(); $result = \gmp_random_seed($seed); @@ -85,4 +85,3 @@ function gmp_random_seed( $seed): void throw GmpException::createFromPhpError(); } } - diff --git a/generated/gnupg.php b/generated/gnupg.php index f44370b1..b5d85ca3 100644 --- a/generated/gnupg.php +++ b/generated/gnupg.php @@ -14,7 +14,7 @@ * @throws GnupgException * */ -function gnupg_adddecryptkey( $identifier, string $fingerprint, string $passphrase): void +function gnupg_adddecryptkey($identifier, string $fingerprint, string $passphrase): void { error_clear_last(); $result = \gnupg_adddecryptkey($identifier, $fingerprint, $passphrase); @@ -33,7 +33,7 @@ function gnupg_adddecryptkey( $identifier, string $fingerprint, string $passphra * @throws GnupgException * */ -function gnupg_addencryptkey( $identifier, string $fingerprint): void +function gnupg_addencryptkey($identifier, string $fingerprint): void { error_clear_last(); $result = \gnupg_addencryptkey($identifier, $fingerprint); @@ -53,12 +53,12 @@ function gnupg_addencryptkey( $identifier, string $fingerprint): void * @throws GnupgException * */ -function gnupg_addsignkey( $identifier, string $fingerprint, string $passphrase = null): void +function gnupg_addsignkey($identifier, string $fingerprint, string $passphrase = null): void { error_clear_last(); if ($passphrase !== null) { $result = \gnupg_addsignkey($identifier, $fingerprint, $passphrase); - }else { + } else { $result = \gnupg_addsignkey($identifier, $fingerprint); } if ($result === false) { @@ -75,7 +75,7 @@ function gnupg_addsignkey( $identifier, string $fingerprint, string $passphrase * @throws GnupgException * */ -function gnupg_cleardecryptkeys( $identifier): void +function gnupg_cleardecryptkeys($identifier): void { error_clear_last(); $result = \gnupg_cleardecryptkeys($identifier); @@ -93,7 +93,7 @@ function gnupg_cleardecryptkeys( $identifier): void * @throws GnupgException * */ -function gnupg_clearencryptkeys( $identifier): void +function gnupg_clearencryptkeys($identifier): void { error_clear_last(); $result = \gnupg_clearencryptkeys($identifier); @@ -111,7 +111,7 @@ function gnupg_clearencryptkeys( $identifier): void * @throws GnupgException * */ -function gnupg_clearsignkeys( $identifier): void +function gnupg_clearsignkeys($identifier): void { error_clear_last(); $result = \gnupg_clearsignkeys($identifier); @@ -132,7 +132,7 @@ function gnupg_clearsignkeys( $identifier): void * @throws GnupgException * */ -function gnupg_setarmor( $identifier, int $armor): void +function gnupg_setarmor($identifier, int $armor): void { error_clear_last(); $result = \gnupg_setarmor($identifier, $armor); @@ -158,7 +158,7 @@ function gnupg_setarmor( $identifier, int $armor): void * @throws GnupgException * */ -function gnupg_setsignmode( $identifier, int $signmode): void +function gnupg_setsignmode($identifier, int $signmode): void { error_clear_last(); $result = \gnupg_setsignmode($identifier, $signmode); @@ -166,4 +166,3 @@ function gnupg_setsignmode( $identifier, int $signmode): void throw GnupgException::createFromPhpError(); } } - diff --git a/generated/hash.php b/generated/hash.php index 2057a95f..5acbc267 100644 --- a/generated/hash.php +++ b/generated/hash.php @@ -56,11 +56,10 @@ function hash_update_file(\HashContext $context, string $filename, ?\HashContext error_clear_last(); if ($stream_context !== null) { $result = \hash_update_file($context, $filename, $stream_context); - }else { + } else { $result = \hash_update_file($context, $filename); } if ($result === false) { throw HashException::createFromPhpError(); } } - diff --git a/generated/ibase.php b/generated/ibase.php index bfad48b5..7a619912 100644 --- a/generated/ibase.php +++ b/generated/ibase.php @@ -12,7 +12,7 @@ * @throws IbaseException * */ -function fbird_blob_cancel( $blob_handle): void +function fbird_blob_cancel($blob_handle): void { error_clear_last(); $result = \fbird_blob_cancel($blob_handle); @@ -34,7 +34,7 @@ function fbird_blob_cancel( $blob_handle): void * @throws IbaseException * */ -function ibase_add_user( $service_handle, string $user_name, string $password, string $first_name = null, string $middle_name = null, string $last_name = null): void +function ibase_add_user($service_handle, string $user_name, string $password, string $first_name = null, string $middle_name = null, string $last_name = null): void { error_clear_last(); if ($last_name !== null) { @@ -43,7 +43,7 @@ function ibase_add_user( $service_handle, string $user_name, string $password, s $result = \ibase_add_user($service_handle, $user_name, $password, $first_name, $middle_name); } elseif ($first_name !== null) { $result = \ibase_add_user($service_handle, $user_name, $password, $first_name); - }else { + } else { $result = \ibase_add_user($service_handle, $user_name, $password); } if ($result === false) { @@ -79,7 +79,7 @@ function ibase_add_user( $service_handle, string $user_name, string $password, s * @throws IbaseException * */ -function ibase_backup( $service_handle, string $source_db, string $dest_file, int $options = 0, bool $verbose = false) +function ibase_backup($service_handle, string $source_db, string $dest_file, int $options = 0, bool $verbose = false) { error_clear_last(); $result = \ibase_backup($service_handle, $source_db, $dest_file, $options, $verbose); @@ -98,7 +98,7 @@ function ibase_backup( $service_handle, string $source_db, string $dest_file, in * @throws IbaseException * */ -function ibase_blob_cancel( $blob_handle): void +function ibase_blob_cancel($blob_handle): void { error_clear_last(); $result = \ibase_blob_cancel($blob_handle); @@ -119,12 +119,12 @@ function ibase_blob_cancel( $blob_handle): void * @throws IbaseException * */ -function ibase_blob_create( $link_identifier = null) +function ibase_blob_create($link_identifier = null) { error_clear_last(); if ($link_identifier !== null) { $result = \ibase_blob_create($link_identifier); - }else { + } else { $result = \ibase_blob_create(); } if ($result === false) { @@ -144,7 +144,7 @@ function ibase_blob_create( $link_identifier = null) * @throws IbaseException * */ -function ibase_blob_get( $blob_handle, int $len): string +function ibase_blob_get($blob_handle, int $len): string { error_clear_last(); $result = \ibase_blob_get($blob_handle, $len); @@ -167,12 +167,12 @@ function ibase_blob_get( $blob_handle, int $len): string * @throws IbaseException * */ -function ibase_close( $connection_id = null): void +function ibase_close($connection_id = null): void { error_clear_last(); if ($connection_id !== null) { $result = \ibase_close($connection_id); - }else { + } else { $result = \ibase_close(); } if ($result === false) { @@ -194,12 +194,12 @@ function ibase_close( $connection_id = null): void * @throws IbaseException * */ -function ibase_commit_ret( $link_or_trans_identifier = null): void +function ibase_commit_ret($link_or_trans_identifier = null): void { error_clear_last(); if ($link_or_trans_identifier !== null) { $result = \ibase_commit_ret($link_or_trans_identifier); - }else { + } else { $result = \ibase_commit_ret(); } if ($result === false) { @@ -219,12 +219,12 @@ function ibase_commit_ret( $link_or_trans_identifier = null): void * @throws IbaseException * */ -function ibase_commit( $link_or_trans_identifier = null): void +function ibase_commit($link_or_trans_identifier = null): void { error_clear_last(); if ($link_or_trans_identifier !== null) { $result = \ibase_commit($link_or_trans_identifier); - }else { + } else { $result = \ibase_commit(); } if ($result === false) { @@ -285,7 +285,7 @@ function ibase_connect(string $database = null, string $username = null, string $result = \ibase_connect($database, $username); } elseif ($database !== null) { $result = \ibase_connect($database); - }else { + } else { $result = \ibase_connect(); } if ($result === false) { @@ -303,7 +303,7 @@ function ibase_connect(string $database = null, string $username = null, string * @throws IbaseException * */ -function ibase_delete_user( $service_handle, string $user_name): void +function ibase_delete_user($service_handle, string $user_name): void { error_clear_last(); $result = \ibase_delete_user($service_handle, $user_name); @@ -322,12 +322,12 @@ function ibase_delete_user( $service_handle, string $user_name): void * @throws IbaseException * */ -function ibase_drop_db( $connection = null): void +function ibase_drop_db($connection = null): void { error_clear_last(); if ($connection !== null) { $result = \ibase_drop_db($connection); - }else { + } else { $result = \ibase_drop_db(); } if ($result === false) { @@ -346,7 +346,7 @@ function ibase_drop_db( $connection = null): void * @throws IbaseException * */ -function ibase_free_event_handler( $event): void +function ibase_free_event_handler($event): void { error_clear_last(); $result = \ibase_free_event_handler($event); @@ -363,7 +363,7 @@ function ibase_free_event_handler( $event): void * @throws IbaseException * */ -function ibase_free_query( $query): void +function ibase_free_query($query): void { error_clear_last(); $result = \ibase_free_query($query); @@ -381,7 +381,7 @@ function ibase_free_query( $query): void * @throws IbaseException * */ -function ibase_free_result( $result_identifier): void +function ibase_free_result($result_identifier): void { error_clear_last(); $result = \ibase_free_result($result_identifier); @@ -401,7 +401,7 @@ function ibase_free_result( $result_identifier): void * @throws IbaseException * */ -function ibase_maintain_db( $service_handle, string $db, int $action, int $argument = 0): void +function ibase_maintain_db($service_handle, string $db, int $action, int $argument = 0): void { error_clear_last(); $result = \ibase_maintain_db($service_handle, $db, $action, $argument); @@ -423,7 +423,7 @@ function ibase_maintain_db( $service_handle, string $db, int $action, int $argum * @throws IbaseException * */ -function ibase_modify_user( $service_handle, string $user_name, string $password, string $first_name = null, string $middle_name = null, string $last_name = null): void +function ibase_modify_user($service_handle, string $user_name, string $password, string $first_name = null, string $middle_name = null, string $last_name = null): void { error_clear_last(); if ($last_name !== null) { @@ -432,7 +432,7 @@ function ibase_modify_user( $service_handle, string $user_name, string $password $result = \ibase_modify_user($service_handle, $user_name, $password, $first_name, $middle_name); } elseif ($first_name !== null) { $result = \ibase_modify_user($service_handle, $user_name, $password, $first_name); - }else { + } else { $result = \ibase_modify_user($service_handle, $user_name, $password); } if ($result === false) { @@ -450,7 +450,7 @@ function ibase_modify_user( $service_handle, string $user_name, string $password * @throws IbaseException * */ -function ibase_name_result( $result, string $name): void +function ibase_name_result($result, string $name): void { error_clear_last(); $result = \ibase_name_result($result, $name); @@ -519,7 +519,7 @@ function ibase_pconnect(string $database = null, string $username = null, string $result = \ibase_pconnect($database, $username); } elseif ($database !== null) { $result = \ibase_pconnect($database); - }else { + } else { $result = \ibase_pconnect(); } if ($result === false) { @@ -559,7 +559,7 @@ function ibase_pconnect(string $database = null, string $username = null, string * @throws IbaseException * */ -function ibase_restore( $service_handle, string $source_file, string $dest_db, int $options = 0, bool $verbose = false) +function ibase_restore($service_handle, string $source_file, string $dest_db, int $options = 0, bool $verbose = false) { error_clear_last(); $result = \ibase_restore($service_handle, $source_file, $dest_db, $options, $verbose); @@ -583,12 +583,12 @@ function ibase_restore( $service_handle, string $source_file, string $dest_db, i * @throws IbaseException * */ -function ibase_rollback_ret( $link_or_trans_identifier = null): void +function ibase_rollback_ret($link_or_trans_identifier = null): void { error_clear_last(); if ($link_or_trans_identifier !== null) { $result = \ibase_rollback_ret($link_or_trans_identifier); - }else { + } else { $result = \ibase_rollback_ret(); } if ($result === false) { @@ -608,12 +608,12 @@ function ibase_rollback_ret( $link_or_trans_identifier = null): void * @throws IbaseException * */ -function ibase_rollback( $link_or_trans_identifier = null): void +function ibase_rollback($link_or_trans_identifier = null): void { error_clear_last(); if ($link_or_trans_identifier !== null) { $result = \ibase_rollback($link_or_trans_identifier); - }else { + } else { $result = \ibase_rollback(); } if ($result === false) { @@ -651,7 +651,7 @@ function ibase_service_attach(string $host, string $dba_username, string $dba_pa * @throws IbaseException * */ -function ibase_service_detach( $service_handle): void +function ibase_service_detach($service_handle): void { error_clear_last(); $result = \ibase_service_detach($service_handle); @@ -659,4 +659,3 @@ function ibase_service_detach( $service_handle): void throw IbaseException::createFromPhpError(); } } - diff --git a/generated/ibmDb2.php b/generated/ibmDb2.php index 7036892c..f97e7b08 100644 --- a/generated/ibmDb2.php +++ b/generated/ibmDb2.php @@ -46,12 +46,12 @@ * @throws IbmDb2Exception * */ -function db2_autocommit( $connection, int $value = null) +function db2_autocommit($connection, int $value = null) { error_clear_last(); if ($value !== null) { $result = \db2_autocommit($connection, $value); - }else { + } else { $result = \db2_autocommit($connection); } if ($result === false) { @@ -96,7 +96,7 @@ function db2_autocommit( $connection, int $value = null) * @throws IbmDb2Exception * */ -function db2_bind_param( $stmt, int $parameter_number, string $variable_name, int $parameter_type = null, int $data_type = 0, int $precision = -1, int $scale = 0): void +function db2_bind_param($stmt, int $parameter_number, string $variable_name, int $parameter_type = null, int $data_type = 0, int $precision = -1, int $scale = 0): void { error_clear_last(); if ($scale !== 0) { @@ -107,7 +107,7 @@ function db2_bind_param( $stmt, int $parameter_number, string $variable_name, in $result = \db2_bind_param($stmt, $parameter_number, $variable_name, $parameter_type, $data_type); } elseif ($parameter_type !== null) { $result = \db2_bind_param($stmt, $parameter_number, $variable_name, $parameter_type); - }else { + } else { $result = \db2_bind_param($stmt, $parameter_number, $variable_name); } if ($result === false) { @@ -225,7 +225,7 @@ function db2_bind_param( $stmt, int $parameter_number, string $variable_name, in * @throws IbmDb2Exception * */ -function db2_client_info( $connection): object +function db2_client_info($connection): object { error_clear_last(); $result = \db2_client_info($connection); @@ -249,7 +249,7 @@ function db2_client_info( $connection): object * @throws IbmDb2Exception * */ -function db2_close( $connection): void +function db2_close($connection): void { error_clear_last(); $result = \db2_close($connection); @@ -270,7 +270,7 @@ function db2_close( $connection): void * @throws IbmDb2Exception * */ -function db2_commit( $connection): void +function db2_commit($connection): void { error_clear_last(); $result = \db2_commit($connection); @@ -304,12 +304,12 @@ function db2_commit( $connection): void * @throws IbmDb2Exception * */ -function db2_execute( $stmt, array $parameters = null): void +function db2_execute($stmt, array $parameters = null): void { error_clear_last(); if ($parameters !== null) { $result = \db2_execute($stmt, $parameters); - }else { + } else { $result = \db2_execute($stmt); } if ($result === false) { @@ -328,7 +328,7 @@ function db2_execute( $stmt, array $parameters = null): void * @throws IbmDb2Exception * */ -function db2_free_result( $stmt): void +function db2_free_result($stmt): void { error_clear_last(); $result = \db2_free_result($stmt); @@ -348,7 +348,7 @@ function db2_free_result( $stmt): void * @throws IbmDb2Exception * */ -function db2_free_stmt( $stmt): void +function db2_free_stmt($stmt): void { error_clear_last(); $result = \db2_free_stmt($stmt); @@ -508,7 +508,7 @@ function db2_free_stmt( $stmt): void * @throws IbmDb2Exception * */ -function db2_get_option( $resource, string $option): string +function db2_get_option($resource, string $option): string { error_clear_last(); $result = \db2_get_option($resource, $option); @@ -541,7 +541,7 @@ function db2_get_option( $resource, string $option): string * @throws IbmDb2Exception * */ -function db2_pclose( $resource): void +function db2_pclose($resource): void { error_clear_last(); $result = \db2_pclose($resource); @@ -562,7 +562,7 @@ function db2_pclose( $resource): void * @throws IbmDb2Exception * */ -function db2_rollback( $connection): void +function db2_rollback($connection): void { error_clear_last(); $result = \db2_rollback($connection); @@ -823,7 +823,7 @@ function db2_rollback( $connection): void * @throws IbmDb2Exception * */ -function db2_server_info( $connection): object +function db2_server_info($connection): object { error_clear_last(); $result = \db2_server_info($connection); @@ -1211,7 +1211,7 @@ function db2_server_info( $connection): object * @throws IbmDb2Exception * */ -function db2_set_option( $resource, array $options, int $type): void +function db2_set_option($resource, array $options, int $type): void { error_clear_last(); $result = \db2_set_option($resource, $options, $type); @@ -1219,4 +1219,3 @@ function db2_set_option( $resource, array $options, int $type): void throw IbmDb2Exception::createFromPhpError(); } } - diff --git a/generated/iconv.php b/generated/iconv.php index 03ab8b16..eda7faaf 100644 --- a/generated/iconv.php +++ b/generated/iconv.php @@ -94,4 +94,3 @@ function iconv(string $from_encoding, string $to_encoding, string $string): stri } return $result; } - diff --git a/generated/image.php b/generated/image.php index a23128d6..009cb36f 100644 --- a/generated/image.php +++ b/generated/image.php @@ -112,14 +112,14 @@ function image_type_to_extension(int $image_type, bool $include_dot = true): str * @throws ImageException * */ -function image2wbmp( $image, ?string $filename = null, int $foreground = null): void +function image2wbmp($image, ?string $filename = null, int $foreground = null): void { error_clear_last(); if ($foreground !== null) { $result = \image2wbmp($image, $filename, $foreground); } elseif ($filename !== null) { $result = \image2wbmp($image, $filename); - }else { + } else { $result = \image2wbmp($image); } if ($result === false) { @@ -139,12 +139,12 @@ function image2wbmp( $image, ?string $filename = null, int $foreground = null): * @throws ImageException * */ -function imageaffine( $image, array $affine, array $clip = null) +function imageaffine($image, array $affine, array $clip = null) { error_clear_last(); if ($clip !== null) { $result = \imageaffine($image, $affine, $clip); - }else { + } else { $result = \imageaffine($image, $affine); } if ($result === false) { @@ -196,7 +196,7 @@ function imageaffinematrixconcat(array $matrix1, array $matrix2): array * @throws ImageException * */ -function imageaffinematrixget(int $type, $options): array +function imageaffinematrixget(int $type, $options): array { error_clear_last(); $result = \imageaffinematrixget($type, $options); @@ -226,7 +226,7 @@ function imageaffinematrixget(int $type, $options): array * @throws ImageException * */ -function imagealphablending( $image, bool $enable): void +function imagealphablending($image, bool $enable): void { error_clear_last(); $result = \imagealphablending($image, $enable); @@ -254,7 +254,7 @@ function imagealphablending( $image, bool $enable): void * @throws ImageException * */ -function imageantialias( $image, bool $enable): void +function imageantialias($image, bool $enable): void { error_clear_last(); $result = \imageantialias($image, $enable); @@ -282,7 +282,7 @@ function imageantialias( $image, bool $enable): void * @throws ImageException * */ -function imagearc( $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color): void +function imagearc($image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color): void { error_clear_last(); $result = \imagearc($image, $center_x, $center_y, $width, $height, $start_angle, $end_angle, $color); @@ -305,14 +305,14 @@ function imagearc( $image, int $center_x, int $center_y, int $width, int $height * @throws ImageException * */ -function imagebmp( $image, $file = null, bool $compressed = true): void +function imagebmp($image, $file = null, bool $compressed = true): void { error_clear_last(); if ($compressed !== true) { $result = \imagebmp($image, $file, $compressed); } elseif ($file !== null) { $result = \imagebmp($image, $file); - }else { + } else { $result = \imagebmp($image); } if ($result === false) { @@ -340,7 +340,7 @@ function imagebmp( $image, $file = null, bool $compressed = true): void * @throws ImageException * */ -function imagechar( $image, int $font, int $x, int $y, string $char, int $color): void +function imagechar($image, int $font, int $x, int $y, string $char, int $color): void { error_clear_last(); $result = \imagechar($image, $font, $x, $y, $char, $color); @@ -366,7 +366,7 @@ function imagechar( $image, int $font, int $x, int $y, string $char, int $color) * @throws ImageException * */ -function imagecharup( $image, int $font, int $x, int $y, string $char, int $color): void +function imagecharup($image, int $font, int $x, int $y, string $char, int $color): void { error_clear_last(); $result = \imagecharup($image, $font, $x, $y, $char, $color); @@ -393,7 +393,7 @@ function imagecharup( $image, int $font, int $x, int $y, string $char, int $colo * @throws ImageException * */ -function imagecolorat( $image, int $x, int $y): int +function imagecolorat($image, int $x, int $y): int { error_clear_last(); $result = \imagecolorat($image, $x, $y); @@ -415,7 +415,7 @@ function imagecolorat( $image, int $x, int $y): int * @throws ImageException * */ -function imagecolordeallocate( $image, int $color): void +function imagecolordeallocate($image, int $color): void { error_clear_last(); $result = \imagecolordeallocate($image, $color); @@ -434,7 +434,7 @@ function imagecolordeallocate( $image, int $color): void * @throws ImageException * */ -function imagecolormatch( $image1, $image2): void +function imagecolormatch($image1, $image2): void { error_clear_last(); $result = \imagecolormatch($image1, $image2); @@ -460,7 +460,7 @@ function imagecolormatch( $image1, $image2): void * @throws ImageException * */ -function imagecolorset( $image, int $color, int $red, int $green, int $blue, int $alpha = 0): void +function imagecolorset($image, int $color, int $red, int $green, int $blue, int $alpha = 0): void { error_clear_last(); $result = \imagecolorset($image, $color, $red, $green, $blue, $alpha); @@ -481,7 +481,7 @@ function imagecolorset( $image, int $color, int $red, int $green, int $blue, int * @throws ImageException * */ -function imagecolorsforindex( $image, int $color): array +function imagecolorsforindex($image, int $color): array { error_clear_last(); $result = \imagecolorsforindex($image, $color); @@ -504,7 +504,7 @@ function imagecolorsforindex( $image, int $color): array * @throws ImageException * */ -function imageconvolution( $image, array $matrix, float $divisor, float $offset): void +function imageconvolution($image, array $matrix, float $divisor, float $offset): void { error_clear_last(); $result = \imageconvolution($image, $matrix, $divisor, $offset); @@ -534,7 +534,7 @@ function imageconvolution( $image, array $matrix, float $divisor, float $offset) * @throws ImageException * */ -function imagecopy( $dst_image, $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height): void +function imagecopy($dst_image, $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height): void { error_clear_last(); $result = \imagecopy($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $src_width, $src_height); @@ -570,7 +570,7 @@ function imagecopy( $dst_image, $src_image, int $dst_x, int $dst_y, int $src_x, * @throws ImageException * */ -function imagecopymerge( $dst_image, $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): void +function imagecopymerge($dst_image, $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): void { error_clear_last(); $result = \imagecopymerge($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $src_width, $src_height, $pct); @@ -610,7 +610,7 @@ function imagecopymerge( $dst_image, $src_image, int $dst_x, int $dst_y, int $s * @throws ImageException * */ -function imagecopymergegray( $dst_image, $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): void +function imagecopymergegray($dst_image, $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): void { error_clear_last(); $result = \imagecopymergegray($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $src_width, $src_height, $pct); @@ -655,7 +655,7 @@ function imagecopymergegray( $dst_image, $src_image, int $dst_x, int $dst_y, in * @throws ImageException * */ -function imagecopyresampled( $dst_image, $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): void +function imagecopyresampled($dst_image, $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): void { error_clear_last(); $result = \imagecopyresampled($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_width, $dst_height, $src_width, $src_height); @@ -700,7 +700,7 @@ function imagecopyresampled( $dst_image, $src_image, int $dst_x, int $dst_y, in * @throws ImageException * */ -function imagecopyresized( $dst_image, $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): void +function imagecopyresized($dst_image, $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): void { error_clear_last(); $result = \imagecopyresized($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_width, $dst_height, $src_width, $src_height); @@ -994,7 +994,7 @@ function imagecreatetruecolor(int $width, int $height) * @throws ImageException * */ -function imagecrop( $image, array $rectangle) +function imagecrop($image, array $rectangle) { error_clear_last(); $result = \imagecrop($image, $rectangle); @@ -1019,7 +1019,7 @@ function imagecrop( $image, array $rectangle) * @throws ImageException * */ -function imagecropauto( $image, int $mode = IMG_CROP_DEFAULT, float $threshold = 0.5, int $color = -1) +function imagecropauto($image, int $mode = IMG_CROP_DEFAULT, float $threshold = 0.5, int $color = -1) { error_clear_last(); $result = \imagecropauto($image, $mode, $threshold, $color); @@ -1045,7 +1045,7 @@ function imagecropauto( $image, int $mode = IMG_CROP_DEFAULT, float $threshold = * @throws ImageException * */ -function imagedashedline( $image, int $x1, int $y1, int $x2, int $y2, int $color): void +function imagedashedline($image, int $x1, int $y1, int $x2, int $y2, int $color): void { error_clear_last(); $result = \imagedashedline($image, $x1, $y1, $x2, $y2, $color); @@ -1064,7 +1064,7 @@ function imagedashedline( $image, int $x1, int $y1, int $x2, int $y2, int $color * @throws ImageException * */ -function imagedestroy( $image): void +function imagedestroy($image): void { error_clear_last(); $result = \imagedestroy($image); @@ -1087,7 +1087,7 @@ function imagedestroy( $image): void * @throws ImageException * */ -function imageellipse( $image, int $center_x, int $center_y, int $width, int $height, int $color): void +function imageellipse($image, int $center_x, int $center_y, int $width, int $height, int $color): void { error_clear_last(); $result = \imageellipse($image, $center_x, $center_y, $width, $height, $color); @@ -1110,7 +1110,7 @@ function imageellipse( $image, int $center_x, int $center_y, int $width, int $he * @throws ImageException * */ -function imagefill( $image, int $x, int $y, int $color): void +function imagefill($image, int $x, int $y, int $color): void { error_clear_last(); $result = \imagefill($image, $x, $y, $color); @@ -1154,7 +1154,7 @@ function imagefill( $image, int $x, int $y, int $color): void * @throws ImageException * */ -function imagefilledarc( $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color, int $style): void +function imagefilledarc($image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color, int $style): void { error_clear_last(); $result = \imagefilledarc($image, $center_x, $center_y, $width, $height, $start_angle, $end_angle, $color, $style); @@ -1178,7 +1178,7 @@ function imagefilledarc( $image, int $center_x, int $center_y, int $width, int $ * @throws ImageException * */ -function imagefilledellipse( $image, int $center_x, int $center_y, int $width, int $height, int $color): void +function imagefilledellipse($image, int $center_x, int $center_y, int $width, int $height, int $color): void { error_clear_last(); $result = \imagefilledellipse($image, $center_x, $center_y, $width, $height, $color); @@ -1203,7 +1203,7 @@ function imagefilledellipse( $image, int $center_x, int $center_y, int $width, i * @throws ImageException * */ -function imagefilledrectangle( $image, int $x1, int $y1, int $x2, int $y2, int $color): void +function imagefilledrectangle($image, int $x1, int $y1, int $x2, int $y2, int $color): void { error_clear_last(); $result = \imagefilledrectangle($image, $x1, $y1, $x2, $y2, $color); @@ -1229,7 +1229,7 @@ function imagefilledrectangle( $image, int $x1, int $y1, int $x2, int $y2, int $ * @throws ImageException * */ -function imagefilltoborder( $image, int $x, int $y, int $border_color, int $color): void +function imagefilltoborder($image, int $x, int $y, int $border_color, int $color): void { error_clear_last(); $result = \imagefilltoborder($image, $x, $y, $border_color, $color); @@ -1375,12 +1375,12 @@ function imagefilltoborder( $image, int $x, int $y, int $border_color, int $colo * @throws ImageException * */ -function imagefilter( $image, int $filter, int ...$args): void +function imagefilter($image, int $filter, int ...$args): void { error_clear_last(); if ($args !== []) { $result = \imagefilter($image, $filter, ...$args); - }else { + } else { $result = \imagefilter($image, $filter); } if ($result === false) { @@ -1430,7 +1430,7 @@ function imagefilter( $image, int $filter, int ...$args): void * @throws ImageException * */ -function imageflip( $image, int $mode): void +function imageflip($image, int $mode): void { error_clear_last(); $result = \imageflip($image, $mode); @@ -1636,7 +1636,7 @@ function imageftbbox(float $size, float $angle, string $font_filename, string $s * @throws ImageException * */ -function imagefttext( $image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options = []): array +function imagefttext($image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options = []): array { error_clear_last(); $result = \imagefttext($image, $size, $angle, $x, $y, $color, $font_filename, $text, $options); @@ -1658,7 +1658,7 @@ function imagefttext( $image, float $size, float $angle, int $x, int $y, int $co * @throws ImageException * */ -function imagegammacorrect( $image, float $input_gamma, float $output_gamma): void +function imagegammacorrect($image, float $input_gamma, float $output_gamma): void { error_clear_last(); $result = \imagegammacorrect($image, $input_gamma, $output_gamma); @@ -1677,12 +1677,12 @@ function imagegammacorrect( $image, float $input_gamma, float $output_gamma): vo * @throws ImageException * */ -function imagegd( $image, $file = null): void +function imagegd($image, $file = null): void { error_clear_last(); if ($file !== null) { $result = \imagegd($image, $file); - }else { + } else { $result = \imagegd($image); } if ($result === false) { @@ -1704,7 +1704,7 @@ function imagegd( $image, $file = null): void * @throws ImageException * */ -function imagegd2( $image, $file = null, int $chunk_size = 128, int $mode = IMG_GD2_RAW): void +function imagegd2($image, $file = null, int $chunk_size = 128, int $mode = IMG_GD2_RAW): void { error_clear_last(); if ($mode !== IMG_GD2_RAW) { @@ -1713,7 +1713,7 @@ function imagegd2( $image, $file = null, int $chunk_size = 128, int $mode = IMG $result = \imagegd2($image, $file, $chunk_size); } elseif ($file !== null) { $result = \imagegd2($image, $file); - }else { + } else { $result = \imagegd2($image); } if ($result === false) { @@ -1740,12 +1740,12 @@ function imagegd2( $image, $file = null, int $chunk_size = 128, int $mode = IMG * @throws ImageException * */ -function imagegif( $image, $file = null): void +function imagegif($image, $file = null): void { error_clear_last(); if ($file !== null) { $result = \imagegif($image, $file); - }else { + } else { $result = \imagegif($image); } if ($result === false) { @@ -1776,12 +1776,12 @@ function imagegrabscreen() * Grabs a window or its client area using a windows handle (HWND property in COM instance) * * @param int $handle The HWND window ID. - * @param int $client_area Include the client area of the application window. + * @param bool $client_area Include the client area of the application window. * @return resource Returns an image object on success, FALSE on failure. * @throws ImageException * */ -function imagegrabwindow(int $handle, int $client_area = false) +function imagegrabwindow(int $handle, bool $client_area = false) { error_clear_last(); $result = \imagegrabwindow($handle, $client_area); @@ -1805,14 +1805,14 @@ function imagegrabwindow(int $handle, int $client_area = false) * @throws ImageException * */ -function imagejpeg( $image, $file = null, int $quality = -1): void +function imagejpeg($image, $file = null, int $quality = -1): void { error_clear_last(); if ($quality !== -1) { $result = \imagejpeg($image, $file, $quality); } elseif ($file !== null) { $result = \imagejpeg($image, $file); - }else { + } else { $result = \imagejpeg($image); } if ($result === false) { @@ -1876,7 +1876,7 @@ function imagejpeg( $image, $file = null, int $quality = -1): void * @throws ImageException * */ -function imagelayereffect( $image, int $effect): void +function imagelayereffect($image, int $effect): void { error_clear_last(); $result = \imagelayereffect($image, $effect); @@ -1899,7 +1899,7 @@ function imagelayereffect( $image, int $effect): void * @throws ImageException * */ -function imageline( $image, int $x1, int $y1, int $x2, int $y2, int $color): void +function imageline($image, int $x1, int $y1, int $x2, int $y2, int $color): void { error_clear_last(); $result = \imageline($image, $x1, $y1, $x2, $y2, $color); @@ -1999,7 +1999,7 @@ function imageloadfont(string $filename): int * @throws ImageException * */ -function imagepng( $image, $file = null, int $quality = -1, int $filters = -1): void +function imagepng($image, $file = null, int $quality = -1, int $filters = -1): void { error_clear_last(); if ($filters !== -1) { @@ -2008,7 +2008,7 @@ function imagepng( $image, $file = null, int $quality = -1, int $filters = -1): $result = \imagepng($image, $file, $quality); } elseif ($file !== null) { $result = \imagepng($image, $file); - }else { + } else { $result = \imagepng($image); } if ($result === false) { @@ -2032,7 +2032,7 @@ function imagepng( $image, $file = null, int $quality = -1, int $filters = -1): * @throws ImageException * */ -function imagerectangle( $image, int $x1, int $y1, int $x2, int $y2, int $color): void +function imagerectangle($image, int $x1, int $y1, int $x2, int $y2, int $color): void { error_clear_last(); $result = \imagerectangle($image, $x1, $y1, $x2, $y2, $color); @@ -2067,14 +2067,14 @@ function imagerectangle( $image, int $x1, int $y1, int $x2, int $y2, int $color) * @throws ImageException * */ -function imageresolution( $image, int $resolution_x = null, int $resolution_y = null) +function imageresolution($image, int $resolution_x = null, int $resolution_y = null) { error_clear_last(); if ($resolution_y !== null) { $result = \imageresolution($image, $resolution_x, $resolution_y); } elseif ($resolution_x !== null) { $result = \imageresolution($image, $resolution_x); - }else { + } else { $result = \imageresolution($image); } if ($result === false) { @@ -2096,12 +2096,12 @@ function imageresolution( $image, int $resolution_x = null, int $resolution_y = * @param float $angle Rotation angle, in degrees. The rotation angle is interpreted as the * number of degrees to rotate the image anticlockwise. * @param int $background_color Specifies the color of the uncovered zone after the rotation - * @param int $ignore_transparent This parameter is unused. + * @param bool $ignore_transparent This parameter is unused. * @return resource Returns an image object for the rotated image. * @throws ImageException * */ -function imagerotate( $image, float $angle, int $background_color, int $ignore_transparent = false) +function imagerotate($image, float $angle, int $background_color, bool $ignore_transparent = false) { error_clear_last(); $result = \imagerotate($image, $angle, $background_color, $ignore_transparent); @@ -2126,7 +2126,7 @@ function imagerotate( $image, float $angle, int $background_color, int $ignore_t * @throws ImageException * */ -function imagesavealpha( $image, bool $enable): void +function imagesavealpha($image, bool $enable): void { error_clear_last(); $result = \imagesavealpha($image, $enable); @@ -2159,7 +2159,7 @@ function imagesavealpha( $image, bool $enable): void * @throws ImageException * */ -function imagescale( $image, int $width, int $height = -1, int $mode = IMG_BILINEAR_FIXED) +function imagescale($image, int $width, int $height = -1, int $mode = IMG_BILINEAR_FIXED) { error_clear_last(); $result = \imagescale($image, $width, $height, $mode); @@ -2183,7 +2183,7 @@ function imagescale( $image, int $width, int $height = -1, int $mode = IMG_BILIN * @throws ImageException * */ -function imagesetbrush( $image, $brush): void +function imagesetbrush($image, $brush): void { error_clear_last(); $result = \imagesetbrush($image, $brush); @@ -2206,7 +2206,7 @@ function imagesetbrush( $image, $brush): void * @throws ImageException * */ -function imagesetclip( $image, int $x1, int $y1, int $x2, int $y2): void +function imagesetclip($image, int $x1, int $y1, int $x2, int $y2): void { error_clear_last(); $result = \imagesetclip($image, $x1, $y1, $x2, $y2); @@ -2333,7 +2333,7 @@ function imagesetclip( $image, int $x1, int $y1, int $x2, int $y2): void * @throws ImageException * */ -function imagesetinterpolation( $image, int $method = IMG_BILINEAR_FIXED): void +function imagesetinterpolation($image, int $method = IMG_BILINEAR_FIXED): void { error_clear_last(); $result = \imagesetinterpolation($image, $method); @@ -2355,7 +2355,7 @@ function imagesetinterpolation( $image, int $method = IMG_BILINEAR_FIXED): void * @throws ImageException * */ -function imagesetpixel( $image, int $x, int $y, int $color): void +function imagesetpixel($image, int $x, int $y, int $color): void { error_clear_last(); $result = \imagesetpixel($image, $x, $y, $color); @@ -2381,7 +2381,7 @@ function imagesetpixel( $image, int $x, int $y, int $color): void * @throws ImageException * */ -function imagesetstyle( $image, array $style): void +function imagesetstyle($image, array $style): void { error_clear_last(); $result = \imagesetstyle($image, $style); @@ -2402,7 +2402,7 @@ function imagesetstyle( $image, array $style): void * @throws ImageException * */ -function imagesetthickness( $image, int $thickness): void +function imagesetthickness($image, int $thickness): void { error_clear_last(); $result = \imagesetthickness($image, $thickness); @@ -2429,7 +2429,7 @@ function imagesetthickness( $image, int $thickness): void * @throws ImageException * */ -function imagesettile( $image, $tile): void +function imagesettile($image, $tile): void { error_clear_last(); $result = \imagesettile($image, $tile); @@ -2454,7 +2454,7 @@ function imagesettile( $image, $tile): void * @throws ImageException * */ -function imagestring( $image, int $font, int $x, int $y, string $string, int $color): void +function imagestring($image, int $font, int $x, int $y, string $string, int $color): void { error_clear_last(); $result = \imagestring($image, $font, $x, $y, $string, $color); @@ -2480,7 +2480,7 @@ function imagestring( $image, int $font, int $x, int $y, string $string, int $co * @throws ImageException * */ -function imagestringup( $image, int $font, int $x, int $y, string $string, int $color): void +function imagestringup($image, int $font, int $x, int $y, string $string, int $color): void { error_clear_last(); $result = \imagestringup($image, $font, $x, $y, $string, $color); @@ -2499,7 +2499,7 @@ function imagestringup( $image, int $font, int $x, int $y, string $string, int $ * @throws ImageException * */ -function imagesx( $image): int +function imagesx($image): int { error_clear_last(); $result = \imagesx($image); @@ -2519,7 +2519,7 @@ function imagesx( $image): int * @throws ImageException * */ -function imagesy( $image): int +function imagesy($image): int { error_clear_last(); $result = \imagesy($image); @@ -2549,7 +2549,7 @@ function imagesy( $image): int * @throws ImageException * */ -function imagetruecolortopalette( $image, bool $dither, int $num_colors): void +function imagetruecolortopalette($image, bool $dither, int $num_colors): void { error_clear_last(); $result = \imagetruecolortopalette($image, $dither, $num_colors); @@ -2721,7 +2721,7 @@ function imagettfbbox(float $size, float $angle, string $font_filename, string $ * @throws ImageException * */ -function imagettftext( $image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options = []): array +function imagettftext($image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options = []): array { error_clear_last(); $result = \imagettftext($image, $size, $angle, $x, $y, $color, $font_filename, $text, $options); @@ -2745,14 +2745,14 @@ function imagettftext( $image, float $size, float $angle, int $x, int $y, int $c * @throws ImageException * */ -function imagewbmp( $image, $file = null, int $foreground_color = null): void +function imagewbmp($image, $file = null, int $foreground_color = null): void { error_clear_last(); if ($foreground_color !== null) { $result = \imagewbmp($image, $file, $foreground_color); } elseif ($file !== null) { $result = \imagewbmp($image, $file); - }else { + } else { $result = \imagewbmp($image); } if ($result === false) { @@ -2772,14 +2772,14 @@ function imagewbmp( $image, $file = null, int $foreground_color = null): void * @throws ImageException * */ -function imagewebp( $image, $file = null, int $quality = -1): void +function imagewebp($image, $file = null, int $quality = -1): void { error_clear_last(); if ($quality !== -1) { $result = \imagewebp($image, $file, $quality); } elseif ($file !== null) { $result = \imagewebp($image, $file); - }else { + } else { $result = \imagewebp($image); } if ($result === false) { @@ -2808,12 +2808,12 @@ function imagewebp( $image, $file = null, int $quality = -1): void * @throws ImageException * */ -function imagexbm( $image, $filename, int $foreground_color = null): void +function imagexbm($image, $filename, int $foreground_color = null): void { error_clear_last(); if ($foreground_color !== null) { $result = \imagexbm($image, $filename, $foreground_color); - }else { + } else { $result = \imagexbm($image, $filename); } if ($result === false) { @@ -2904,4 +2904,3 @@ function png2wbmp(string $pngname, string $wbmpname, int $dest_height, int $dest throw ImageException::createFromPhpError(); } } - diff --git a/generated/imap.php b/generated/imap.php index 46064719..bff3bb21 100644 --- a/generated/imap.php +++ b/generated/imap.php @@ -42,14 +42,14 @@ function imap_8bit(string $string): string * @throws ImapException * */ -function imap_append( $imap, string $folder, string $message, string $options = null, string $internal_date = null): void +function imap_append($imap, string $folder, string $message, string $options = null, string $internal_date = null): void { error_clear_last(); if ($internal_date !== null) { $result = \imap_append($imap, $folder, $message, $options, $internal_date); } elseif ($options !== null) { $result = \imap_append($imap, $folder, $message, $options); - }else { + } else { $result = \imap_append($imap, $folder, $message); } if ($result === false) { @@ -134,7 +134,7 @@ function imap_binary(string $string): string * @throws ImapException * */ -function imap_body( $imap, int $message_num, int $flags = 0): string +function imap_body($imap, int $message_num, int $flags = 0): string { error_clear_last(); $result = \imap_body($imap, $message_num, $flags); @@ -159,7 +159,7 @@ function imap_body( $imap, int $message_num, int $flags = 0): string * @throws ImapException * */ -function imap_bodystruct( $imap, int $message_num, string $section): \stdClass +function imap_bodystruct($imap, int $message_num, string $section): \stdClass { error_clear_last(); $result = \imap_bodystruct($imap, $message_num, $section); @@ -209,7 +209,7 @@ function imap_bodystruct( $imap, int $message_num, string $section): \stdClass * @throws ImapException * */ -function imap_check( $imap): \stdClass +function imap_check($imap): \stdClass { error_clear_last(); $result = \imap_check($imap); @@ -245,7 +245,7 @@ function imap_check( $imap): \stdClass * @throws ImapException * */ -function imap_clearflag_full( $imap, string $sequence, string $flag, int $options = 0): void +function imap_clearflag_full($imap, string $sequence, string $flag, int $options = 0): void { error_clear_last(); $result = \imap_clearflag_full($imap, $sequence, $flag, $options); @@ -267,7 +267,7 @@ function imap_clearflag_full( $imap, string $sequence, string $flag, int $option * @throws ImapException * */ -function imap_close( $imap, int $flags = 0): void +function imap_close($imap, int $flags = 0): void { error_clear_last(); $result = \imap_close($imap, $flags); @@ -288,7 +288,7 @@ function imap_close( $imap, int $flags = 0): void * @throws ImapException * */ -function imap_createmailbox( $imap, string $mailbox): void +function imap_createmailbox($imap, string $mailbox): void { error_clear_last(); $result = \imap_createmailbox($imap, $mailbox); @@ -308,7 +308,7 @@ function imap_createmailbox( $imap, string $mailbox): void * @throws ImapException * */ -function imap_deletemailbox( $imap, string $mailbox): void +function imap_deletemailbox($imap, string $mailbox): void { error_clear_last(); $result = \imap_deletemailbox($imap, $mailbox); @@ -425,7 +425,7 @@ function imap_deletemailbox( $imap, string $mailbox): void * @throws ImapException * */ -function imap_fetch_overview( $imap, string $sequence, int $flags = 0): array +function imap_fetch_overview($imap, string $sequence, int $flags = 0): array { error_clear_last(); $result = \imap_fetch_overview($imap, $sequence, $flags); @@ -470,7 +470,7 @@ function imap_fetch_overview( $imap, string $sequence, int $flags = 0): array * @throws ImapException * */ -function imap_fetchbody( $imap, int $message_num, string $section, int $flags = 0): string +function imap_fetchbody($imap, int $message_num, string $section, int $flags = 0): string { error_clear_last(); $result = \imap_fetchbody($imap, $message_num, $section, $flags); @@ -516,7 +516,7 @@ function imap_fetchbody( $imap, int $message_num, string $section, int $flags = * @throws ImapException * */ -function imap_fetchheader( $imap, int $message_num, int $flags = 0): string +function imap_fetchheader($imap, int $message_num, int $flags = 0): string { error_clear_last(); $result = \imap_fetchheader($imap, $message_num, $flags); @@ -560,7 +560,7 @@ function imap_fetchheader( $imap, int $message_num, int $flags = 0): string * @throws ImapException * */ -function imap_fetchmime( $imap, int $message_num, string $section, int $flags = 0): string +function imap_fetchmime($imap, int $message_num, string $section, int $flags = 0): string { error_clear_last(); $result = \imap_fetchmime($imap, $message_num, $section, $flags); @@ -708,7 +708,7 @@ function imap_fetchmime( $imap, int $message_num, string $section, int $flags = * @throws ImapException * */ -function imap_fetchstructure( $imap, int $message_num, int $flags = 0): \stdClass +function imap_fetchstructure($imap, int $message_num, int $flags = 0): \stdClass { error_clear_last(); $result = \imap_fetchstructure($imap, $message_num, $flags); @@ -732,7 +732,7 @@ function imap_fetchstructure( $imap, int $message_num, int $flags = 0): \stdClas * @throws ImapException * */ -function imap_gc( $imap, int $flags): void +function imap_gc($imap, int $flags): void { error_clear_last(); $result = \imap_gc($imap, $flags); @@ -753,7 +753,7 @@ function imap_gc( $imap, int $flags): void * @throws ImapException * */ -function imap_getacl( $imap, string $mailbox): array +function imap_getacl($imap, string $mailbox): array { error_clear_last(); $result = \imap_getacl($imap, $mailbox); @@ -840,7 +840,7 @@ function imap_getacl( $imap, string $mailbox): array * @throws ImapException * */ -function imap_getmailboxes( $imap, string $reference, string $pattern): array +function imap_getmailboxes($imap, string $reference, string $pattern): array { error_clear_last(); $result = \imap_getmailboxes($imap, $reference, $pattern); @@ -927,7 +927,7 @@ function imap_getmailboxes( $imap, string $reference, string $pattern): array * @throws ImapException * */ -function imap_getsubscribed( $imap, string $reference, string $pattern): array +function imap_getsubscribed($imap, string $reference, string $pattern): array { error_clear_last(); $result = \imap_getsubscribed($imap, $reference, $pattern); @@ -1153,7 +1153,7 @@ function imap_getsubscribed( $imap, string $reference, string $pattern): array * @throws ImapException * */ -function imap_headerinfo( $imap, int $message_num, int $from_length = 0, int $subject_length = 0): \stdClass +function imap_headerinfo($imap, int $message_num, int $from_length = 0, int $subject_length = 0): \stdClass { error_clear_last(); $result = \imap_headerinfo($imap, $message_num, $from_length, $subject_length); @@ -1175,7 +1175,7 @@ function imap_headerinfo( $imap, int $message_num, int $from_length = 0, int $su * @throws ImapException * */ -function imap_headers( $imap): array +function imap_headers($imap): array { error_clear_last(); $result = \imap_headers($imap); @@ -1218,7 +1218,7 @@ function imap_headers( $imap): array * @throws ImapException * */ -function imap_listscan( $imap, string $reference, string $pattern, string $content): array +function imap_listscan($imap, string $reference, string $pattern, string $content): array { error_clear_last(); $result = \imap_listscan($imap, $reference, $pattern, $content); @@ -1254,7 +1254,7 @@ function imap_listscan( $imap, string $reference, string $pattern, string $conte * @throws ImapException * */ -function imap_lsub( $imap, string $reference, string $pattern): array +function imap_lsub($imap, string $reference, string $pattern): array { error_clear_last(); $result = \imap_lsub($imap, $reference, $pattern); @@ -1410,7 +1410,7 @@ function imap_mail_compose(array $envelope, array $bodies): string * @throws ImapException * */ -function imap_mail_copy( $imap, string $message_nums, string $mailbox, int $flags = 0): void +function imap_mail_copy($imap, string $message_nums, string $mailbox, int $flags = 0): void { error_clear_last(); $result = \imap_mail_copy($imap, $message_nums, $mailbox, $flags); @@ -1441,7 +1441,7 @@ function imap_mail_copy( $imap, string $message_nums, string $mailbox, int $flag * @throws ImapException * */ -function imap_mail_move( $imap, string $message_nums, string $mailbox, int $flags = 0): void +function imap_mail_move($imap, string $message_nums, string $mailbox, int $flags = 0): void { error_clear_last(); $result = \imap_mail_move($imap, $message_nums, $mailbox, $flags); @@ -1482,7 +1482,7 @@ function imap_mail(string $to, string $subject, string $message, string $additio $result = \imap_mail($to, $subject, $message, $additional_headers, $cc); } elseif ($additional_headers !== null) { $result = \imap_mail($to, $subject, $message, $additional_headers); - }else { + } else { $result = \imap_mail($to, $subject, $message); } if ($result === false) { @@ -1544,7 +1544,7 @@ function imap_mail(string $to, string $subject, string $message, string $additio * @throws ImapException * */ -function imap_mailboxmsginfo( $imap): \stdClass +function imap_mailboxmsginfo($imap): \stdClass { error_clear_last(); $result = \imap_mailboxmsginfo($imap); @@ -1610,7 +1610,7 @@ function imap_mutf7_to_utf8(string $string): string * @throws ImapException * */ -function imap_num_msg( $imap): int +function imap_num_msg($imap): int { error_clear_last(); $result = \imap_num_msg($imap); @@ -1869,7 +1869,7 @@ function imap_qprint(string $string): string * @throws ImapException * */ -function imap_renamemailbox( $imap, string $from, string $to): void +function imap_renamemailbox($imap, string $from, string $to): void { error_clear_last(); $result = \imap_renamemailbox($imap, $from, $to); @@ -1934,7 +1934,7 @@ function imap_rfc822_write_address(?string $mailbox, ?string $hostname, ?string * @throws ImapException * */ -function imap_savebody( $imap, $file, int $message_num, string $section = "", int $flags = 0): void +function imap_savebody($imap, $file, int $message_num, string $section = "", int $flags = 0): void { error_clear_last(); $result = \imap_savebody($imap, $file, $message_num, $section, $flags); @@ -1955,7 +1955,7 @@ function imap_savebody( $imap, $file, int $message_num, string $section = "", i * @throws ImapException * */ -function imap_set_quota( $imap, string $quota_root, int $mailbox_size): void +function imap_set_quota($imap, string $quota_root, int $mailbox_size): void { error_clear_last(); $result = \imap_set_quota($imap, $quota_root, $mailbox_size); @@ -1978,7 +1978,7 @@ function imap_set_quota( $imap, string $quota_root, int $mailbox_size): void * @throws ImapException * */ -function imap_setacl( $imap, string $mailbox, string $user_id, string $rights): void +function imap_setacl($imap, string $mailbox, string $user_id, string $rights): void { error_clear_last(); $result = \imap_setacl($imap, $mailbox, $user_id, $rights); @@ -2014,7 +2014,7 @@ function imap_setacl( $imap, string $mailbox, string $user_id, string $rights): * @throws ImapException * */ -function imap_setflag_full( $imap, string $sequence, string $flag, int $options = 0): void +function imap_setflag_full($imap, string $sequence, string $flag, int $options = 0): void { error_clear_last(); $result = \imap_setflag_full($imap, $sequence, $flag, $options); @@ -2090,14 +2090,14 @@ function imap_setflag_full( $imap, string $sequence, string $flag, int $options * @throws ImapException * */ -function imap_sort( $imap, int $criteria, int $reverse, int $flags = 0, string $search_criteria = null, string $charset = null): array +function imap_sort($imap, int $criteria, int $reverse, int $flags = 0, string $search_criteria = null, string $charset = null): array { error_clear_last(); if ($charset !== null) { $result = \imap_sort($imap, $criteria, $reverse, $flags, $search_criteria, $charset); } elseif ($search_criteria !== null) { $result = \imap_sort($imap, $criteria, $reverse, $flags, $search_criteria); - }else { + } else { $result = \imap_sort($imap, $criteria, $reverse, $flags); } if ($result === false) { @@ -2163,7 +2163,7 @@ function imap_sort( $imap, int $criteria, int $reverse, int $flags = 0, string $ * @throws ImapException * */ -function imap_status( $imap, string $mailbox, int $flags): \stdClass +function imap_status($imap, string $mailbox, int $flags): \stdClass { error_clear_last(); $result = \imap_status($imap, $mailbox, $flags); @@ -2184,7 +2184,7 @@ function imap_status( $imap, string $mailbox, int $flags): \stdClass * @throws ImapException * */ -function imap_subscribe( $imap, string $mailbox): void +function imap_subscribe($imap, string $mailbox): void { error_clear_last(); $result = \imap_subscribe($imap, $mailbox); @@ -2219,7 +2219,7 @@ function imap_subscribe( $imap, string $mailbox): void * @throws ImapException * */ -function imap_thread( $imap, int $flags = SE_FREE): array +function imap_thread($imap, int $flags = SE_FREE): array { error_clear_last(); $result = \imap_thread($imap, $flags); @@ -2270,7 +2270,7 @@ function imap_timeout(int $timeout_type, int $timeout = -1) * @throws ImapException * */ -function imap_undelete( $imap, int $message_num, int $flags = 0): void +function imap_undelete($imap, int $message_num, int $flags = 0): void { error_clear_last(); $result = \imap_undelete($imap, $message_num, $flags); @@ -2290,7 +2290,7 @@ function imap_undelete( $imap, int $message_num, int $flags = 0): void * @throws ImapException * */ -function imap_unsubscribe( $imap, string $mailbox): void +function imap_unsubscribe($imap, string $mailbox): void { error_clear_last(); $result = \imap_unsubscribe($imap, $mailbox); @@ -2317,4 +2317,3 @@ function imap_utf8_to_mutf7(string $string): string } return $result; } - diff --git a/generated/info.php b/generated/info.php index c1023ce1..e2aa08a1 100644 --- a/generated/info.php +++ b/generated/info.php @@ -571,4 +571,3 @@ function set_time_limit(int $seconds): void throw InfoException::createFromPhpError(); } } - diff --git a/generated/inotify.php b/generated/inotify.php index b0d46624..2e070415 100644 --- a/generated/inotify.php +++ b/generated/inotify.php @@ -34,7 +34,7 @@ function inotify_init() * @throws InotifyException * */ -function inotify_rm_watch( $inotify_instance, int $watch_descriptor): void +function inotify_rm_watch($inotify_instance, int $watch_descriptor): void { error_clear_last(); $result = \inotify_rm_watch($inotify_instance, $watch_descriptor); @@ -42,4 +42,3 @@ function inotify_rm_watch( $inotify_instance, int $watch_descriptor): void throw InotifyException::createFromPhpError(); } } - diff --git a/generated/json.php b/generated/json.php index 28947b0b..76fc6c17 100644 --- a/generated/json.php +++ b/generated/json.php @@ -42,7 +42,7 @@ * @throws JsonException * */ -function json_encode( $value, int $flags = 0, int $depth = 512): string +function json_encode($value, int $flags = 0, int $depth = 512): string { error_clear_last(); $result = \json_encode($value, $flags, $depth); @@ -51,4 +51,3 @@ function json_encode( $value, int $flags = 0, int $depth = 512): string } return $result; } - diff --git a/generated/ldap.php b/generated/ldap.php index 289e3372..27bb8517 100644 --- a/generated/ldap.php +++ b/generated/ldap.php @@ -39,12 +39,12 @@ function ldap_8859_to_t61(string $value): string * @throws LdapException * */ -function ldap_add_ext( $ldap, string $dn, array $entry, array $controls = null) +function ldap_add_ext($ldap, string $dn, array $entry, array $controls = null) { error_clear_last(); if ($controls !== null) { $result = \ldap_add_ext($ldap, $dn, $entry, $controls); - }else { + } else { $result = \ldap_add_ext($ldap, $dn, $entry); } if ($result === false) { @@ -73,12 +73,12 @@ function ldap_add_ext( $ldap, string $dn, array $entry, array $controls = null) * @throws LdapException * */ -function ldap_add( $ldap, string $dn, array $entry, array $controls = null): void +function ldap_add($ldap, string $dn, array $entry, array $controls = null): void { error_clear_last(); if ($controls !== null) { $result = \ldap_add($ldap, $dn, $entry, $controls); - }else { + } else { $result = \ldap_add($ldap, $dn, $entry); } if ($result === false) { @@ -98,7 +98,7 @@ function ldap_add( $ldap, string $dn, array $entry, array $controls = null): voi * @throws LdapException * */ -function ldap_bind_ext( $ldap, ?string $dn = null, ?string $password = null, array $controls = null) +function ldap_bind_ext($ldap, ?string $dn = null, ?string $password = null, array $controls = null) { error_clear_last(); if ($controls !== null) { @@ -107,7 +107,7 @@ function ldap_bind_ext( $ldap, ?string $dn = null, ?string $password = null, arr $result = \ldap_bind_ext($ldap, $dn, $password); } elseif ($dn !== null) { $result = \ldap_bind_ext($ldap, $dn); - }else { + } else { $result = \ldap_bind_ext($ldap); } if ($result === false) { @@ -126,14 +126,14 @@ function ldap_bind_ext( $ldap, ?string $dn = null, ?string $password = null, arr * @throws LdapException * */ -function ldap_bind( $ldap, ?string $dn = null, ?string $password = null): void +function ldap_bind($ldap, ?string $dn = null, ?string $password = null): void { error_clear_last(); if ($password !== null) { $result = \ldap_bind($ldap, $dn, $password); } elseif ($dn !== null) { $result = \ldap_bind($ldap, $dn); - }else { + } else { $result = \ldap_bind($ldap); } if ($result === false) { @@ -152,7 +152,7 @@ function ldap_bind( $ldap, ?string $dn = null, ?string $password = null): void * @throws LdapException * */ -function ldap_control_paged_result_response( $link, $result, ?string &$cookie = null, ?int &$estimated = null): void +function ldap_control_paged_result_response($link, $result, ?string &$cookie = null, ?int &$estimated = null): void { error_clear_last(); $result = \ldap_control_paged_result_response($link, $result, $cookie, $estimated); @@ -175,7 +175,7 @@ function ldap_control_paged_result_response( $link, $result, ?string &$cookie = * @throws LdapException * */ -function ldap_control_paged_result( $link, int $pagesize, bool $iscritical = false, string $cookie = ""): void +function ldap_control_paged_result($link, int $pagesize, bool $iscritical = false, string $cookie = ""): void { error_clear_last(); $result = \ldap_control_paged_result($link, $pagesize, $iscritical, $cookie); @@ -195,7 +195,7 @@ function ldap_control_paged_result( $link, int $pagesize, bool $iscritical = fal * @throws LdapException * */ -function ldap_count_entries( $ldap, $result): int +function ldap_count_entries($ldap, $result): int { error_clear_last(); $result = \ldap_count_entries($ldap, $result); @@ -216,12 +216,12 @@ function ldap_count_entries( $ldap, $result): int * @throws LdapException * */ -function ldap_delete_ext( $ldap, string $dn, array $controls = null) +function ldap_delete_ext($ldap, string $dn, array $controls = null) { error_clear_last(); if ($controls !== null) { $result = \ldap_delete_ext($ldap, $dn, $controls); - }else { + } else { $result = \ldap_delete_ext($ldap, $dn); } if ($result === false) { @@ -240,12 +240,12 @@ function ldap_delete_ext( $ldap, string $dn, array $controls = null) * @throws LdapException * */ -function ldap_delete( $ldap, string $dn, array $controls = null): void +function ldap_delete($ldap, string $dn, array $controls = null): void { error_clear_last(); if ($controls !== null) { $result = \ldap_delete($ldap, $dn, $controls); - }else { + } else { $result = \ldap_delete($ldap, $dn); } if ($result === false) { @@ -289,7 +289,7 @@ function ldap_dn2ufn(string $dn): string * @throws LdapException * */ -function ldap_exop_passwd( $ldap, string $user = "", string $old_password = "", string $new_password = "", array &$controls = null) +function ldap_exop_passwd($ldap, string $user = "", string $old_password = "", string $new_password = "", array &$controls = null) { error_clear_last(); $result = \ldap_exop_passwd($ldap, $user, $old_password, $new_password, $controls); @@ -308,7 +308,7 @@ function ldap_exop_passwd( $ldap, string $user = "", string $old_password = "", * @throws LdapException * */ -function ldap_exop_whoami( $ldap) +function ldap_exop_whoami($ldap) { error_clear_last(); $result = \ldap_exop_whoami($ldap); @@ -337,7 +337,7 @@ function ldap_exop_whoami( $ldap) * @throws LdapException * */ -function ldap_exop( $link, string $reqoid, string $reqdata = null, ?array $serverctrls = null, ?string &$retdata = null, ?string &$retoid = null) +function ldap_exop($link, string $reqoid, string $reqdata = null, ?array $serverctrls = null, ?string &$retdata = null, ?string &$retoid = null) { error_clear_last(); if ($retoid !== null) { @@ -348,7 +348,7 @@ function ldap_exop( $link, string $reqoid, string $reqdata = null, ?array $serve $result = \ldap_exop($link, $reqoid, $reqdata, $serverctrls); } elseif ($reqdata !== null) { $result = \ldap_exop($link, $reqoid, $reqdata); - }else { + } else { $result = \ldap_exop($link, $reqoid); } if ($result === false) { @@ -400,7 +400,7 @@ function ldap_explode_dn(string $dn, int $with_attrib): array * @throws LdapException * */ -function ldap_first_attribute( $ldap, $entry): string +function ldap_first_attribute($ldap, $entry): string { error_clear_last(); $result = \ldap_first_attribute($ldap, $entry); @@ -426,7 +426,7 @@ function ldap_first_attribute( $ldap, $entry): string * @throws LdapException * */ -function ldap_first_entry( $ldap, $result) +function ldap_first_entry($ldap, $result) { error_clear_last(); $result = \ldap_first_entry($ldap, $result); @@ -450,7 +450,7 @@ function ldap_first_entry( $ldap, $result) * @throws LdapException * */ -function ldap_free_result( $result): void +function ldap_free_result($result): void { error_clear_last(); $result = \ldap_free_result($result); @@ -482,7 +482,7 @@ function ldap_free_result( $result): void * @throws LdapException * */ -function ldap_get_attributes( $ldap, $entry): array +function ldap_get_attributes($ldap, $entry): array { error_clear_last(); $result = \ldap_get_attributes($ldap, $entry); @@ -502,7 +502,7 @@ function ldap_get_attributes( $ldap, $entry): array * @throws LdapException * */ -function ldap_get_dn( $ldap, $entry): string +function ldap_get_dn($ldap, $entry): string { error_clear_last(); $result = \ldap_get_dn($ldap, $entry); @@ -534,7 +534,7 @@ function ldap_get_dn( $ldap, $entry): string * @throws LdapException * */ -function ldap_get_entries( $ldap, $result): array +function ldap_get_entries($ldap, $result): array { error_clear_last(); $result = \ldap_get_entries($ldap, $result); @@ -727,7 +727,7 @@ function ldap_get_entries( $ldap, $result): array * @throws LdapException * */ -function ldap_get_option( $ldap, int $option, &$value = null): void +function ldap_get_option($ldap, int $option, &$value = null): void { error_clear_last(); $result = \ldap_get_option($ldap, $option, $value); @@ -753,7 +753,7 @@ function ldap_get_option( $ldap, int $option, &$value = null): void * @throws LdapException * */ -function ldap_get_values_len( $ldap, $entry, string $attribute): array +function ldap_get_values_len($ldap, $entry, string $attribute): array { error_clear_last(); $result = \ldap_get_values_len($ldap, $entry, $attribute); @@ -797,7 +797,7 @@ function ldap_get_values_len( $ldap, $entry, string $attribute): array * @throws LdapException * */ -function ldap_get_values( $ldap, $entry, string $attribute): array +function ldap_get_values($ldap, $entry, string $attribute): array { error_clear_last(); $result = \ldap_get_values($ldap, $entry, $attribute); @@ -881,12 +881,12 @@ function ldap_get_values( $ldap, $entry, string $attribute): array * @throws LdapException * */ -function ldap_list( $ldap, string $base, string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $controls = null) +function ldap_list($ldap, string $base, string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $controls = null) { error_clear_last(); if ($controls !== null) { $result = \ldap_list($ldap, $base, $filter, $attributes, $attributes_only, $sizelimit, $timelimit, $deref, $controls); - }else { + } else { $result = \ldap_list($ldap, $base, $filter, $attributes, $attributes_only, $sizelimit, $timelimit, $deref); } if ($result === false) { @@ -907,12 +907,12 @@ function ldap_list( $ldap, string $base, string $filter, array $attributes = [], * @throws LdapException * */ -function ldap_mod_add_ext( $ldap, string $dn, array $entry, array $controls = null) +function ldap_mod_add_ext($ldap, string $dn, array $entry, array $controls = null) { error_clear_last(); if ($controls !== null) { $result = \ldap_mod_add_ext($ldap, $dn, $entry, $controls); - }else { + } else { $result = \ldap_mod_add_ext($ldap, $dn, $entry); } if ($result === false) { @@ -933,12 +933,12 @@ function ldap_mod_add_ext( $ldap, string $dn, array $entry, array $controls = nu * @throws LdapException * */ -function ldap_mod_add( $ldap, string $dn, array $entry, array $controls = null): void +function ldap_mod_add($ldap, string $dn, array $entry, array $controls = null): void { error_clear_last(); if ($controls !== null) { $result = \ldap_mod_add($ldap, $dn, $entry, $controls); - }else { + } else { $result = \ldap_mod_add($ldap, $dn, $entry); } if ($result === false) { @@ -958,12 +958,12 @@ function ldap_mod_add( $ldap, string $dn, array $entry, array $controls = null): * @throws LdapException * */ -function ldap_mod_del_ext( $ldap, string $dn, array $entry, array $controls = null) +function ldap_mod_del_ext($ldap, string $dn, array $entry, array $controls = null) { error_clear_last(); if ($controls !== null) { $result = \ldap_mod_del_ext($ldap, $dn, $entry, $controls); - }else { + } else { $result = \ldap_mod_del_ext($ldap, $dn, $entry); } if ($result === false) { @@ -985,12 +985,12 @@ function ldap_mod_del_ext( $ldap, string $dn, array $entry, array $controls = nu * @throws LdapException * */ -function ldap_mod_del( $ldap, string $dn, array $entry, array $controls = null): void +function ldap_mod_del($ldap, string $dn, array $entry, array $controls = null): void { error_clear_last(); if ($controls !== null) { $result = \ldap_mod_del($ldap, $dn, $entry, $controls); - }else { + } else { $result = \ldap_mod_del($ldap, $dn, $entry); } if ($result === false) { @@ -1010,12 +1010,12 @@ function ldap_mod_del( $ldap, string $dn, array $entry, array $controls = null): * @throws LdapException * */ -function ldap_mod_replace_ext( $ldap, string $dn, array $entry, array $controls = null) +function ldap_mod_replace_ext($ldap, string $dn, array $entry, array $controls = null) { error_clear_last(); if ($controls !== null) { $result = \ldap_mod_replace_ext($ldap, $dn, $entry, $controls); - }else { + } else { $result = \ldap_mod_replace_ext($ldap, $dn, $entry); } if ($result === false) { @@ -1036,12 +1036,12 @@ function ldap_mod_replace_ext( $ldap, string $dn, array $entry, array $controls * @throws LdapException * */ -function ldap_mod_replace( $ldap, string $dn, array $entry, array $controls = null): void +function ldap_mod_replace($ldap, string $dn, array $entry, array $controls = null): void { error_clear_last(); if ($controls !== null) { $result = \ldap_mod_replace($ldap, $dn, $entry, $controls); - }else { + } else { $result = \ldap_mod_replace($ldap, $dn, $entry); } if ($result === false) { @@ -1135,12 +1135,12 @@ function ldap_mod_replace( $ldap, string $dn, array $entry, array $controls = nu * @throws LdapException * */ -function ldap_modify_batch( $ldap, string $dn, array $modifications_info, array $controls = null): void +function ldap_modify_batch($ldap, string $dn, array $modifications_info, array $controls = null): void { error_clear_last(); if ($controls !== null) { $result = \ldap_modify_batch($ldap, $dn, $modifications_info, $controls); - }else { + } else { $result = \ldap_modify_batch($ldap, $dn, $modifications_info); } if ($result === false) { @@ -1162,7 +1162,7 @@ function ldap_modify_batch( $ldap, string $dn, array $modifications_info, array * @throws LdapException * */ -function ldap_next_attribute( $ldap, $entry): string +function ldap_next_attribute($ldap, $entry): string { error_clear_last(); $result = \ldap_next_attribute($ldap, $entry); @@ -1183,7 +1183,7 @@ function ldap_next_attribute( $ldap, $entry): string * @throws LdapException * */ -function ldap_parse_exop( $ldap, $result, ?string &$response_data = null, ?string &$response_oid = null): void +function ldap_parse_exop($ldap, $result, ?string &$response_data = null, ?string &$response_oid = null): void { error_clear_last(); $result = \ldap_parse_exop($ldap, $result, $response_data, $response_oid); @@ -1211,7 +1211,7 @@ function ldap_parse_exop( $ldap, $result, ?string &$response_data = null, ?stri * @throws LdapException * */ -function ldap_parse_result( $ldap, $result, ?int &$error_code, ?string &$matched_dn = null, ?string &$error_message = null, ?array &$referrals = null, ?array &$controls = null): void +function ldap_parse_result($ldap, $result, ?int &$error_code, ?string &$matched_dn = null, ?string &$error_message = null, ?array &$referrals = null, ?array &$controls = null): void { error_clear_last(); $result = \ldap_parse_result($ldap, $result, $error_code, $matched_dn, $error_message, $referrals, $controls); @@ -1293,12 +1293,12 @@ function ldap_parse_result( $ldap, $result, ?int &$error_code, ?string &$matche * @throws LdapException * */ -function ldap_read( $ldap, string $base, string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $controls = null) +function ldap_read($ldap, string $base, string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $controls = null) { error_clear_last(); if ($controls !== null) { $result = \ldap_read($ldap, $base, $filter, $attributes, $attributes_only, $sizelimit, $timelimit, $deref, $controls); - }else { + } else { $result = \ldap_read($ldap, $base, $filter, $attributes, $attributes_only, $sizelimit, $timelimit, $deref); } if ($result === false) { @@ -1321,12 +1321,12 @@ function ldap_read( $ldap, string $base, string $filter, array $attributes = [], * @throws LdapException * */ -function ldap_rename_ext( $ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, array $controls = null) +function ldap_rename_ext($ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, array $controls = null) { error_clear_last(); if ($controls !== null) { $result = \ldap_rename_ext($ldap, $dn, $new_rdn, $new_parent, $delete_old_rdn, $controls); - }else { + } else { $result = \ldap_rename_ext($ldap, $dn, $new_rdn, $new_parent, $delete_old_rdn); } if ($result === false) { @@ -1349,12 +1349,12 @@ function ldap_rename_ext( $ldap, string $dn, string $new_rdn, string $new_parent * @throws LdapException * */ -function ldap_rename( $ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, array $controls = null): void +function ldap_rename($ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, array $controls = null): void { error_clear_last(); if ($controls !== null) { $result = \ldap_rename($ldap, $dn, $new_rdn, $new_parent, $delete_old_rdn, $controls); - }else { + } else { $result = \ldap_rename($ldap, $dn, $new_rdn, $new_parent, $delete_old_rdn); } if ($result === false) { @@ -1377,7 +1377,7 @@ function ldap_rename( $ldap, string $dn, string $new_rdn, string $new_parent, bo * @throws LdapException * */ -function ldap_sasl_bind( $ldap, string $dn = null, string $password = null, string $mech = null, string $realm = null, string $authc_id = null, string $authz_id = null, string $props = null): void +function ldap_sasl_bind($ldap, string $dn = null, string $password = null, string $mech = null, string $realm = null, string $authc_id = null, string $authz_id = null, string $props = null): void { error_clear_last(); if ($props !== null) { @@ -1394,7 +1394,7 @@ function ldap_sasl_bind( $ldap, string $dn = null, string $password = null, stri $result = \ldap_sasl_bind($ldap, $dn, $password); } elseif ($dn !== null) { $result = \ldap_sasl_bind($ldap, $dn); - }else { + } else { $result = \ldap_sasl_bind($ldap); } if ($result === false) { @@ -1489,12 +1489,12 @@ function ldap_sasl_bind( $ldap, string $dn = null, string $password = null, stri * @throws LdapException * */ -function ldap_search( $ldap, string $base, string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $controls = null) +function ldap_search($ldap, string $base, string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $controls = null) { error_clear_last(); if ($controls !== null) { $result = \ldap_search($ldap, $base, $filter, $attributes, $attributes_only, $sizelimit, $timelimit, $deref, $controls); - }else { + } else { $result = \ldap_search($ldap, $base, $filter, $attributes, $attributes_only, $sizelimit, $timelimit, $deref); } if ($result === false) { @@ -1680,7 +1680,7 @@ function ldap_search( $ldap, string $base, string $filter, array $attributes = [ * @throws LdapException * */ -function ldap_set_option( $ldap, int $option, $value): void +function ldap_set_option($ldap, int $option, $value): void { error_clear_last(); $result = \ldap_set_option($ldap, $option, $value); @@ -1697,7 +1697,7 @@ function ldap_set_option( $ldap, int $option, $value): void * @throws LdapException * */ -function ldap_unbind( $ldap): void +function ldap_unbind($ldap): void { error_clear_last(); $result = \ldap_unbind($ldap); @@ -1705,4 +1705,3 @@ function ldap_unbind( $ldap): void throw LdapException::createFromPhpError(); } } - diff --git a/generated/libxml.php b/generated/libxml.php index 430e1abf..cab8297a 100644 --- a/generated/libxml.php +++ b/generated/libxml.php @@ -21,4 +21,3 @@ function libxml_get_last_error(): \LibXMLError } return $result; } - diff --git a/generated/lzf.php b/generated/lzf.php index 7138289c..7fce838a 100644 --- a/generated/lzf.php +++ b/generated/lzf.php @@ -42,4 +42,3 @@ function lzf_decompress(string $data): string } return $result; } - diff --git a/generated/mailparse.php b/generated/mailparse.php index ed9b99e2..1bae182a 100644 --- a/generated/mailparse.php +++ b/generated/mailparse.php @@ -26,12 +26,12 @@ * @throws MailparseException * */ -function mailparse_msg_extract_part_file( $mimemail, $filename, callable $callbackfunc = null): string +function mailparse_msg_extract_part_file($mimemail, $filename, callable $callbackfunc = null): string { error_clear_last(); if ($callbackfunc !== null) { $result = \mailparse_msg_extract_part_file($mimemail, $filename, $callbackfunc); - }else { + } else { $result = \mailparse_msg_extract_part_file($mimemail, $filename); } if ($result === false) { @@ -50,7 +50,7 @@ function mailparse_msg_extract_part_file( $mimemail, $filename, callable $callb * @throws MailparseException * */ -function mailparse_msg_free( $mimemail): void +function mailparse_msg_free($mimemail): void { error_clear_last(); $result = \mailparse_msg_free($mimemail); @@ -96,7 +96,7 @@ function mailparse_msg_parse_file(string $filename) * @throws MailparseException * */ -function mailparse_msg_parse( $mimemail, string $data): void +function mailparse_msg_parse($mimemail, string $data): void { error_clear_last(); $result = \mailparse_msg_parse($mimemail, $data); @@ -117,7 +117,7 @@ function mailparse_msg_parse( $mimemail, string $data): void * @throws MailparseException * */ -function mailparse_stream_encode( $sourcefp, $destfp, string $encoding): void +function mailparse_stream_encode($sourcefp, $destfp, string $encoding): void { error_clear_last(); $result = \mailparse_stream_encode($sourcefp, $destfp, $encoding); @@ -125,4 +125,3 @@ function mailparse_stream_encode( $sourcefp, $destfp, string $encoding): void throw MailparseException::createFromPhpError(); } } - diff --git a/generated/mbstring.php b/generated/mbstring.php index 63412674..60ead94a 100644 --- a/generated/mbstring.php +++ b/generated/mbstring.php @@ -24,7 +24,7 @@ function mb_chr(int $codepoint, string $encoding = null): string error_clear_last(); if ($encoding !== null) { $result = \mb_chr($codepoint, $encoding); - }else { + } else { $result = \mb_chr($codepoint); } if ($result === false) { @@ -55,12 +55,12 @@ function mb_chr(int $codepoint, string $encoding = null): string * @throws MbstringException * */ -function mb_convert_encoding( $string, string $to_encoding, $from_encoding = null) +function mb_convert_encoding($string, string $to_encoding, $from_encoding = null) { error_clear_last(); if ($from_encoding !== null) { $result = \mb_convert_encoding($string, $to_encoding, $from_encoding); - }else { + } else { $result = \mb_convert_encoding($string, $to_encoding); } if ($result === false) { @@ -99,12 +99,12 @@ function mb_convert_encoding( $string, string $to_encoding, $from_encoding = nu * @throws MbstringException * */ -function mb_detect_order( $encoding = null) +function mb_detect_order($encoding = null) { error_clear_last(); if ($encoding !== null) { $result = \mb_detect_order($encoding); - }else { + } else { $result = \mb_detect_order(); } if ($result === false) { @@ -172,7 +172,7 @@ function mb_ereg_replace_callback(string $pattern, callable $callback, string $s error_clear_last(); if ($options !== null) { $result = \mb_ereg_replace_callback($pattern, $callback, $string, $options); - }else { + } else { $result = \mb_ereg_replace_callback($pattern, $callback, $string); } if ($result === false) { @@ -202,7 +202,7 @@ function mb_ereg_replace(string $pattern, string $replacement, string $string, s error_clear_last(); if ($options !== null) { $result = \mb_ereg_replace($pattern, $replacement, $string, $options); - }else { + } else { $result = \mb_ereg_replace($pattern, $replacement, $string); } if ($result === false) { @@ -251,7 +251,7 @@ function mb_ereg_search_init(string $string, string $pattern = null, string $opt $result = \mb_ereg_search_init($string, $pattern, $options); } elseif ($pattern !== null) { $result = \mb_ereg_search_init($string, $pattern); - }else { + } else { $result = \mb_ereg_search_init($string); } if ($result === false) { @@ -276,7 +276,7 @@ function mb_ereg_search_regs(string $pattern = null, string $options = null): ar $result = \mb_ereg_search_regs($pattern, $options); } elseif ($pattern !== null) { $result = \mb_ereg_search_regs($pattern); - }else { + } else { $result = \mb_ereg_search_regs(); } if ($result === false) { @@ -321,7 +321,7 @@ function mb_eregi_replace(string $pattern, string $replacement, string $string, error_clear_last(); if ($options !== null) { $result = \mb_eregi_replace($pattern, $replacement, $string, $options); - }else { + } else { $result = \mb_eregi_replace($pattern, $replacement, $string); } if ($result === false) { @@ -392,7 +392,7 @@ function mb_http_output(string $encoding = null) error_clear_last(); if ($encoding !== null) { $result = \mb_http_output($encoding); - }else { + } else { $result = \mb_http_output(); } if ($result === false) { @@ -423,7 +423,7 @@ function mb_internal_encoding(string $encoding = null) error_clear_last(); if ($encoding !== null) { $result = \mb_internal_encoding($encoding); - }else { + } else { $result = \mb_internal_encoding(); } if ($result === false) { @@ -451,7 +451,7 @@ function mb_ord(string $string, string $encoding = null): int error_clear_last(); if ($encoding !== null) { $result = \mb_ord($string, $encoding); - }else { + } else { $result = \mb_ord($string); } if ($result === false) { @@ -499,7 +499,7 @@ function mb_regex_encoding(string $encoding = null) error_clear_last(); if ($encoding !== null) { $result = \mb_regex_encoding($encoding); - }else { + } else { $result = \mb_regex_encoding(); } if ($result === false) { @@ -566,12 +566,12 @@ function mb_regex_encoding(string $encoding = null) * @throws MbstringException * */ -function mb_send_mail(string $to, string $subject, string $message, $additional_headers = [], string $additional_params = null): void +function mb_send_mail(string $to, string $subject, string $message, $additional_headers = [], string $additional_params = null): void { error_clear_last(); if ($additional_params !== null) { $result = \mb_send_mail($to, $subject, $message, $additional_headers, $additional_params); - }else { + } else { $result = \mb_send_mail($to, $subject, $message, $additional_headers); } if ($result === false) { @@ -617,12 +617,12 @@ function mb_split(string $pattern, string $string, int $limit = -1): array * @throws MbstringException * */ -function mb_str_split(string $string, int $length = 1, $encoding = null): array +function mb_str_split(string $string, int $length = 1, $encoding = null): array { error_clear_last(); if ($encoding !== null) { $result = \mb_str_split($string, $length, $encoding); - }else { + } else { $result = \mb_str_split($string, $length); } if ($result === false) { @@ -630,4 +630,3 @@ function mb_str_split(string $string, int $length = 1, $encoding = null): array } return $result; } - diff --git a/generated/misc.php b/generated/misc.php index 76fe7e2f..3c14aa12 100644 --- a/generated/misc.php +++ b/generated/misc.php @@ -28,7 +28,7 @@ * @throws MiscException * */ -function define(string $constant_name, $value, bool $case_insensitive = false): void +function define(string $constant_name, $value, bool $case_insensitive = false): void { error_clear_last(); $result = \define($constant_name, $value, $case_insensitive); @@ -270,12 +270,12 @@ function hrtime(bool $as_number = false) * @throws MiscException * */ -function pack(string $format, ...$values): string +function pack(string $format, ...$values): string { error_clear_last(); if ($values !== []) { $result = \pack($format, ...$values); - }else { + } else { $result = \pack($format); } if ($result === false) { @@ -298,7 +298,7 @@ function pack(string $format, ...$values): string * @throws MiscException * */ -function sapi_windows_cp_conv( $in_codepage, $out_codepage, string $subject): string +function sapi_windows_cp_conv($in_codepage, $out_codepage, string $subject): string { error_clear_last(); $result = \sapi_windows_cp_conv($in_codepage, $out_codepage, $subject); @@ -363,12 +363,12 @@ function sapi_windows_generate_ctrl_event(int $event, int $pid = 0): void * @throws MiscException * */ -function sapi_windows_vt100_support( $stream, bool $enable = null): void +function sapi_windows_vt100_support($stream, bool $enable = null): void { error_clear_last(); if ($enable !== null) { $result = \sapi_windows_vt100_support($stream, $enable); - }else { + } else { $result = \sapi_windows_vt100_support($stream); } if ($result === false) { @@ -522,4 +522,3 @@ function unpack(string $format, string $string, int $offset = 0): array } return $result; } - diff --git a/generated/mysql.php b/generated/mysql.php index c2f12c23..475c609c 100644 --- a/generated/mysql.php +++ b/generated/mysql.php @@ -26,7 +26,7 @@ * @throws MysqlException * */ -function mysql_close( $link_identifier = NULL): void +function mysql_close($link_identifier = null): void { error_clear_last(); $result = \mysql_close($link_identifier); @@ -86,7 +86,7 @@ function mysql_connect(string $server = null, string $username = null, string $p $result = \mysql_connect($server, $username); } elseif ($server !== null) { $result = \mysql_connect($server); - }else { + } else { $result = \mysql_connect(); } if ($result === false) { @@ -111,7 +111,7 @@ function mysql_connect(string $server = null, string $username = null, string $p * @throws MysqlException * */ -function mysql_create_db(string $database_name, $link_identifier = NULL): void +function mysql_create_db(string $database_name, $link_identifier = null): void { error_clear_last(); $result = \mysql_create_db($database_name, $link_identifier); @@ -142,7 +142,7 @@ function mysql_create_db(string $database_name, $link_identifier = NULL): void * @throws MysqlException * */ -function mysql_data_seek( $result, int $row_number): void +function mysql_data_seek($result, int $row_number): void { error_clear_last(); $result = \mysql_data_seek($result, $row_number); @@ -165,7 +165,7 @@ function mysql_data_seek( $result, int $row_number): void * @throws MysqlException * */ -function mysql_db_name( $result, int $row, $field = NULL): string +function mysql_db_name($result, int $row, $field = null): string { error_clear_last(); $result = \mysql_db_name($result, $row, $field); @@ -196,7 +196,7 @@ function mysql_db_name( $result, int $row, $field = NULL): string * @throws MysqlException * */ -function mysql_db_query(string $database, string $query, $link_identifier = NULL) +function mysql_db_query(string $database, string $query, $link_identifier = null) { error_clear_last(); $result = \mysql_db_query($database, $query, $link_identifier); @@ -224,7 +224,7 @@ function mysql_db_query(string $database, string $query, $link_identifier = NUL * @throws MysqlException * */ -function mysql_drop_db(string $database_name, $link_identifier = NULL): void +function mysql_drop_db(string $database_name, $link_identifier = null): void { error_clear_last(); $result = \mysql_drop_db($database_name, $link_identifier); @@ -253,7 +253,7 @@ function mysql_drop_db(string $database_name, $link_identifier = NULL): void * @throws MysqlException * */ -function mysql_fetch_lengths( $result): array +function mysql_fetch_lengths($result): array { error_clear_last(); $result = \mysql_fetch_lengths($result); @@ -289,7 +289,7 @@ function mysql_fetch_lengths( $result): array * @throws MysqlException * */ -function mysql_field_flags( $result, int $field_offset): string +function mysql_field_flags($result, int $field_offset): string { error_clear_last(); $result = \mysql_field_flags($result, $field_offset); @@ -315,7 +315,7 @@ function mysql_field_flags( $result, int $field_offset): string * @throws MysqlException * */ -function mysql_field_len( $result, int $field_offset): int +function mysql_field_len($result, int $field_offset): int { error_clear_last(); $result = \mysql_field_len($result, $field_offset); @@ -341,7 +341,7 @@ function mysql_field_len( $result, int $field_offset): int * @throws MysqlException * */ -function mysql_field_name( $result, int $field_offset): string +function mysql_field_name($result, int $field_offset): string { error_clear_last(); $result = \mysql_field_name($result, $field_offset); @@ -368,7 +368,7 @@ function mysql_field_name( $result, int $field_offset): string * @throws MysqlException * */ -function mysql_field_seek( $result, int $field_offset): void +function mysql_field_seek($result, int $field_offset): void { error_clear_last(); $result = \mysql_field_seek($result, $field_offset); @@ -393,7 +393,7 @@ function mysql_field_seek( $result, int $field_offset): void * @throws MysqlException * */ -function mysql_free_result( $result): void +function mysql_free_result($result): void { error_clear_last(); $result = \mysql_free_result($result); @@ -418,7 +418,7 @@ function mysql_free_result( $result): void * @throws MysqlException * */ -function mysql_get_host_info( $link_identifier = NULL): string +function mysql_get_host_info($link_identifier = null): string { error_clear_last(); $result = \mysql_get_host_info($link_identifier); @@ -442,7 +442,7 @@ function mysql_get_host_info( $link_identifier = NULL): string * @throws MysqlException * */ -function mysql_get_proto_info( $link_identifier = NULL): int +function mysql_get_proto_info($link_identifier = null): int { error_clear_last(); $result = \mysql_get_proto_info($link_identifier); @@ -466,7 +466,7 @@ function mysql_get_proto_info( $link_identifier = NULL): int * @throws MysqlException * */ -function mysql_get_server_info( $link_identifier = NULL): string +function mysql_get_server_info($link_identifier = null): string { error_clear_last(); $result = \mysql_get_server_info($link_identifier); @@ -492,7 +492,7 @@ function mysql_get_server_info( $link_identifier = NULL): string * @throws MysqlException * */ -function mysql_info( $link_identifier = NULL): string +function mysql_info($link_identifier = null): string { error_clear_last(); $result = \mysql_info($link_identifier); @@ -519,7 +519,7 @@ function mysql_info( $link_identifier = NULL): string * @throws MysqlException * */ -function mysql_list_dbs( $link_identifier = NULL) +function mysql_list_dbs($link_identifier = null) { error_clear_last(); $result = \mysql_list_dbs($link_identifier); @@ -554,7 +554,7 @@ function mysql_list_dbs( $link_identifier = NULL) * @throws MysqlException * */ -function mysql_list_fields(string $database_name, string $table_name, $link_identifier = NULL) +function mysql_list_fields(string $database_name, string $table_name, $link_identifier = null) { error_clear_last(); $result = \mysql_list_fields($database_name, $table_name, $link_identifier); @@ -578,7 +578,7 @@ function mysql_list_fields(string $database_name, string $table_name, $link_ide * @throws MysqlException * */ -function mysql_list_processes( $link_identifier = NULL) +function mysql_list_processes($link_identifier = null) { error_clear_last(); $result = \mysql_list_processes($link_identifier); @@ -611,7 +611,7 @@ function mysql_list_processes( $link_identifier = NULL) * @throws MysqlException * */ -function mysql_list_tables(string $database, $link_identifier = NULL) +function mysql_list_tables(string $database, $link_identifier = null) { error_clear_last(); $result = \mysql_list_tables($database, $link_identifier); @@ -633,7 +633,7 @@ function mysql_list_tables(string $database, $link_identifier = NULL) * @throws MysqlException * */ -function mysql_num_fields( $result): int +function mysql_num_fields($result): int { error_clear_last(); $result = \mysql_num_fields($result); @@ -657,7 +657,7 @@ function mysql_num_fields( $result): int * @throws MysqlException * */ -function mysql_num_rows( $result): int +function mysql_num_rows($result): int { error_clear_last(); $result = \mysql_num_rows($result); @@ -707,7 +707,7 @@ function mysql_num_rows( $result): int * @throws MysqlException * */ -function mysql_query(string $query, $link_identifier = NULL) +function mysql_query(string $query, $link_identifier = null) { error_clear_last(); $result = \mysql_query($query, $link_identifier); @@ -744,7 +744,7 @@ function mysql_query(string $query, $link_identifier = NULL) * @throws MysqlException * */ -function mysql_real_escape_string(string $unescaped_string, $link_identifier = NULL): string +function mysql_real_escape_string(string $unescaped_string, $link_identifier = null): string { error_clear_last(); $result = \mysql_real_escape_string($unescaped_string, $link_identifier); @@ -781,7 +781,7 @@ function mysql_real_escape_string(string $unescaped_string, $link_identifier = * @throws MysqlException * */ -function mysql_result( $result, int $row, $field = 0): string +function mysql_result($result, int $row, $field = 0): string { error_clear_last(); $result = \mysql_result($result, $row, $field); @@ -807,7 +807,7 @@ function mysql_result( $result, int $row, $field = 0): string * @throws MysqlException * */ -function mysql_select_db(string $database_name, $link_identifier = NULL): void +function mysql_select_db(string $database_name, $link_identifier = null): void { error_clear_last(); $result = \mysql_select_db($database_name, $link_identifier); @@ -830,7 +830,7 @@ function mysql_select_db(string $database_name, $link_identifier = NULL): void * @throws MysqlException * */ -function mysql_set_charset(string $charset, $link_identifier = NULL): void +function mysql_set_charset(string $charset, $link_identifier = null): void { error_clear_last(); $result = \mysql_set_charset($charset, $link_identifier); @@ -858,7 +858,7 @@ function mysql_set_charset(string $charset, $link_identifier = NULL): void * @throws MysqlException * */ -function mysql_tablename( $result, int $i): string +function mysql_tablename($result, int $i): string { error_clear_last(); $result = \mysql_tablename($result, $i); @@ -884,7 +884,7 @@ function mysql_tablename( $result, int $i): string * @throws MysqlException * */ -function mysql_thread_id( $link_identifier = NULL): int +function mysql_thread_id($link_identifier = null): int { error_clear_last(); $result = \mysql_thread_id($link_identifier); @@ -927,7 +927,7 @@ function mysql_thread_id( $link_identifier = NULL): int * @throws MysqlException * */ -function mysql_unbuffered_query(string $query, $link_identifier = NULL) +function mysql_unbuffered_query(string $query, $link_identifier = null) { error_clear_last(); $result = \mysql_unbuffered_query($query, $link_identifier); @@ -936,4 +936,3 @@ function mysql_unbuffered_query(string $query, $link_identifier = NULL) } return $result; } - diff --git a/generated/mysqli.php b/generated/mysqli.php index f2c3c67d..13839c6c 100644 --- a/generated/mysqli.php +++ b/generated/mysqli.php @@ -20,4 +20,3 @@ function mysqli_get_client_stats(): array } return $result; } - diff --git a/generated/network.php b/generated/network.php index fb8b140b..49c621e5 100644 --- a/generated/network.php +++ b/generated/network.php @@ -309,7 +309,7 @@ function fsockopen(string $hostname, int $port = -1, ?int &$error_code = null, ? error_clear_last(); if ($timeout !== null) { $result = \fsockopen($hostname, $port, $error_code, $error_message, $timeout); - }else { + } else { $result = \fsockopen($hostname, $port, $error_code, $error_message); } if ($result === false) { @@ -631,7 +631,7 @@ function pfsockopen(string $hostname, int $port = -1, ?int &$errno = null, ?stri error_clear_last(); if ($timeout !== null) { $result = \pfsockopen($hostname, $port, $errno, $errstr, $timeout); - }else { + } else { $result = \pfsockopen($hostname, $port, $errno, $errstr); } if ($result === false) { @@ -711,4 +711,3 @@ function syslog(int $priority, string $message): void throw NetworkException::createFromPhpError(); } } - diff --git a/generated/oci8.php b/generated/oci8.php index 74916689..0aa39db7 100644 --- a/generated/oci8.php +++ b/generated/oci8.php @@ -101,7 +101,7 @@ * @throws Oci8Exception * */ -function oci_bind_array_by_name( $statement, string $name, array &$var_array, int $max_table_length, int $max_item_length = -1, int $type = SQLT_AFC): void +function oci_bind_array_by_name($statement, string $name, array &$var_array, int $max_table_length, int $max_item_length = -1, int $type = SQLT_AFC): void { error_clear_last(); $result = \oci_bind_array_by_name($statement, $name, $var_array, $max_table_length, $max_item_length, $type); @@ -307,7 +307,7 @@ function oci_bind_array_by_name( $statement, string $name, array &$var_array, in * @throws Oci8Exception * */ -function oci_bind_by_name( $statement, string $bv_name, &$variable, int $maxlength = -1, int $type = SQLT_CHR): void +function oci_bind_by_name($statement, string $bv_name, &$variable, int $maxlength = -1, int $type = SQLT_CHR): void { error_clear_last(); $result = \oci_bind_by_name($statement, $bv_name, $variable, $maxlength, $type); @@ -325,7 +325,7 @@ function oci_bind_by_name( $statement, string $bv_name, &$variable, int $maxlen * @throws Oci8Exception * */ -function oci_cancel( $statement): void +function oci_cancel($statement): void { error_clear_last(); $result = \oci_cancel($statement); @@ -350,7 +350,7 @@ function oci_cancel( $statement): void * @throws Oci8Exception * */ -function oci_close( $connection): void +function oci_close($connection): void { error_clear_last(); $result = \oci_close($connection); @@ -382,7 +382,7 @@ function oci_close( $connection): void * @throws Oci8Exception * */ -function oci_commit( $connection): void +function oci_commit($connection): void { error_clear_last(); $result = \oci_commit($connection); @@ -500,7 +500,7 @@ function oci_connect(string $username, string $password, string $connection_stri $result = \oci_connect($username, $password, $connection_string, $character_set); } elseif ($connection_string !== null) { $result = \oci_connect($username, $password, $connection_string); - }else { + } else { $result = \oci_connect($username, $password); } if ($result === false) { @@ -536,7 +536,7 @@ function oci_connect(string $username, string $password, string $connection_stri * @throws Oci8Exception * */ -function oci_define_by_name( $statement, string $column_name, &$variable, int $type = SQLT_CHR): void +function oci_define_by_name($statement, string $column_name, &$variable, int $type = SQLT_CHR): void { error_clear_last(); $result = \oci_define_by_name($statement, $column_name, $variable, $type); @@ -623,7 +623,7 @@ function oci_define_by_name( $statement, string $column_name, &$variable, int $ * @throws Oci8Exception * */ -function oci_execute( $statement, int $mode = OCI_COMMIT_ON_SUCCESS): void +function oci_execute($statement, int $mode = OCI_COMMIT_ON_SUCCESS): void { error_clear_last(); $result = \oci_execute($statement, $mode); @@ -725,7 +725,7 @@ function oci_execute( $statement, int $mode = OCI_COMMIT_ON_SUCCESS): void * @throws Oci8Exception * */ -function oci_fetch_all( $statement, ?array &$output, int $skip = 0, int $maxrows = -1, int $flags = OCI_FETCHSTATEMENT_BY_COLUMN + OCI_ASSOC): int +function oci_fetch_all($statement, ?array &$output, int $skip = 0, int $maxrows = -1, int $flags = OCI_FETCHSTATEMENT_BY_COLUMN + OCI_ASSOC): int { error_clear_last(); $result = \oci_fetch_all($statement, $output, $skip, $maxrows, $flags); @@ -745,7 +745,7 @@ function oci_fetch_all( $statement, ?array &$output, int $skip = 0, int $maxrows * @throws Oci8Exception * */ -function oci_field_name( $statement, $field): string +function oci_field_name($statement, $field): string { error_clear_last(); $result = \oci_field_name($statement, $field); @@ -769,7 +769,7 @@ function oci_field_name( $statement, $field): string * @throws Oci8Exception * */ -function oci_field_precision( $statement, $field): int +function oci_field_precision($statement, $field): int { error_clear_last(); $result = \oci_field_precision($statement, $field); @@ -793,7 +793,7 @@ function oci_field_precision( $statement, $field): int * @throws Oci8Exception * */ -function oci_field_scale( $statement, $field): int +function oci_field_scale($statement, $field): int { error_clear_last(); $result = \oci_field_scale($statement, $field); @@ -813,7 +813,7 @@ function oci_field_scale( $statement, $field): int * @throws Oci8Exception * */ -function oci_field_size( $statement, $field): int +function oci_field_size($statement, $field): int { error_clear_last(); $result = \oci_field_size($statement, $field); @@ -835,7 +835,7 @@ function oci_field_size( $statement, $field): int * @throws Oci8Exception * */ -function oci_field_type_raw( $statement, $field): int +function oci_field_type_raw($statement, $field): int { error_clear_last(); $result = \oci_field_type_raw($statement, $field); @@ -855,7 +855,7 @@ function oci_field_type_raw( $statement, $field): int * @throws Oci8Exception * */ -function oci_field_type( $statement, $field) +function oci_field_type($statement, $field) { error_clear_last(); $result = \oci_field_type($statement, $field); @@ -873,7 +873,7 @@ function oci_field_type( $statement, $field) * @throws Oci8Exception * */ -function oci_free_descriptor( $descriptor): void +function oci_free_descriptor($descriptor): void { error_clear_last(); $result = \oci_free_descriptor($descriptor); @@ -892,7 +892,7 @@ function oci_free_descriptor( $descriptor): void * @throws Oci8Exception * */ -function oci_free_statement( $statement): void +function oci_free_statement($statement): void { error_clear_last(); $result = \oci_free_statement($statement); @@ -914,12 +914,12 @@ function oci_free_statement( $statement): void * @throws Oci8Exception * */ -function oci_new_collection( $connection, string $tdo, string $schema = null) +function oci_new_collection($connection, string $tdo, string $schema = null) { error_clear_last(); if ($schema !== null) { $result = \oci_new_collection($connection, $tdo, $schema); - }else { + } else { $result = \oci_new_collection($connection, $tdo); } if ($result === false) { @@ -1026,7 +1026,7 @@ function oci_new_connect(string $username, string $password, string $connection_ $result = \oci_new_connect($username, $password, $connection_string, $character_set); } elseif ($connection_string !== null) { $result = \oci_new_connect($username, $password, $connection_string); - }else { + } else { $result = \oci_new_connect($username, $password); } if ($result === false) { @@ -1045,7 +1045,7 @@ function oci_new_connect(string $username, string $password, string $connection_ * @throws Oci8Exception * */ -function oci_new_cursor( $connection) +function oci_new_cursor($connection) { error_clear_last(); $result = \oci_new_cursor($connection); @@ -1068,7 +1068,7 @@ function oci_new_cursor( $connection) * @throws Oci8Exception * */ -function oci_new_descriptor( $connection, int $type = OCI_DTYPE_LOB) +function oci_new_descriptor($connection, int $type = OCI_DTYPE_LOB) { error_clear_last(); $result = \oci_new_descriptor($connection, $type); @@ -1087,7 +1087,7 @@ function oci_new_descriptor( $connection, int $type = OCI_DTYPE_LOB) * @throws Oci8Exception * */ -function oci_num_fields( $statement): int +function oci_num_fields($statement): int { error_clear_last(); $result = \oci_num_fields($statement); @@ -1106,7 +1106,7 @@ function oci_num_fields( $statement): int * @throws Oci8Exception * */ -function oci_num_rows( $statement): int +function oci_num_rows($statement): int { error_clear_last(); $result = \oci_num_rows($statement); @@ -1139,7 +1139,7 @@ function oci_num_rows( $statement): int * @throws Oci8Exception * */ -function oci_parse( $connection, string $sql_text) +function oci_parse($connection, string $sql_text) { error_clear_last(); $result = \oci_parse($connection, $sql_text); @@ -1248,7 +1248,7 @@ function oci_pconnect(string $username, string $password, string $connection_str $result = \oci_pconnect($username, $password, $connection_string, $character_set); } elseif ($connection_string !== null) { $result = \oci_pconnect($username, $password, $connection_string); - }else { + } else { $result = \oci_pconnect($username, $password); } if ($result === false) { @@ -1276,7 +1276,7 @@ function oci_pconnect(string $username, string $password, string $connection_str * @throws Oci8Exception * */ -function oci_result( $statement, $field): string +function oci_result($statement, $field): string { error_clear_last(); $result = \oci_result($statement, $field); @@ -1310,7 +1310,7 @@ function oci_result( $statement, $field): string * @throws Oci8Exception * */ -function oci_rollback( $connection): void +function oci_rollback($connection): void { error_clear_last(); $result = \oci_rollback($connection); @@ -1328,7 +1328,7 @@ function oci_rollback( $connection): void * @throws Oci8Exception * */ -function oci_server_version( $connection): string +function oci_server_version($connection): string { error_clear_last(); $result = \oci_server_version($connection); @@ -1360,7 +1360,7 @@ function oci_server_version( $connection): string * @throws Oci8Exception * */ -function oci_set_action( $connection, string $action_name): void +function oci_set_action($connection, string $action_name): void { error_clear_last(); $result = \oci_set_action($connection, $action_name); @@ -1402,7 +1402,7 @@ function oci_set_action( $connection, string $action_name): void * @throws Oci8Exception * */ -function oci_set_call_timeout( $connection, int $time_out): void +function oci_set_call_timeout($connection, int $time_out): void { error_clear_last(); $result = \oci_set_call_timeout($connection, $time_out); @@ -1437,7 +1437,7 @@ function oci_set_call_timeout( $connection, int $time_out): void * @throws Oci8Exception * */ -function oci_set_client_identifier( $connection, string $client_identifier): void +function oci_set_client_identifier($connection, string $client_identifier): void { error_clear_last(); $result = \oci_set_client_identifier($connection, $client_identifier); @@ -1466,7 +1466,7 @@ function oci_set_client_identifier( $connection, string $client_identifier): voi * @throws Oci8Exception * */ -function oci_set_client_info( $connection, string $client_info): void +function oci_set_client_info($connection, string $client_info): void { error_clear_last(); $result = \oci_set_client_info($connection, $client_info); @@ -1496,7 +1496,7 @@ function oci_set_client_info( $connection, string $client_info): void * @throws Oci8Exception * */ -function oci_set_db_operation( $connection, string $dbop): void +function oci_set_db_operation($connection, string $dbop): void { error_clear_last(); $result = \oci_set_db_operation($connection, $dbop); @@ -1561,7 +1561,7 @@ function oci_set_edition(string $edition): void * @throws Oci8Exception * */ -function oci_set_module_name( $connection, string $module_name): void +function oci_set_module_name($connection, string $module_name): void { error_clear_last(); $result = \oci_set_module_name($connection, $module_name); @@ -1625,7 +1625,7 @@ function oci_set_module_name( $connection, string $module_name): void * @throws Oci8Exception * */ -function oci_set_prefetch( $statement, int $rows): void +function oci_set_prefetch($statement, int $rows): void { error_clear_last(); $result = \oci_set_prefetch($statement, $rows); @@ -1697,7 +1697,7 @@ function oci_set_prefetch( $statement, int $rows): void * @throws Oci8Exception * */ -function oci_statement_type( $statement): string +function oci_statement_type($statement): string { error_clear_last(); $result = \oci_statement_type($statement); @@ -1718,7 +1718,7 @@ function oci_statement_type( $statement): string * @throws Oci8Exception * */ -function oci_unregister_taf_callback( $connection): void +function oci_unregister_taf_callback($connection): void { error_clear_last(); $result = \oci_unregister_taf_callback($connection); @@ -1726,4 +1726,3 @@ function oci_unregister_taf_callback( $connection): void throw Oci8Exception::createFromPhpError(); } } - diff --git a/generated/opcache.php b/generated/opcache.php index 134f1cfb..c2603602 100644 --- a/generated/opcache.php +++ b/generated/opcache.php @@ -40,4 +40,3 @@ function opcache_get_status(bool $include_scripts = true): array } return $result; } - diff --git a/generated/openssl.php b/generated/openssl.php index 2c3d7ab4..c3e5965a 100644 --- a/generated/openssl.php +++ b/generated/openssl.php @@ -35,14 +35,14 @@ function openssl_cipher_iv_length(string $cipher_algo): int * @throws OpensslException * */ -function openssl_cms_decrypt(string $input_filename, string $output_filename, $certificate, $private_key = null, int $encoding = OPENSSL_ENCODING_SMIME): void +function openssl_cms_decrypt(string $input_filename, string $output_filename, $certificate, $private_key = null, int $encoding = OPENSSL_ENCODING_SMIME): void { error_clear_last(); if ($encoding !== OPENSSL_ENCODING_SMIME) { $result = \openssl_cms_decrypt($input_filename, $output_filename, $certificate, $private_key, $encoding); } elseif ($private_key !== null) { $result = \openssl_cms_decrypt($input_filename, $output_filename, $certificate, $private_key); - }else { + } else { $result = \openssl_cms_decrypt($input_filename, $output_filename, $certificate); } if ($result === false) { @@ -66,7 +66,7 @@ function openssl_cms_decrypt(string $input_filename, string $output_filename, $ * @throws OpensslException * */ -function openssl_cms_encrypt(string $input_filename, string $output_filename, $certificate, $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, int $cipher_algo = OPENSSL_CIPHER_RC2_40): void +function openssl_cms_encrypt(string $input_filename, string $output_filename, $certificate, $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, int $cipher_algo = OPENSSL_CIPHER_RC2_40): void { error_clear_last(); $result = \openssl_cms_encrypt($input_filename, $output_filename, $certificate, $headers, $flags, $encoding, $cipher_algo); @@ -109,12 +109,12 @@ function openssl_cms_read(string $input_filename, array &$certificates): void * @throws OpensslException * */ -function openssl_cms_sign(string $input_filename, string $output_filename, $certificate, $private_key, $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, $untrusted_certificates_filename = null): void +function openssl_cms_sign(string $input_filename, string $output_filename, $certificate, $private_key, $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, $untrusted_certificates_filename = null): void { error_clear_last(); if ($untrusted_certificates_filename !== null) { $result = \openssl_cms_sign($input_filename, $output_filename, $certificate, $private_key, $headers, $flags, $encoding, $untrusted_certificates_filename); - }else { + } else { $result = \openssl_cms_sign($input_filename, $output_filename, $certificate, $private_key, $headers, $flags, $encoding); } if ($result === false) { @@ -139,7 +139,7 @@ function openssl_cms_sign(string $input_filename, string $output_filename, $cer * @throws OpensslException * */ -function openssl_cms_verify(string $input_filename, int $flags = 0, $certificates = null, array $ca_info = [], $untrusted_certificates_filename = null, $content = null, $pk7 = null, $sigfile = null, int $encoding = OPENSSL_ENCODING_SMIME): void +function openssl_cms_verify(string $input_filename, int $flags = 0, $certificates = null, array $ca_info = [], $untrusted_certificates_filename = null, $content = null, $pk7 = null, $sigfile = null, int $encoding = OPENSSL_ENCODING_SMIME): void { error_clear_last(); if ($encoding !== OPENSSL_ENCODING_SMIME) { @@ -156,7 +156,7 @@ function openssl_cms_verify(string $input_filename, int $flags = 0, $certificat $result = \openssl_cms_verify($input_filename, $flags, $certificates, $ca_info); } elseif ($certificates !== null) { $result = \openssl_cms_verify($input_filename, $flags, $certificates); - }else { + } else { $result = \openssl_cms_verify($input_filename, $flags); } if ($result === false) { @@ -180,7 +180,7 @@ function openssl_cms_verify(string $input_filename, int $flags = 0, $certificat * @throws OpensslException * */ -function openssl_csr_export_to_file( $csr, string $output_filename, bool $no_text = true): void +function openssl_csr_export_to_file($csr, string $output_filename, bool $no_text = true): void { error_clear_last(); $result = \openssl_csr_export_to_file($csr, $output_filename, $no_text); @@ -206,7 +206,7 @@ function openssl_csr_export_to_file( $csr, string $output_filename, bool $no_tex * @throws OpensslException * */ -function openssl_csr_export( $csr, ?string &$output, bool $no_text = true): void +function openssl_csr_export($csr, ?string &$output, bool $no_text = true): void { error_clear_last(); $result = \openssl_csr_export($csr, $output, $no_text); @@ -226,7 +226,7 @@ function openssl_csr_export( $csr, ?string &$output, bool $no_text = true): void * @throws OpensslException * */ -function openssl_csr_get_public_key( $csr, bool $short_names = true) +function openssl_csr_get_public_key($csr, bool $short_names = true) { error_clear_last(); $result = \openssl_csr_get_public_key($csr, $short_names); @@ -251,7 +251,7 @@ function openssl_csr_get_public_key( $csr, bool $short_names = true) * @throws OpensslException * */ -function openssl_csr_get_subject( $csr, bool $short_names = true): array +function openssl_csr_get_subject($csr, bool $short_names = true): array { error_clear_last(); $result = \openssl_csr_get_subject($csr, $short_names); @@ -372,14 +372,14 @@ function openssl_csr_get_subject( $csr, bool $short_names = true): array * @throws OpensslException * */ -function openssl_csr_new(array $distinguished_names, &$private_key, array $options = null, array $extra_attributes = null) +function openssl_csr_new(array $distinguished_names, &$private_key, array $options = null, array $extra_attributes = null) { error_clear_last(); if ($extra_attributes !== null) { $result = \openssl_csr_new($distinguished_names, $private_key, $options, $extra_attributes); } elseif ($options !== null) { $result = \openssl_csr_new($distinguished_names, $private_key, $options); - }else { + } else { $result = \openssl_csr_new($distinguished_names, $private_key); } if ($result === false) { @@ -412,14 +412,14 @@ function openssl_csr_new(array $distinguished_names, &$private_key, array $opti * @throws OpensslException * */ -function openssl_csr_sign( $csr, $ca_certificate, $private_key, int $days, array $options = null, int $serial = 0) +function openssl_csr_sign($csr, $ca_certificate, $private_key, int $days, array $options = null, int $serial = 0) { error_clear_last(); if ($serial !== 0) { $result = \openssl_csr_sign($csr, $ca_certificate, $private_key, $days, $options, $serial); } elseif ($options !== null) { $result = \openssl_csr_sign($csr, $ca_certificate, $private_key, $days, $options); - }else { + } else { $result = \openssl_csr_sign($csr, $ca_certificate, $private_key, $days); } if ($result === false) { @@ -468,7 +468,7 @@ function openssl_decrypt(string $data, string $cipher_algo, string $passphrase, * @throws OpensslException * */ -function openssl_dh_compute_key(string $public_key, $private_key): string +function openssl_dh_compute_key(string $public_key, $private_key): string { error_clear_last(); $result = \openssl_dh_compute_key($public_key, $private_key); @@ -590,12 +590,12 @@ function openssl_get_curve_names(): array * @throws OpensslException * */ -function openssl_open(string $data, ?string &$output, string $encrypted_key, $private_key, string $cipher_algo, string $iv = null): void +function openssl_open(string $data, ?string &$output, string $encrypted_key, $private_key, string $cipher_algo, string $iv = null): void { error_clear_last(); if ($iv !== null) { $result = \openssl_open($data, $output, $encrypted_key, $private_key, $cipher_algo, $iv); - }else { + } else { $result = \openssl_open($data, $output, $encrypted_key, $private_key, $cipher_algo); } if ($result === false) { @@ -663,7 +663,7 @@ function openssl_pbkdf2(string $password, string $salt, int $key_length, int $it * @throws OpensslException * */ -function openssl_pkcs12_export_to_file( $certificate, string $output_filename, $private_key, string $passphrase, array $options = []): void +function openssl_pkcs12_export_to_file($certificate, string $output_filename, $private_key, string $passphrase, array $options = []): void { error_clear_last(); $result = \openssl_pkcs12_export_to_file($certificate, $output_filename, $private_key, $passphrase, $options); @@ -707,7 +707,7 @@ function openssl_pkcs12_export_to_file( $certificate, string $output_filename, * @throws OpensslException * */ -function openssl_pkcs12_export( $certificate, ?string &$output, $private_key, string $passphrase, array $options = []): void +function openssl_pkcs12_export($certificate, ?string &$output, $private_key, string $passphrase, array $options = []): void { error_clear_last(); $result = \openssl_pkcs12_export($certificate, $output, $private_key, $passphrase, $options); @@ -752,12 +752,12 @@ function openssl_pkcs12_read(string $pkcs12, ?array &$certificates, string $pass * @throws OpensslException * */ -function openssl_pkcs7_decrypt(string $input_filename, string $output_filename, $certificate, $private_key = null): void +function openssl_pkcs7_decrypt(string $input_filename, string $output_filename, $certificate, $private_key = null): void { error_clear_last(); if ($private_key !== null) { $result = \openssl_pkcs7_decrypt($input_filename, $output_filename, $certificate, $private_key); - }else { + } else { $result = \openssl_pkcs7_decrypt($input_filename, $output_filename, $certificate); } if ($result === false) { @@ -788,7 +788,7 @@ function openssl_pkcs7_decrypt(string $input_filename, string $output_filename, * @throws OpensslException * */ -function openssl_pkcs7_encrypt(string $input_filename, string $output_filename, $certificate, array $headers, int $flags = 0, int $cipher_algo = OPENSSL_CIPHER_RC2_40): void +function openssl_pkcs7_encrypt(string $input_filename, string $output_filename, $certificate, array $headers, int $flags = 0, int $cipher_algo = OPENSSL_CIPHER_RC2_40): void { error_clear_last(); $result = \openssl_pkcs7_encrypt($input_filename, $output_filename, $certificate, $headers, $flags, $cipher_algo); @@ -840,12 +840,12 @@ function openssl_pkcs7_read(string $data, ?array &$certificates): void * @throws OpensslException * */ -function openssl_pkcs7_sign(string $input_filename, string $output_filename, $certificate, $private_key, array $headers, int $flags = PKCS7_DETACHED, string $untrusted_certificates_filename = null): void +function openssl_pkcs7_sign(string $input_filename, string $output_filename, $certificate, $private_key, array $headers, int $flags = PKCS7_DETACHED, string $untrusted_certificates_filename = null): void { error_clear_last(); if ($untrusted_certificates_filename !== null) { $result = \openssl_pkcs7_sign($input_filename, $output_filename, $certificate, $private_key, $headers, $flags, $untrusted_certificates_filename); - }else { + } else { $result = \openssl_pkcs7_sign($input_filename, $output_filename, $certificate, $private_key, $headers, $flags); } if ($result === false) { @@ -867,7 +867,7 @@ function openssl_pkcs7_sign(string $input_filename, string $output_filename, $c * @throws OpensslException * */ -function openssl_pkey_derive( $public_key, $private_key, int $key_length = 0): string +function openssl_pkey_derive($public_key, $private_key, int $key_length = 0): string { error_clear_last(); $result = \openssl_pkey_derive($public_key, $private_key, $key_length); @@ -894,14 +894,14 @@ function openssl_pkey_derive( $public_key, $private_key, int $key_length = 0): * @throws OpensslException * */ -function openssl_pkey_export_to_file( $key, string $output_filename, ?string $passphrase = null, array $options = null): void +function openssl_pkey_export_to_file($key, string $output_filename, ?string $passphrase = null, array $options = null): void { error_clear_last(); if ($options !== null) { $result = \openssl_pkey_export_to_file($key, $output_filename, $passphrase, $options); } elseif ($passphrase !== null) { $result = \openssl_pkey_export_to_file($key, $output_filename, $passphrase); - }else { + } else { $result = \openssl_pkey_export_to_file($key, $output_filename); } if ($result === false) { @@ -925,14 +925,14 @@ function openssl_pkey_export_to_file( $key, string $output_filename, ?string $pa * @throws OpensslException * */ -function openssl_pkey_export( $key, ?string &$output, ?string $passphrase = null, array $options = null): void +function openssl_pkey_export($key, ?string &$output, ?string $passphrase = null, array $options = null): void { error_clear_last(); if ($options !== null) { $result = \openssl_pkey_export($key, $output, $passphrase, $options); } elseif ($passphrase !== null) { $result = \openssl_pkey_export($key, $output, $passphrase); - }else { + } else { $result = \openssl_pkey_export($key, $output); } if ($result === false) { @@ -965,7 +965,7 @@ function openssl_pkey_get_private(string $private_key, string $passphrase = null error_clear_last(); if ($passphrase !== null) { $result = \openssl_pkey_get_private($private_key, $passphrase); - }else { + } else { $result = \openssl_pkey_get_private($private_key); } if ($result === false) { @@ -994,7 +994,7 @@ function openssl_pkey_get_private(string $private_key, string $passphrase = null * @throws OpensslException * */ -function openssl_pkey_get_public( $public_key) +function openssl_pkey_get_public($public_key) { error_clear_last(); $result = \openssl_pkey_get_public($public_key); @@ -1023,7 +1023,7 @@ function openssl_pkey_new(array $options = null) error_clear_last(); if ($options !== null) { $result = \openssl_pkey_new($options); - }else { + } else { $result = \openssl_pkey_new(); } if ($result === false) { @@ -1053,7 +1053,7 @@ function openssl_pkey_new(array $options = null) * @throws OpensslException * */ -function openssl_private_decrypt(string $data, ?string &$decrypted_data, $private_key, int $padding = OPENSSL_PKCS1_PADDING): void +function openssl_private_decrypt(string $data, ?string &$decrypted_data, $private_key, int $padding = OPENSSL_PKCS1_PADDING): void { error_clear_last(); $result = \openssl_private_decrypt($data, $decrypted_data, $private_key, $padding); @@ -1081,7 +1081,7 @@ function openssl_private_decrypt(string $data, ?string &$decrypted_data, $priva * @throws OpensslException * */ -function openssl_private_encrypt(string $data, ?string &$encrypted_data, $private_key, int $padding = OPENSSL_PKCS1_PADDING): void +function openssl_private_encrypt(string $data, ?string &$encrypted_data, $private_key, int $padding = OPENSSL_PKCS1_PADDING): void { error_clear_last(); $result = \openssl_private_encrypt($data, $encrypted_data, $private_key, $padding); @@ -1110,7 +1110,7 @@ function openssl_private_encrypt(string $data, ?string &$encrypted_data, $priva * @throws OpensslException * */ -function openssl_public_decrypt(string $data, ?string &$decrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): void +function openssl_public_decrypt(string $data, ?string &$decrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): void { error_clear_last(); $result = \openssl_public_decrypt($data, $decrypted_data, $public_key, $padding); @@ -1141,7 +1141,7 @@ function openssl_public_decrypt(string $data, ?string &$decrypted_data, $public * @throws OpensslException * */ -function openssl_public_encrypt(string $data, ?string &$encrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): void +function openssl_public_encrypt(string $data, ?string &$encrypted_data, $public_key, int $padding = OPENSSL_PKCS1_PADDING): void { error_clear_last(); $result = \openssl_public_encrypt($data, $encrypted_data, $public_key, $padding); @@ -1239,7 +1239,7 @@ function openssl_seal(string $data, ?string &$sealed_data, ?array &$encrypted_ke * @throws OpensslException * */ -function openssl_sign(string $data, ?string &$signature, $private_key, $algorithm = OPENSSL_ALGO_SHA1): void +function openssl_sign(string $data, ?string &$signature, $private_key, $algorithm = OPENSSL_ALGO_SHA1): void { error_clear_last(); $result = \openssl_sign($data, $signature, $private_key, $algorithm); @@ -1301,7 +1301,7 @@ function openssl_spki_export(string $spki): ?string * @throws OpensslException * */ -function openssl_spki_new( $private_key, string $challenge, int $digest_algo = OPENSSL_ALGO_MD5): ?string +function openssl_spki_new($private_key, string $challenge, int $digest_algo = OPENSSL_ALGO_MD5): ?string { error_clear_last(); $result = \openssl_spki_new($private_key, $challenge, $digest_algo); @@ -1350,7 +1350,7 @@ function openssl_spki_verify(string $spki): void * @throws OpensslException * */ -function openssl_verify(string $data, string $signature, $public_key, $algorithm = OPENSSL_ALGO_SHA1) +function openssl_verify(string $data, string $signature, $public_key, $algorithm = OPENSSL_ALGO_SHA1) { error_clear_last(); $result = \openssl_verify($data, $signature, $public_key, $algorithm); @@ -1376,7 +1376,7 @@ function openssl_verify(string $data, string $signature, $public_key, $algorit * @throws OpensslException * */ -function openssl_x509_export_to_file( $certificate, string $output_filename, bool $no_text = true): void +function openssl_x509_export_to_file($certificate, string $output_filename, bool $no_text = true): void { error_clear_last(); $result = \openssl_x509_export_to_file($certificate, $output_filename, $no_text); @@ -1401,7 +1401,7 @@ function openssl_x509_export_to_file( $certificate, string $output_filename, boo * @throws OpensslException * */ -function openssl_x509_export( $certificate, ?string &$output, bool $no_text = true): void +function openssl_x509_export($certificate, ?string &$output, bool $no_text = true): void { error_clear_last(); $result = \openssl_x509_export($certificate, $output, $no_text); @@ -1424,7 +1424,7 @@ function openssl_x509_export( $certificate, ?string &$output, bool $no_text = tr * @throws OpensslException * */ -function openssl_x509_fingerprint( $certificate, string $digest_algo = "sha1", bool $binary = false): string +function openssl_x509_fingerprint($certificate, string $digest_algo = "sha1", bool $binary = false): string { error_clear_last(); $result = \openssl_x509_fingerprint($certificate, $digest_algo, $binary); @@ -1445,7 +1445,7 @@ function openssl_x509_fingerprint( $certificate, string $digest_algo = "sha1", b * @throws OpensslException * */ -function openssl_x509_read( $certificate) +function openssl_x509_read($certificate) { error_clear_last(); $result = \openssl_x509_read($certificate); @@ -1454,4 +1454,3 @@ function openssl_x509_read( $certificate) } return $result; } - diff --git a/generated/outcontrol.php b/generated/outcontrol.php index eb1382b9..e7befbd0 100644 --- a/generated/outcontrol.php +++ b/generated/outcontrol.php @@ -144,4 +144,3 @@ function output_reset_rewrite_vars(): void throw OutcontrolException::createFromPhpError(); } } - diff --git a/generated/password.php b/generated/password.php index a08d0cbc..672e803c 100644 --- a/generated/password.php +++ b/generated/password.php @@ -117,7 +117,7 @@ * @throws PasswordException * */ -function password_hash(string $password, $algo, array $options = []): string +function password_hash(string $password, $algo, array $options = []): string { error_clear_last(); $result = \password_hash($password, $algo, $options); @@ -126,4 +126,3 @@ function password_hash(string $password, $algo, array $options = []): string } return $result; } - diff --git a/generated/pcntl.php b/generated/pcntl.php index 935c5ddb..1cb721e2 100644 --- a/generated/pcntl.php +++ b/generated/pcntl.php @@ -27,7 +27,7 @@ function pcntl_exec(string $path, array $args = null, array $envs = null): void $result = \pcntl_exec($path, $args, $envs); } elseif ($args !== null) { $result = \pcntl_exec($path, $args); - }else { + } else { $result = \pcntl_exec($path); } if ($result === false) { @@ -57,7 +57,7 @@ function pcntl_getpriority(int $pid = null, int $process_identifier = PRIO_PROCE $result = \pcntl_getpriority($pid, $process_identifier); } elseif ($pid !== null) { $result = \pcntl_getpriority($pid); - }else { + } else { $result = \pcntl_getpriority(); } if ($result === false) { @@ -90,7 +90,7 @@ function pcntl_setpriority(int $priority, int $pid = null, int $process_identifi $result = \pcntl_setpriority($priority, $pid, $process_identifier); } elseif ($pid !== null) { $result = \pcntl_setpriority($priority, $pid); - }else { + } else { $result = \pcntl_setpriority($priority); } if ($result === false) { @@ -164,4 +164,3 @@ function pcntl_strerror(int $errno): string } return $result; } - diff --git a/generated/pcre.php b/generated/pcre.php index 1848ef01..53ebff61 100644 --- a/generated/pcre.php +++ b/generated/pcre.php @@ -657,4 +657,3 @@ function preg_split(string $pattern, string $subject, ?int $limit = -1, int $fla } return $result; } - diff --git a/generated/pgsql.php b/generated/pgsql.php index d7125e06..d824e282 100644 --- a/generated/pgsql.php +++ b/generated/pgsql.php @@ -14,7 +14,7 @@ * @throws PgsqlException * */ -function pg_cancel_query( $connection): void +function pg_cancel_query($connection): void { error_clear_last(); $result = \pg_cancel_query($connection); @@ -39,12 +39,12 @@ function pg_cancel_query( $connection): void * @throws PgsqlException * */ -function pg_client_encoding( $connection = null): string +function pg_client_encoding($connection = null): string { error_clear_last(); if ($connection !== null) { $result = \pg_client_encoding($connection); - }else { + } else { $result = \pg_client_encoding(); } if ($result === false) { @@ -69,12 +69,12 @@ function pg_client_encoding( $connection = null): string * @throws PgsqlException * */ -function pg_close( $connection = null): void +function pg_close($connection = null): void { error_clear_last(); if ($connection !== null) { $result = \pg_close($connection); - }else { + } else { $result = \pg_close(); } if ($result === false) { @@ -135,7 +135,7 @@ function pg_connect(string $connection_string, int $connect_type = null) error_clear_last(); if ($connect_type !== null) { $result = \pg_connect($connection_string, $connect_type); - }else { + } else { $result = \pg_connect($connection_string); } if ($result === false) { @@ -153,7 +153,7 @@ function pg_connect(string $connection_string, int $connect_type = null) * @throws PgsqlException * */ -function pg_connection_reset( $connection): void +function pg_connection_reset($connection): void { error_clear_last(); $result = \pg_connection_reset($connection); @@ -184,7 +184,7 @@ function pg_connection_reset( $connection): void * @throws PgsqlException * */ -function pg_convert( $connection, string $table_name, array $assoc_array, int $options = 0): array +function pg_convert($connection, string $table_name, array $assoc_array, int $options = 0): array { error_clear_last(); $result = \pg_convert($connection, $table_name, $assoc_array, $options); @@ -213,14 +213,14 @@ function pg_convert( $connection, string $table_name, array $assoc_array, int $o * @throws PgsqlException * */ -function pg_copy_from( $connection, string $table_name, array $rows, string $delimiter = null, string $null_as = null): void +function pg_copy_from($connection, string $table_name, array $rows, string $delimiter = null, string $null_as = null): void { error_clear_last(); if ($null_as !== null) { $result = \pg_copy_from($connection, $table_name, $rows, $delimiter, $null_as); } elseif ($delimiter !== null) { $result = \pg_copy_from($connection, $table_name, $rows, $delimiter); - }else { + } else { $result = \pg_copy_from($connection, $table_name, $rows); } if ($result === false) { @@ -245,14 +245,14 @@ function pg_copy_from( $connection, string $table_name, array $rows, string $del * @throws PgsqlException * */ -function pg_copy_to( $connection, string $table_name, string $delimiter = null, string $null_as = null): array +function pg_copy_to($connection, string $table_name, string $delimiter = null, string $null_as = null): array { error_clear_last(); if ($null_as !== null) { $result = \pg_copy_to($connection, $table_name, $delimiter, $null_as); } elseif ($delimiter !== null) { $result = \pg_copy_to($connection, $table_name, $delimiter); - }else { + } else { $result = \pg_copy_to($connection, $table_name); } if ($result === false) { @@ -276,12 +276,12 @@ function pg_copy_to( $connection, string $table_name, string $delimiter = null, * @throws PgsqlException * */ -function pg_dbname( $connection = null): string +function pg_dbname($connection = null): string { error_clear_last(); if ($connection !== null) { $result = \pg_dbname($connection); - }else { + } else { $result = \pg_dbname(); } if ($result === false) { @@ -329,7 +329,7 @@ function pg_dbname( $connection = null): string * @throws PgsqlException * */ -function pg_delete( $connection, string $table_name, array $assoc_array, int $options = PGSQL_DML_EXEC) +function pg_delete($connection, string $table_name, array $assoc_array, int $options = PGSQL_DML_EXEC) { error_clear_last(); $result = \pg_delete($connection, $table_name, $assoc_array, $options); @@ -355,12 +355,12 @@ function pg_delete( $connection, string $table_name, array $assoc_array, int $op * @throws PgsqlException * */ -function pg_end_copy( $connection = null): void +function pg_end_copy($connection = null): void { error_clear_last(); if ($connection !== null) { $result = \pg_end_copy($connection); - }else { + } else { $result = \pg_end_copy(); } if ($result === false) { @@ -403,7 +403,7 @@ function pg_end_copy( $connection = null): void * @throws PgsqlException * */ -function pg_execute( $connection = null, string $stmtname = null, array $params = null) +function pg_execute($connection = null, string $stmtname = null, array $params = null) { error_clear_last(); if ($params !== null) { @@ -412,7 +412,7 @@ function pg_execute( $connection = null, string $stmtname = null, array $params $result = \pg_execute($connection, $stmtname); } elseif ($connection !== null) { $result = \pg_execute($connection); - }else { + } else { $result = \pg_execute(); } if ($result === false) { @@ -436,7 +436,7 @@ function pg_execute( $connection = null, string $stmtname = null, array $params * @throws PgsqlException * */ -function pg_field_name( $result, int $field_number): string +function pg_field_name($result, int $field_number): string { error_clear_last(); $result = \pg_field_name($result, $field_number); @@ -462,7 +462,7 @@ function pg_field_name( $result, int $field_number): string * @throws PgsqlException * */ -function pg_field_table( $result, int $field_number, bool $oid_only = false) +function pg_field_table($result, int $field_number, bool $oid_only = false) { error_clear_last(); $result = \pg_field_table($result, $field_number, $oid_only); @@ -486,7 +486,7 @@ function pg_field_table( $result, int $field_number, bool $oid_only = false) * @throws PgsqlException * */ -function pg_field_type( $result, int $field_number): string +function pg_field_type($result, int $field_number): string { error_clear_last(); $result = \pg_field_type($result, $field_number); @@ -508,7 +508,7 @@ function pg_field_type( $result, int $field_number): string * @throws PgsqlException * */ -function pg_flush( $connection) +function pg_flush($connection) { error_clear_last(); $result = \pg_flush($connection); @@ -533,7 +533,7 @@ function pg_flush( $connection) * @throws PgsqlException * */ -function pg_free_result( $result): void +function pg_free_result($result): void { error_clear_last(); $result = \pg_free_result($result); @@ -557,12 +557,12 @@ function pg_free_result( $result): void * @throws PgsqlException * */ -function pg_host( $connection = null): string +function pg_host($connection = null): string { error_clear_last(); if ($connection !== null) { $result = \pg_host($connection); - }else { + } else { $result = \pg_host(); } if ($result === false) { @@ -611,7 +611,7 @@ function pg_host( $connection = null): string * @throws PgsqlException * */ -function pg_insert( $connection, string $table_name, array $assoc_array, int $options = PGSQL_DML_EXEC) +function pg_insert($connection, string $table_name, array $assoc_array, int $options = PGSQL_DML_EXEC) { error_clear_last(); $result = \pg_insert($connection, $table_name, $assoc_array, $options); @@ -643,12 +643,12 @@ function pg_insert( $connection, string $table_name, array $assoc_array, int $op * @throws PgsqlException * */ -function pg_last_error( $connection = null): string +function pg_last_error($connection = null): string { error_clear_last(); if ($connection !== null) { $result = \pg_last_error($connection); - }else { + } else { $result = \pg_last_error(); } if ($result === false) { @@ -688,7 +688,7 @@ function pg_last_error( $connection = null): string * @throws PgsqlException * */ -function pg_last_notice( $connection, int $option = PGSQL_NOTICE_LAST): string +function pg_last_notice($connection, int $option = PGSQL_NOTICE_LAST): string { error_clear_last(); $result = \pg_last_notice($connection, $option); @@ -728,7 +728,7 @@ function pg_last_notice( $connection, int $option = PGSQL_NOTICE_LAST): string * @throws PgsqlException * */ -function pg_last_oid( $result): string +function pg_last_oid($result): string { error_clear_last(); $result = \pg_last_oid($result); @@ -751,7 +751,7 @@ function pg_last_oid( $result): string * @throws PgsqlException * */ -function pg_lo_close( $large_object): void +function pg_lo_close($large_object): void { error_clear_last(); $result = \pg_lo_close($large_object); @@ -779,7 +779,7 @@ function pg_lo_close( $large_object): void * @throws PgsqlException * */ -function pg_lo_export( $connection = null, int $oid = null, string $pathname = null): void +function pg_lo_export($connection = null, int $oid = null, string $pathname = null): void { error_clear_last(); if ($pathname !== null) { @@ -788,7 +788,7 @@ function pg_lo_export( $connection = null, int $oid = null, string $pathname = n $result = \pg_lo_export($connection, $oid); } elseif ($connection !== null) { $result = \pg_lo_export($connection); - }else { + } else { $result = \pg_lo_export(); } if ($result === false) { @@ -820,7 +820,7 @@ function pg_lo_export( $connection = null, int $oid = null, string $pathname = n * @throws PgsqlException * */ -function pg_lo_import( $connection = null, string $pathname = null, $object_id = null): int +function pg_lo_import($connection = null, string $pathname = null, $object_id = null): int { error_clear_last(); if ($object_id !== null) { @@ -829,7 +829,7 @@ function pg_lo_import( $connection = null, string $pathname = null, $object_id $result = \pg_lo_import($connection, $pathname); } elseif ($connection !== null) { $result = \pg_lo_import($connection); - }else { + } else { $result = \pg_lo_import(); } if ($result === false) { @@ -857,7 +857,7 @@ function pg_lo_import( $connection = null, string $pathname = null, $object_id * @throws PgsqlException * */ -function pg_lo_open( $connection, int $oid, string $mode) +function pg_lo_open($connection, int $oid, string $mode) { error_clear_last(); $result = \pg_lo_open($connection, $oid, $mode); @@ -882,7 +882,7 @@ function pg_lo_open( $connection, int $oid, string $mode) * @throws PgsqlException * */ -function pg_lo_read_all( $large_object): int +function pg_lo_read_all($large_object): int { error_clear_last(); $result = \pg_lo_read_all($large_object); @@ -908,7 +908,7 @@ function pg_lo_read_all( $large_object): int * @throws PgsqlException * */ -function pg_lo_read( $large_object, int $len = 8192): string +function pg_lo_read($large_object, int $len = 8192): string { error_clear_last(); $result = \pg_lo_read($large_object, $len); @@ -934,7 +934,7 @@ function pg_lo_read( $large_object, int $len = 8192): string * @throws PgsqlException * */ -function pg_lo_seek( $large_object, int $offset, int $whence = PGSQL_SEEK_CUR): void +function pg_lo_seek($large_object, int $offset, int $whence = PGSQL_SEEK_CUR): void { error_clear_last(); $result = \pg_lo_seek($large_object, $offset, $whence); @@ -956,7 +956,7 @@ function pg_lo_seek( $large_object, int $offset, int $whence = PGSQL_SEEK_CUR): * @throws PgsqlException * */ -function pg_lo_truncate( $large_object, int $size): void +function pg_lo_truncate($large_object, int $size): void { error_clear_last(); $result = \pg_lo_truncate($large_object, $size); @@ -981,7 +981,7 @@ function pg_lo_truncate( $large_object, int $size): void * @throws PgsqlException * */ -function pg_lo_unlink( $connection, int $oid): void +function pg_lo_unlink($connection, int $oid): void { error_clear_last(); $result = \pg_lo_unlink($connection, $oid); @@ -1009,12 +1009,12 @@ function pg_lo_unlink( $connection, int $oid): void * @throws PgsqlException * */ -function pg_lo_write( $large_object, string $data, int $len = null): int +function pg_lo_write($large_object, string $data, int $len = null): int { error_clear_last(); if ($len !== null) { $result = \pg_lo_write($large_object, $data, $len); - }else { + } else { $result = \pg_lo_write($large_object, $data); } if ($result === false) { @@ -1035,7 +1035,7 @@ function pg_lo_write( $large_object, string $data, int $len = null): int * @throws PgsqlException * */ -function pg_meta_data( $connection, string $table_name, bool $extended = false): array +function pg_meta_data($connection, string $table_name, bool $extended = false): array { error_clear_last(); $result = \pg_meta_data($connection, $table_name, $extended); @@ -1060,12 +1060,12 @@ function pg_meta_data( $connection, string $table_name, bool $extended = false): * @throws PgsqlException * */ -function pg_options( $connection = null): string +function pg_options($connection = null): string { error_clear_last(); if ($connection !== null) { $result = \pg_options($connection); - }else { + } else { $result = \pg_options(); } if ($result === false) { @@ -1113,14 +1113,14 @@ function pg_options( $connection = null): string * @throws PgsqlException * */ -function pg_parameter_status( $connection = null, string $param_name = null): string +function pg_parameter_status($connection = null, string $param_name = null): string { error_clear_last(); if ($param_name !== null) { $result = \pg_parameter_status($connection, $param_name); } elseif ($connection !== null) { $result = \pg_parameter_status($connection); - }else { + } else { $result = \pg_parameter_status(); } if ($result === false) { @@ -1179,7 +1179,7 @@ function pg_pconnect(string $connection_string, string $connect_type = null) error_clear_last(); if ($connect_type !== null) { $result = \pg_pconnect($connection_string, $connect_type); - }else { + } else { $result = \pg_pconnect($connection_string); } if ($result === false) { @@ -1200,12 +1200,12 @@ function pg_pconnect(string $connection_string, string $connect_type = null) * @throws PgsqlException * */ -function pg_ping( $connection = null): void +function pg_ping($connection = null): void { error_clear_last(); if ($connection !== null) { $result = \pg_ping($connection); - }else { + } else { $result = \pg_ping(); } if ($result === false) { @@ -1228,12 +1228,12 @@ function pg_ping( $connection = null): void * @throws PgsqlException * */ -function pg_port( $connection = null): int +function pg_port($connection = null): int { error_clear_last(); if ($connection !== null) { $result = \pg_port($connection); - }else { + } else { $result = \pg_port(); } if ($result === false) { @@ -1278,7 +1278,7 @@ function pg_port( $connection = null): int * @throws PgsqlException * */ -function pg_prepare( $connection = null, string $stmtname = null, string $query = null) +function pg_prepare($connection = null, string $stmtname = null, string $query = null) { error_clear_last(); if ($query !== null) { @@ -1287,7 +1287,7 @@ function pg_prepare( $connection = null, string $stmtname = null, string $query $result = \pg_prepare($connection, $stmtname); } elseif ($connection !== null) { $result = \pg_prepare($connection); - }else { + } else { $result = \pg_prepare(); } if ($result === false) { @@ -1319,14 +1319,14 @@ function pg_prepare( $connection = null, string $stmtname = null, string $query * @throws PgsqlException * */ -function pg_put_line( $connection = null, string $data = null): void +function pg_put_line($connection = null, string $data = null): void { error_clear_last(); if ($data !== null) { $result = \pg_put_line($connection, $data); } elseif ($connection !== null) { $result = \pg_put_line($connection); - }else { + } else { $result = \pg_put_line(); } if ($result === false) { @@ -1385,7 +1385,7 @@ function pg_put_line( $connection = null, string $data = null): void * @throws PgsqlException * */ -function pg_query_params( $connection = null, string $query = null, array $params = null) +function pg_query_params($connection = null, string $query = null, array $params = null) { error_clear_last(); if ($params !== null) { @@ -1394,7 +1394,7 @@ function pg_query_params( $connection = null, string $query = null, array $param $result = \pg_query_params($connection, $query); } elseif ($connection !== null) { $result = \pg_query_params($connection); - }else { + } else { $result = \pg_query_params(); } if ($result === false) { @@ -1443,14 +1443,14 @@ function pg_query_params( $connection = null, string $query = null, array $param * @throws PgsqlException * */ -function pg_query( $connection = null, string $query = null) +function pg_query($connection = null, string $query = null) { error_clear_last(); if ($query !== null) { $result = \pg_query($connection, $query); } elseif ($connection !== null) { $result = \pg_query($connection); - }else { + } else { $result = \pg_query(); } if ($result === false) { @@ -1489,7 +1489,7 @@ function pg_query( $connection = null, string $query = null) * @throws PgsqlException * */ -function pg_result_error_field( $result, int $fieldcode): ?string +function pg_result_error_field($result, int $fieldcode): ?string { error_clear_last(); $result = \pg_result_error_field($result, $fieldcode); @@ -1512,7 +1512,7 @@ function pg_result_error_field( $result, int $fieldcode): ?string * @throws PgsqlException * */ -function pg_result_seek( $result, int $offset): void +function pg_result_seek($result, int $offset): void { error_clear_last(); $result = \pg_result_seek($result, $offset); @@ -1561,7 +1561,7 @@ function pg_result_seek( $result, int $offset): void * @throws PgsqlException * */ -function pg_select( $connection, string $table_name, array $assoc_array, int $options = PGSQL_DML_EXEC, int $result_type = PGSQL_ASSOC) +function pg_select($connection, string $table_name, array $assoc_array, int $options = PGSQL_DML_EXEC, int $result_type = PGSQL_ASSOC) { error_clear_last(); $result = \pg_select($connection, $table_name, $assoc_array, $options, $result_type); @@ -1597,7 +1597,7 @@ function pg_select( $connection, string $table_name, array $assoc_array, int $op * @throws PgsqlException * */ -function pg_send_execute( $connection, string $stmtname, array $params): void +function pg_send_execute($connection, string $stmtname, array $params): void { error_clear_last(); $result = \pg_send_execute($connection, $stmtname, $params); @@ -1631,7 +1631,7 @@ function pg_send_execute( $connection, string $stmtname, array $params): void * @throws PgsqlException * */ -function pg_send_prepare( $connection, string $stmtname, string $query): void +function pg_send_prepare($connection, string $stmtname, string $query): void { error_clear_last(); $result = \pg_send_prepare($connection, $stmtname, $query); @@ -1662,7 +1662,7 @@ function pg_send_prepare( $connection, string $stmtname, string $query): void * @throws PgsqlException * */ -function pg_send_query_params( $connection, string $query, array $params): void +function pg_send_query_params($connection, string $query, array $params): void { error_clear_last(); $result = \pg_send_query_params($connection, $query, $params); @@ -1696,7 +1696,7 @@ function pg_send_query_params( $connection, string $query, array $params): void * @throws PgsqlException * */ -function pg_send_query( $connection, string $query): void +function pg_send_query($connection, string $query): void { error_clear_last(); $result = \pg_send_query($connection, $query); @@ -1715,7 +1715,7 @@ function pg_send_query( $connection, string $query): void * @throws PgsqlException * */ -function pg_socket( $connection) +function pg_socket($connection) { error_clear_last(); $result = \pg_socket($connection); @@ -1749,12 +1749,12 @@ function pg_socket( $connection) * @throws PgsqlException * */ -function pg_trace(string $pathname, string $mode = "w", $connection = null): void +function pg_trace(string $pathname, string $mode = "w", $connection = null): void { error_clear_last(); if ($connection !== null) { $result = \pg_trace($pathname, $mode, $connection); - }else { + } else { $result = \pg_trace($pathname, $mode); } if ($result === false) { @@ -1777,12 +1777,12 @@ function pg_trace(string $pathname, string $mode = "w", $connection = null): vo * @throws PgsqlException * */ -function pg_tty( $connection = null): string +function pg_tty($connection = null): string { error_clear_last(); if ($connection !== null) { $result = \pg_tty($connection); - }else { + } else { $result = \pg_tty(); } if ($result === false) { @@ -1836,7 +1836,7 @@ function pg_tty( $connection = null): string * @throws PgsqlException * */ -function pg_update( $connection, string $table_name, array $data, array $condition, int $options = PGSQL_DML_EXEC) +function pg_update($connection, string $table_name, array $data, array $condition, int $options = PGSQL_DML_EXEC) { error_clear_last(); $result = \pg_update($connection, $table_name, $data, $condition, $options); @@ -1863,12 +1863,12 @@ function pg_update( $connection, string $table_name, array $data, array $conditi * @throws PgsqlException * */ -function pg_version( $connection = null): array +function pg_version($connection = null): array { error_clear_last(); if ($connection !== null) { $result = \pg_version($connection); - }else { + } else { $result = \pg_version(); } if ($result === false) { @@ -1876,4 +1876,3 @@ function pg_version( $connection = null): array } return $result; } - diff --git a/generated/posix.php b/generated/posix.php index cbaca5cf..1532a9a5 100644 --- a/generated/posix.php +++ b/generated/posix.php @@ -751,4 +751,3 @@ function posix_uname(): array } return $result; } - diff --git a/generated/ps.php b/generated/ps.php index f292092c..a2dca797 100644 --- a/generated/ps.php +++ b/generated/ps.php @@ -25,7 +25,7 @@ * @throws PsException * */ -function ps_add_launchlink( $psdoc, float $llx, float $lly, float $urx, float $ury, string $filename): void +function ps_add_launchlink($psdoc, float $llx, float $lly, float $urx, float $ury, string $filename): void { error_clear_last(); $result = \ps_add_launchlink($psdoc, $llx, $lly, $urx, $ury, $filename); @@ -63,7 +63,7 @@ function ps_add_launchlink( $psdoc, float $llx, float $lly, float $urx, float $u * @throws PsException * */ -function ps_add_locallink( $psdoc, float $llx, float $lly, float $urx, float $ury, int $page, string $dest): void +function ps_add_locallink($psdoc, float $llx, float $lly, float $urx, float $ury, int $page, string $dest): void { error_clear_last(); $result = \ps_add_locallink($psdoc, $llx, $lly, $urx, $ury, $page, $dest); @@ -102,7 +102,7 @@ function ps_add_locallink( $psdoc, float $llx, float $lly, float $urx, float $ur * @throws PsException * */ -function ps_add_note( $psdoc, float $llx, float $lly, float $urx, float $ury, string $contents, string $title, string $icon, int $open): void +function ps_add_note($psdoc, float $llx, float $lly, float $urx, float $ury, string $contents, string $title, string $icon, int $open): void { error_clear_last(); $result = \ps_add_note($psdoc, $llx, $lly, $urx, $ury, $contents, $title, $icon, $open); @@ -142,7 +142,7 @@ function ps_add_note( $psdoc, float $llx, float $lly, float $urx, float $ury, st * @throws PsException * */ -function ps_add_pdflink( $psdoc, float $llx, float $lly, float $urx, float $ury, string $filename, int $page, string $dest): void +function ps_add_pdflink($psdoc, float $llx, float $lly, float $urx, float $ury, string $filename, int $page, string $dest): void { error_clear_last(); $result = \ps_add_pdflink($psdoc, $llx, $lly, $urx, $ury, $filename, $page, $dest); @@ -175,7 +175,7 @@ function ps_add_pdflink( $psdoc, float $llx, float $lly, float $urx, float $ury, * @throws PsException * */ -function ps_add_weblink( $psdoc, float $llx, float $lly, float $urx, float $ury, string $url): void +function ps_add_weblink($psdoc, float $llx, float $lly, float $urx, float $ury, string $url): void { error_clear_last(); $result = \ps_add_weblink($psdoc, $llx, $lly, $urx, $ury, $url); @@ -204,7 +204,7 @@ function ps_add_weblink( $psdoc, float $llx, float $lly, float $urx, float $ury, * @throws PsException * */ -function ps_arc( $psdoc, float $x, float $y, float $radius, float $alpha, float $beta): void +function ps_arc($psdoc, float $x, float $y, float $radius, float $alpha, float $beta): void { error_clear_last(); $result = \ps_arc($psdoc, $x, $y, $radius, $alpha, $beta); @@ -233,7 +233,7 @@ function ps_arc( $psdoc, float $x, float $y, float $radius, float $alpha, float * @throws PsException * */ -function ps_arcn( $psdoc, float $x, float $y, float $radius, float $alpha, float $beta): void +function ps_arcn($psdoc, float $x, float $y, float $radius, float $alpha, float $beta): void { error_clear_last(); $result = \ps_arcn($psdoc, $x, $y, $radius, $alpha, $beta); @@ -284,7 +284,7 @@ function ps_arcn( $psdoc, float $x, float $y, float $radius, float $alpha, float * @throws PsException * */ -function ps_begin_page( $psdoc, float $width, float $height): void +function ps_begin_page($psdoc, float $width, float $height): void { error_clear_last(); $result = \ps_begin_page($psdoc, $width, $height); @@ -313,7 +313,7 @@ function ps_begin_page( $psdoc, float $width, float $height): void * @throws PsException * */ -function ps_begin_pattern( $psdoc, float $width, float $height, float $xstep, float $ystep, int $painttype): int +function ps_begin_pattern($psdoc, float $width, float $height, float $xstep, float $ystep, int $painttype): int { error_clear_last(); $result = \ps_begin_pattern($psdoc, $width, $height, $xstep, $ystep, $painttype); @@ -340,7 +340,7 @@ function ps_begin_pattern( $psdoc, float $width, float $height, float $xstep, fl * @throws PsException * */ -function ps_begin_template( $psdoc, float $width, float $height): int +function ps_begin_template($psdoc, float $width, float $height): int { error_clear_last(); $result = \ps_begin_template($psdoc, $width, $height); @@ -369,7 +369,7 @@ function ps_begin_template( $psdoc, float $width, float $height): int * @throws PsException * */ -function ps_circle( $psdoc, float $x, float $y, float $radius): void +function ps_circle($psdoc, float $x, float $y, float $radius): void { error_clear_last(); $result = \ps_circle($psdoc, $x, $y, $radius); @@ -388,7 +388,7 @@ function ps_circle( $psdoc, float $x, float $y, float $radius): void * @throws PsException * */ -function ps_clip( $psdoc): void +function ps_clip($psdoc): void { error_clear_last(); $result = \ps_clip($psdoc); @@ -410,7 +410,7 @@ function ps_clip( $psdoc): void * @throws PsException * */ -function ps_close_image( $psdoc, int $imageid): void +function ps_close_image($psdoc, int $imageid): void { error_clear_last(); $result = \ps_close_image($psdoc, $imageid); @@ -435,7 +435,7 @@ function ps_close_image( $psdoc, int $imageid): void * @throws PsException * */ -function ps_close( $psdoc): void +function ps_close($psdoc): void { error_clear_last(); $result = \ps_close($psdoc); @@ -454,7 +454,7 @@ function ps_close( $psdoc): void * @throws PsException * */ -function ps_closepath_stroke( $psdoc): void +function ps_closepath_stroke($psdoc): void { error_clear_last(); $result = \ps_closepath_stroke($psdoc); @@ -473,7 +473,7 @@ function ps_closepath_stroke( $psdoc): void * @throws PsException * */ -function ps_closepath( $psdoc): void +function ps_closepath($psdoc): void { error_clear_last(); $result = \ps_closepath($psdoc); @@ -496,7 +496,7 @@ function ps_closepath( $psdoc): void * @throws PsException * */ -function ps_continue_text( $psdoc, string $text): void +function ps_continue_text($psdoc, string $text): void { error_clear_last(); $result = \ps_continue_text($psdoc, $text); @@ -521,7 +521,7 @@ function ps_continue_text( $psdoc, string $text): void * @throws PsException * */ -function ps_curveto( $psdoc, float $x1, float $y1, float $x2, float $y2, float $x3, float $y3): void +function ps_curveto($psdoc, float $x1, float $y1, float $x2, float $y2, float $x3, float $y3): void { error_clear_last(); $result = \ps_curveto($psdoc, $x1, $y1, $x2, $y2, $x3, $y3); @@ -544,7 +544,7 @@ function ps_curveto( $psdoc, float $x1, float $y1, float $x2, float $y2, float $ * @throws PsException * */ -function ps_delete( $psdoc): void +function ps_delete($psdoc): void { error_clear_last(); $result = \ps_delete($psdoc); @@ -565,7 +565,7 @@ function ps_delete( $psdoc): void * @throws PsException * */ -function ps_end_page( $psdoc): void +function ps_end_page($psdoc): void { error_clear_last(); $result = \ps_end_page($psdoc); @@ -585,7 +585,7 @@ function ps_end_page( $psdoc): void * @throws PsException * */ -function ps_end_pattern( $psdoc): void +function ps_end_pattern($psdoc): void { error_clear_last(); $result = \ps_end_pattern($psdoc); @@ -604,7 +604,7 @@ function ps_end_pattern( $psdoc): void * @throws PsException * */ -function ps_end_template( $psdoc): void +function ps_end_template($psdoc): void { error_clear_last(); $result = \ps_end_template($psdoc); @@ -623,7 +623,7 @@ function ps_end_template( $psdoc): void * @throws PsException * */ -function ps_fill_stroke( $psdoc): void +function ps_fill_stroke($psdoc): void { error_clear_last(); $result = \ps_fill_stroke($psdoc); @@ -642,7 +642,7 @@ function ps_fill_stroke( $psdoc): void * @throws PsException * */ -function ps_fill( $psdoc): void +function ps_fill($psdoc): void { error_clear_last(); $result = \ps_fill($psdoc); @@ -778,12 +778,12 @@ function ps_fill( $psdoc): void * @throws PsException * */ -function ps_get_parameter( $psdoc, string $name, float $modifier = null): string +function ps_get_parameter($psdoc, string $name, float $modifier = null): string { error_clear_last(); if ($modifier !== null) { $result = \ps_get_parameter($psdoc, $name, $modifier); - }else { + } else { $result = \ps_get_parameter($psdoc, $name); } if ($result === false) { @@ -814,7 +814,7 @@ function ps_get_parameter( $psdoc, string $name, float $modifier = null): string * @throws PsException * */ -function ps_hyphenate( $psdoc, string $text): array +function ps_hyphenate($psdoc, string $text): array { error_clear_last(); $result = \ps_hyphenate($psdoc, $text); @@ -836,7 +836,7 @@ function ps_hyphenate( $psdoc, string $text): array * @throws PsException * */ -function ps_include_file( $psdoc, string $file): void +function ps_include_file($psdoc, string $file): void { error_clear_last(); $result = \ps_include_file($psdoc, $file); @@ -858,7 +858,7 @@ function ps_include_file( $psdoc, string $file): void * @throws PsException * */ -function ps_lineto( $psdoc, float $x, float $y): void +function ps_lineto($psdoc, float $x, float $y): void { error_clear_last(); $result = \ps_lineto($psdoc, $x, $y); @@ -881,7 +881,7 @@ function ps_lineto( $psdoc, float $x, float $y): void * @throws PsException * */ -function ps_moveto( $psdoc, float $x, float $y): void +function ps_moveto($psdoc, float $x, float $y): void { error_clear_last(); $result = \ps_moveto($psdoc, $x, $y); @@ -925,12 +925,12 @@ function ps_new() * @throws PsException * */ -function ps_open_file( $psdoc, string $filename = null): void +function ps_open_file($psdoc, string $filename = null): void { error_clear_last(); if ($filename !== null) { $result = \ps_open_file($psdoc, $filename); - }else { + } else { $result = \ps_open_file($psdoc); } if ($result === false) { @@ -957,7 +957,7 @@ function ps_open_file( $psdoc, string $filename = null): void * @throws PsException * */ -function ps_place_image( $psdoc, int $imageid, float $x, float $y, float $scale): void +function ps_place_image($psdoc, int $imageid, float $x, float $y, float $scale): void { error_clear_last(); $result = \ps_place_image($psdoc, $imageid, $x, $y, $scale); @@ -984,7 +984,7 @@ function ps_place_image( $psdoc, int $imageid, float $x, float $y, float $scale) * @throws PsException * */ -function ps_rect( $psdoc, float $x, float $y, float $width, float $height): void +function ps_rect($psdoc, float $x, float $y, float $width, float $height): void { error_clear_last(); $result = \ps_rect($psdoc, $x, $y, $width, $height); @@ -1006,7 +1006,7 @@ function ps_rect( $psdoc, float $x, float $y, float $width, float $height): void * @throws PsException * */ -function ps_restore( $psdoc): void +function ps_restore($psdoc): void { error_clear_last(); $result = \ps_restore($psdoc); @@ -1025,7 +1025,7 @@ function ps_restore( $psdoc): void * @throws PsException * */ -function ps_rotate( $psdoc, float $rot): void +function ps_rotate($psdoc, float $rot): void { error_clear_last(); $result = \ps_rotate($psdoc, $rot); @@ -1045,7 +1045,7 @@ function ps_rotate( $psdoc, float $rot): void * @throws PsException * */ -function ps_save( $psdoc): void +function ps_save($psdoc): void { error_clear_last(); $result = \ps_save($psdoc); @@ -1065,7 +1065,7 @@ function ps_save( $psdoc): void * @throws PsException * */ -function ps_scale( $psdoc, float $x, float $y): void +function ps_scale($psdoc, float $x, float $y): void { error_clear_last(); $result = \ps_scale($psdoc, $x, $y); @@ -1091,7 +1091,7 @@ function ps_scale( $psdoc, float $x, float $y): void * @throws PsException * */ -function ps_set_border_color( $psdoc, float $red, float $green, float $blue): void +function ps_set_border_color($psdoc, float $red, float $green, float $blue): void { error_clear_last(); $result = \ps_set_border_color($psdoc, $red, $green, $blue); @@ -1117,7 +1117,7 @@ function ps_set_border_color( $psdoc, float $red, float $green, float $blue): vo * @throws PsException * */ -function ps_set_border_dash( $psdoc, float $black, float $white): void +function ps_set_border_dash($psdoc, float $black, float $white): void { error_clear_last(); $result = \ps_set_border_dash($psdoc, $black, $white); @@ -1143,7 +1143,7 @@ function ps_set_border_dash( $psdoc, float $black, float $white): void * @throws PsException * */ -function ps_set_border_style( $psdoc, string $style, float $width): void +function ps_set_border_style($psdoc, string $style, float $width): void { error_clear_last(); $result = \ps_set_border_style($psdoc, $style, $width); @@ -1190,7 +1190,7 @@ function ps_set_border_style( $psdoc, string $style, float $width): void * @throws PsException * */ -function ps_set_info( $p, string $key, string $val): void +function ps_set_info($p, string $key, string $val): void { error_clear_last(); $result = \ps_set_info($p, $key, $val); @@ -1211,7 +1211,7 @@ function ps_set_info( $p, string $key, string $val): void * @throws PsException * */ -function ps_set_parameter( $psdoc, string $name, string $value): void +function ps_set_parameter($psdoc, string $name, string $value): void { error_clear_last(); $result = \ps_set_parameter($psdoc, $name, $value); @@ -1238,7 +1238,7 @@ function ps_set_parameter( $psdoc, string $name, string $value): void * @throws PsException * */ -function ps_set_text_pos( $psdoc, float $x, float $y): void +function ps_set_text_pos($psdoc, float $x, float $y): void { error_clear_last(); $result = \ps_set_text_pos($psdoc, $x, $y); @@ -1311,7 +1311,7 @@ function ps_set_text_pos( $psdoc, float $x, float $y): void * @throws PsException * */ -function ps_set_value( $psdoc, string $name, float $value): void +function ps_set_value($psdoc, string $name, float $value): void { error_clear_last(); $result = \ps_set_value($psdoc, $name, $value); @@ -1346,7 +1346,7 @@ function ps_set_value( $psdoc, string $name, float $value): void * @throws PsException * */ -function ps_setcolor( $psdoc, string $type, string $colorspace, float $c1, float $c2, float $c3, float $c4): void +function ps_setcolor($psdoc, string $type, string $colorspace, float $c1, float $c2, float $c3, float $c4): void { error_clear_last(); $result = \ps_setcolor($psdoc, $type, $colorspace, $c1, $c2, $c3, $c4); @@ -1366,7 +1366,7 @@ function ps_setcolor( $psdoc, string $type, string $colorspace, float $c1, float * @throws PsException * */ -function ps_setdash( $psdoc, float $on, float $off): void +function ps_setdash($psdoc, float $on, float $off): void { error_clear_last(); $result = \ps_setdash($psdoc, $on, $off); @@ -1387,7 +1387,7 @@ function ps_setdash( $psdoc, float $on, float $off): void * @throws PsException * */ -function ps_setflat( $psdoc, float $value): void +function ps_setflat($psdoc, float $value): void { error_clear_last(); $result = \ps_setflat($psdoc, $value); @@ -1409,7 +1409,7 @@ function ps_setflat( $psdoc, float $value): void * @throws PsException * */ -function ps_setfont( $psdoc, int $fontid, float $size): void +function ps_setfont($psdoc, int $fontid, float $size): void { error_clear_last(); $result = \ps_setfont($psdoc, $fontid, $size); @@ -1428,7 +1428,7 @@ function ps_setfont( $psdoc, int $fontid, float $size): void * @throws PsException * */ -function ps_setgray( $psdoc, float $gray): void +function ps_setgray($psdoc, float $gray): void { error_clear_last(); $result = \ps_setgray($psdoc, $gray); @@ -1450,7 +1450,7 @@ function ps_setgray( $psdoc, float $gray): void * @throws PsException * */ -function ps_setlinecap( $psdoc, int $type): void +function ps_setlinecap($psdoc, int $type): void { error_clear_last(); $result = \ps_setlinecap($psdoc, $type); @@ -1472,7 +1472,7 @@ function ps_setlinecap( $psdoc, int $type): void * @throws PsException * */ -function ps_setlinejoin( $psdoc, int $type): void +function ps_setlinejoin($psdoc, int $type): void { error_clear_last(); $result = \ps_setlinejoin($psdoc, $type); @@ -1491,7 +1491,7 @@ function ps_setlinejoin( $psdoc, int $type): void * @throws PsException * */ -function ps_setlinewidth( $psdoc, float $width): void +function ps_setlinewidth($psdoc, float $width): void { error_clear_last(); $result = \ps_setlinewidth($psdoc, $width); @@ -1515,7 +1515,7 @@ function ps_setlinewidth( $psdoc, float $width): void * @throws PsException * */ -function ps_setmiterlimit( $psdoc, float $value): void +function ps_setmiterlimit($psdoc, float $value): void { error_clear_last(); $result = \ps_setmiterlimit($psdoc, $value); @@ -1536,7 +1536,7 @@ function ps_setmiterlimit( $psdoc, float $value): void * @throws PsException * */ -function ps_setoverprintmode( $psdoc, int $mode): void +function ps_setoverprintmode($psdoc, int $mode): void { error_clear_last(); $result = \ps_setoverprintmode($psdoc, $mode); @@ -1558,7 +1558,7 @@ function ps_setoverprintmode( $psdoc, int $mode): void * @throws PsException * */ -function ps_setpolydash( $psdoc, float $arr): void +function ps_setpolydash($psdoc, float $arr): void { error_clear_last(); $result = \ps_setpolydash($psdoc, $arr); @@ -1582,7 +1582,7 @@ function ps_setpolydash( $psdoc, float $arr): void * @throws PsException * */ -function ps_shading_pattern( $psdoc, int $shadingid, string $optlist): int +function ps_shading_pattern($psdoc, int $shadingid, string $optlist): int { error_clear_last(); $result = \ps_shading_pattern($psdoc, $shadingid, $optlist); @@ -1627,7 +1627,7 @@ function ps_shading_pattern( $psdoc, int $shadingid, string $optlist): int * @throws PsException * */ -function ps_shading( $psdoc, string $type, float $x0, float $y0, float $x1, float $y1, float $c1, float $c2, float $c3, float $c4, string $optlist): int +function ps_shading($psdoc, string $type, float $x0, float $y0, float $x1, float $y1, float $c1, float $c2, float $c3, float $c4, string $optlist): int { error_clear_last(); $result = \ps_shading($psdoc, $type, $x0, $y0, $x1, $y1, $c1, $c2, $c3, $c4, $optlist); @@ -1651,7 +1651,7 @@ function ps_shading( $psdoc, string $type, float $x0, float $y0, float $x1, floa * @throws PsException * */ -function ps_shfill( $psdoc, int $shadingid): void +function ps_shfill($psdoc, int $shadingid): void { error_clear_last(); $result = \ps_shfill($psdoc, $shadingid); @@ -1672,7 +1672,7 @@ function ps_shfill( $psdoc, int $shadingid): void * @throws PsException * */ -function ps_show_xy( $psdoc, string $text, float $x, float $y): void +function ps_show_xy($psdoc, string $text, float $x, float $y): void { error_clear_last(); $result = \ps_show_xy($psdoc, $text, $x, $y); @@ -1695,7 +1695,7 @@ function ps_show_xy( $psdoc, string $text, float $x, float $y): void * @throws PsException * */ -function ps_show_xy2( $psdoc, string $text, int $len, float $xcoor, float $ycoor): void +function ps_show_xy2($psdoc, string $text, int $len, float $xcoor, float $ycoor): void { error_clear_last(); $result = \ps_show_xy2($psdoc, $text, $len, $xcoor, $ycoor); @@ -1722,7 +1722,7 @@ function ps_show_xy2( $psdoc, string $text, int $len, float $xcoor, float $ycoor * @throws PsException * */ -function ps_show( $psdoc, string $text): void +function ps_show($psdoc, string $text): void { error_clear_last(); $result = \ps_show($psdoc, $text); @@ -1742,7 +1742,7 @@ function ps_show( $psdoc, string $text): void * @throws PsException * */ -function ps_show2( $psdoc, string $text, int $len): void +function ps_show2($psdoc, string $text, int $len): void { error_clear_last(); $result = \ps_show2($psdoc, $text, $len); @@ -1761,7 +1761,7 @@ function ps_show2( $psdoc, string $text, int $len): void * @throws PsException * */ -function ps_stroke( $psdoc): void +function ps_stroke($psdoc): void { error_clear_last(); $result = \ps_stroke($psdoc); @@ -1782,7 +1782,7 @@ function ps_stroke( $psdoc): void * @throws PsException * */ -function ps_symbol( $psdoc, int $ord): void +function ps_symbol($psdoc, int $ord): void { error_clear_last(); $result = \ps_symbol($psdoc, $ord); @@ -1802,7 +1802,7 @@ function ps_symbol( $psdoc, int $ord): void * @throws PsException * */ -function ps_translate( $psdoc, float $x, float $y): void +function ps_translate($psdoc, float $x, float $y): void { error_clear_last(); $result = \ps_translate($psdoc, $x, $y); @@ -1810,4 +1810,3 @@ function ps_translate( $psdoc, float $x, float $y): void throw PsException::createFromPhpError(); } } - diff --git a/generated/pspell.php b/generated/pspell.php index 7639701e..e4e44a45 100644 --- a/generated/pspell.php +++ b/generated/pspell.php @@ -431,4 +431,3 @@ function pspell_store_replacement(int $dictionary, string $misspelled, string $c throw PspellException::createFromPhpError(); } } - diff --git a/generated/readline.php b/generated/readline.php index ba13d764..ddbf5a35 100644 --- a/generated/readline.php +++ b/generated/readline.php @@ -95,7 +95,7 @@ function readline_read_history(string $filename = null): void error_clear_last(); if ($filename !== null) { $result = \readline_read_history($filename); - }else { + } else { $result = \readline_read_history(); } if ($result === false) { @@ -116,11 +116,10 @@ function readline_write_history(string $filename = null): void error_clear_last(); if ($filename !== null) { $result = \readline_write_history($filename); - }else { + } else { $result = \readline_write_history(); } if ($result === false) { throw ReadlineException::createFromPhpError(); } } - diff --git a/generated/rpminfo.php b/generated/rpminfo.php index 354cd3bf..44de1ce2 100644 --- a/generated/rpminfo.php +++ b/generated/rpminfo.php @@ -19,4 +19,3 @@ function rpmaddtag(int $tag): void throw RpminfoException::createFromPhpError(); } } - diff --git a/generated/rrd.php b/generated/rrd.php index 09747d43..2da227d0 100644 --- a/generated/rrd.php +++ b/generated/rrd.php @@ -120,7 +120,7 @@ function rrd_restore(string $xml_file, string $rrd_file, array $options = null): error_clear_last(); if ($options !== null) { $result = \rrd_restore($xml_file, $rrd_file, $options); - }else { + } else { $result = \rrd_restore($xml_file, $rrd_file); } if ($result === false) { @@ -188,4 +188,3 @@ function rrd_xport(array $options): array } return $result; } - diff --git a/generated/sem.php b/generated/sem.php index dac78a65..02021215 100644 --- a/generated/sem.php +++ b/generated/sem.php @@ -120,7 +120,7 @@ function msg_queue_exists(int $key): void * @throws SemException * */ -function msg_receive( $queue, int $desired_message_type, ?int &$received_message_type, int $max_message_size, &$message, bool $unserialize = true, int $flags = 0, ?int &$error_code = null): void +function msg_receive($queue, int $desired_message_type, ?int &$received_message_type, int $max_message_size, &$message, bool $unserialize = true, int $flags = 0, ?int &$error_code = null): void { error_clear_last(); $result = \msg_receive($queue, $desired_message_type, $received_message_type, $max_message_size, $message, $unserialize, $flags, $error_code); @@ -140,7 +140,7 @@ function msg_receive( $queue, int $desired_message_type, ?int &$received_message * @throws SemException * */ -function msg_remove_queue( $queue): void +function msg_remove_queue($queue): void { error_clear_last(); $result = \msg_remove_queue($queue); @@ -183,7 +183,7 @@ function msg_remove_queue( $queue): void * @throws SemException * */ -function msg_send( $queue, int $message_type, $message, bool $serialize = true, bool $blocking = true, ?int &$error_code = null): void +function msg_send($queue, int $message_type, $message, bool $serialize = true, bool $blocking = true, ?int &$error_code = null): void { error_clear_last(); $result = \msg_send($queue, $message_type, $message, $serialize, $blocking, $error_code); @@ -210,7 +210,7 @@ function msg_send( $queue, int $message_type, $message, bool $serialize = true, * @throws SemException * */ -function msg_set_queue( $queue, array $data): void +function msg_set_queue($queue, array $data): void { error_clear_last(); $result = \msg_set_queue($queue, $data); @@ -303,7 +303,7 @@ function msg_set_queue( $queue, array $data): void * @throws SemException * */ -function msg_stat_queue( $queue): array +function msg_stat_queue($queue): array { error_clear_last(); $result = \msg_stat_queue($queue); @@ -333,7 +333,7 @@ function msg_stat_queue( $queue): array * @throws SemException * */ -function sem_acquire( $semaphore, bool $non_blocking = false): void +function sem_acquire($semaphore, bool $non_blocking = false): void { error_clear_last(); $result = \sem_acquire($semaphore, $non_blocking); @@ -390,7 +390,7 @@ function sem_get(int $key, int $max_acquire = 1, int $permissions = 0666, bool $ * @throws SemException * */ -function sem_release( $semaphore): void +function sem_release($semaphore): void { error_clear_last(); $result = \sem_release($semaphore); @@ -410,7 +410,7 @@ function sem_release( $semaphore): void * @throws SemException * */ -function sem_remove( $semaphore): void +function sem_remove($semaphore): void { error_clear_last(); $result = \sem_remove($semaphore); @@ -449,7 +449,7 @@ function shm_attach(int $key, int $size = null, int $permissions = 0666) $result = \shm_attach($key, $size, $permissions); } elseif ($size !== null) { $result = \shm_attach($key, $size); - }else { + } else { $result = \shm_attach($key); } if ($result === false) { @@ -469,7 +469,7 @@ function shm_attach(int $key, int $size = null, int $permissions = 0666) * @throws SemException * */ -function shm_detach( $shm): void +function shm_detach($shm): void { error_clear_last(); $result = \shm_detach($shm); @@ -498,7 +498,7 @@ function shm_detach( $shm): void * @throws SemException * */ -function shm_put_var( $shm, int $key, $value): void +function shm_put_var($shm, int $key, $value): void { error_clear_last(); $result = \shm_put_var($shm, $key, $value); @@ -517,7 +517,7 @@ function shm_put_var( $shm, int $key, $value): void * @throws SemException * */ -function shm_remove_var( $shm, int $key): void +function shm_remove_var($shm, int $key): void { error_clear_last(); $result = \shm_remove_var($shm, $key); @@ -535,7 +535,7 @@ function shm_remove_var( $shm, int $key): void * @throws SemException * */ -function shm_remove( $shm): void +function shm_remove($shm): void { error_clear_last(); $result = \shm_remove($shm); @@ -543,4 +543,3 @@ function shm_remove( $shm): void throw SemException::createFromPhpError(); } } - diff --git a/generated/session.php b/generated/session.php index dc8e128b..212cf850 100644 --- a/generated/session.php +++ b/generated/session.php @@ -154,7 +154,7 @@ function session_id(string $id = null): string error_clear_last(); if ($id !== null) { $result = \session_id($id); - }else { + } else { $result = \session_id(); } if ($result === false) { @@ -183,7 +183,7 @@ function session_module_name(string $module = null): string error_clear_last(); if ($module !== null) { $result = \session_module_name($module); - }else { + } else { $result = \session_module_name(); } if ($result === false) { @@ -240,7 +240,7 @@ function session_name(string $name = null): string error_clear_last(); if ($name !== null) { $result = \session_name($name); - }else { + } else { $result = \session_name(); } if ($result === false) { @@ -321,7 +321,7 @@ function session_save_path(string $path = null): string error_clear_last(); if ($path !== null) { $result = \session_save_path($path); - }else { + } else { $result = \session_save_path(); } if ($result === false) { @@ -370,4 +370,3 @@ function session_write_close(): void throw SessionException::createFromPhpError(); } } - diff --git a/generated/shmop.php b/generated/shmop.php index 95369554..aa5d8f49 100644 --- a/generated/shmop.php +++ b/generated/shmop.php @@ -12,7 +12,7 @@ * @throws ShmopException * */ -function shmop_delete( $shmop): void +function shmop_delete($shmop): void { error_clear_last(); $result = \shmop_delete($shmop); @@ -34,7 +34,7 @@ function shmop_delete( $shmop): void * @throws ShmopException * */ -function shmop_read( $shmop, int $offset, int $size): string +function shmop_read($shmop, int $offset, int $size): string { error_clear_last(); $result = \shmop_read($shmop, $offset, $size); @@ -43,4 +43,3 @@ function shmop_read( $shmop, int $offset, int $size): string } return $result; } - diff --git a/generated/simplexml.php b/generated/simplexml.php index e57e40d1..c417f8c9 100644 --- a/generated/simplexml.php +++ b/generated/simplexml.php @@ -85,4 +85,3 @@ function simplexml_load_string(string $data, string $class_name = SimpleXMLEleme } return $result; } - diff --git a/generated/sockets.php b/generated/sockets.php index 4bf5fa01..3e175371 100644 --- a/generated/sockets.php +++ b/generated/sockets.php @@ -34,7 +34,7 @@ * @throws SocketsException * */ -function socket_accept( $socket) +function socket_accept($socket) { error_clear_last(); $result = \socket_accept($socket); @@ -54,7 +54,7 @@ function socket_accept( $socket) * @throws SocketsException * */ -function socket_addrinfo_bind( $address) +function socket_addrinfo_bind($address) { error_clear_last(); $result = \socket_addrinfo_bind($address); @@ -74,7 +74,7 @@ function socket_addrinfo_bind( $address) * @throws SocketsException * */ -function socket_addrinfo_connect( $address) +function socket_addrinfo_connect($address) { error_clear_last(); $result = \socket_addrinfo_connect($address); @@ -99,14 +99,14 @@ function socket_addrinfo_connect( $address) * @throws SocketsException * */ -function socket_addrinfo_lookup(string $host, $service = null, array $hints = []): iterable +function socket_addrinfo_lookup(string $host, $service = null, array $hints = []): iterable { error_clear_last(); if ($hints !== []) { $result = \socket_addrinfo_lookup($host, $service, $hints); } elseif ($service !== null) { $result = \socket_addrinfo_lookup($host, $service); - }else { + } else { $result = \socket_addrinfo_lookup($host); } if ($result === false) { @@ -136,7 +136,7 @@ function socket_addrinfo_lookup(string $host, $service = null, array $hints = [ * @throws SocketsException * */ -function socket_bind( $socket, string $address, int $port = 0): void +function socket_bind($socket, string $address, int $port = 0): void { error_clear_last(); $result = \socket_bind($socket, $address, $port); @@ -167,12 +167,12 @@ function socket_bind( $socket, string $address, int $port = 0): void * @throws SocketsException * */ -function socket_connect( $socket, string $address, int $port = null): void +function socket_connect($socket, string $address, int $port = null): void { error_clear_last(); if ($port !== null) { $result = \socket_connect($socket, $address, $port); - }else { + } else { $result = \socket_connect($socket, $address); } if ($result === false) { @@ -291,7 +291,7 @@ function socket_create(int $domain, int $type, int $protocol) * @throws SocketsException * */ -function socket_export_stream( $socket) +function socket_export_stream($socket) { error_clear_last(); $result = \socket_export_stream($socket); @@ -338,7 +338,7 @@ function socket_export_stream( $socket) * @throws SocketsException * */ -function socket_get_option( $socket, int $level, int $option) +function socket_get_option($socket, int $level, int $option) { error_clear_last(); $result = \socket_get_option($socket, $level, $option); @@ -372,7 +372,7 @@ function socket_get_option( $socket, int $level, int $option) * @throws SocketsException * */ -function socket_getpeername( $socket, ?string &$address, ?int &$port = null): void +function socket_getpeername($socket, ?string &$address, ?int &$port = null): void { error_clear_last(); $result = \socket_getpeername($socket, $address, $port); @@ -402,7 +402,7 @@ function socket_getpeername( $socket, ?string &$address, ?int &$port = null): vo * @throws SocketsException * */ -function socket_getsockname( $socket, ?string &$address, ?int &$port = null): void +function socket_getsockname($socket, ?string &$address, ?int &$port = null): void { error_clear_last(); $result = \socket_getsockname($socket, $address, $port); @@ -420,7 +420,7 @@ function socket_getsockname( $socket, ?string &$address, ?int &$port = null): vo * @throws SocketsException * */ -function socket_import_stream( $stream) +function socket_import_stream($stream) { error_clear_last(); $result = \socket_import_stream($stream); @@ -459,7 +459,7 @@ function socket_import_stream( $stream) * @throws SocketsException * */ -function socket_listen( $socket, int $backlog = 0): void +function socket_listen($socket, int $backlog = 0): void { error_clear_last(); $result = \socket_listen($socket, $backlog); @@ -505,7 +505,7 @@ function socket_listen( $socket, int $backlog = 0): void * @throws SocketsException * */ -function socket_read( $socket, int $length, int $mode = PHP_BINARY_READ): string +function socket_read($socket, int $length, int $mode = PHP_BINARY_READ): string { error_clear_last(); $result = \socket_read($socket, $length, $mode); @@ -566,7 +566,7 @@ function socket_read( $socket, int $length, int $mode = PHP_BINARY_READ): string * @throws SocketsException * */ -function socket_send( $socket, string $data, int $length, int $flags): int +function socket_send($socket, string $data, int $length, int $flags): int { error_clear_last(); $result = \socket_send($socket, $data, $length, $flags); @@ -587,7 +587,7 @@ function socket_send( $socket, string $data, int $length, int $flags): int * @throws SocketsException * */ -function socket_sendmsg( $socket, array $message, int $flags = 0): int +function socket_sendmsg($socket, array $message, int $flags = 0): int { error_clear_last(); $result = \socket_sendmsg($socket, $message, $flags); @@ -652,12 +652,12 @@ function socket_sendmsg( $socket, array $message, int $flags = 0): int * @throws SocketsException * */ -function socket_sendto( $socket, string $data, int $length, int $flags, string $address, int $port = null): int +function socket_sendto($socket, string $data, int $length, int $flags, string $address, int $port = null): int { error_clear_last(); if ($port !== null) { $result = \socket_sendto($socket, $data, $length, $flags, $address, $port); - }else { + } else { $result = \socket_sendto($socket, $data, $length, $flags, $address); } if ($result === false) { @@ -681,7 +681,7 @@ function socket_sendto( $socket, string $data, int $length, int $flags, string $ * @throws SocketsException * */ -function socket_set_block( $socket): void +function socket_set_block($socket): void { error_clear_last(); $result = \socket_set_block($socket); @@ -706,7 +706,7 @@ function socket_set_block( $socket): void * @throws SocketsException * */ -function socket_set_nonblock( $socket): void +function socket_set_nonblock($socket): void { error_clear_last(); $result = \socket_set_nonblock($socket); @@ -738,7 +738,7 @@ function socket_set_nonblock( $socket): void * @throws SocketsException * */ -function socket_set_option( $socket, int $level, int $option, $value): void +function socket_set_option($socket, int $level, int $option, $value): void { error_clear_last(); $result = \socket_set_option($socket, $level, $option, $value); @@ -783,7 +783,7 @@ function socket_set_option( $socket, int $level, int $option, $value): void * @throws SocketsException * */ -function socket_shutdown( $socket, int $mode = 2): void +function socket_shutdown($socket, int $mode = 2): void { error_clear_last(); $result = \socket_shutdown($socket, $mode); @@ -804,7 +804,7 @@ function socket_shutdown( $socket, int $mode = 2): void * @throws SocketsException * */ -function socket_wsaprotocol_info_export( $socket, int $process_id): string +function socket_wsaprotocol_info_export($socket, int $process_id): string { error_clear_last(); $result = \socket_wsaprotocol_info_export($socket, $process_id); @@ -851,4 +851,3 @@ function socket_wsaprotocol_info_release(string $info_id): void throw SocketsException::createFromPhpError(); } } - diff --git a/generated/sodium.php b/generated/sodium.php index 0fc554b2..b2b68717 100644 --- a/generated/sodium.php +++ b/generated/sodium.php @@ -301,4 +301,3 @@ function sodium_crypto_sign_verify_detached(string $signature, string $message, throw SodiumException::createFromPhpError(); } } - diff --git a/generated/solr.php b/generated/solr.php index 87c7d727..4d4e0418 100644 --- a/generated/solr.php +++ b/generated/solr.php @@ -20,4 +20,3 @@ function solr_get_version(): string } return $result; } - diff --git a/generated/spl.php b/generated/spl.php index e26c720a..bd655c7f 100644 --- a/generated/spl.php +++ b/generated/spl.php @@ -14,7 +14,7 @@ * @throws SplException * */ -function class_implements( $class, bool $autoload = true): array +function class_implements($class, bool $autoload = true): array { error_clear_last(); $result = \class_implements($class, $autoload); @@ -35,7 +35,7 @@ function class_implements( $class, bool $autoload = true): array * @throws SplException * */ -function class_parents( $class, bool $autoload = true): array +function class_parents($class, bool $autoload = true): array { error_clear_last(); $result = \class_parents($class, $autoload); @@ -57,7 +57,7 @@ function class_parents( $class, bool $autoload = true): array * @throws SplException * */ -function class_uses( $class, bool $autoload = true): array +function class_uses($class, bool $autoload = true): array { error_clear_last(); $result = \class_uses($class, $autoload); @@ -125,7 +125,7 @@ function spl_autoload_register(callable $autoload_function = null, bool $throw = * @throws SplException * */ -function spl_autoload_unregister( $autoload_function): void +function spl_autoload_unregister($autoload_function): void { error_clear_last(); $result = \spl_autoload_unregister($autoload_function); @@ -133,4 +133,3 @@ function spl_autoload_unregister( $autoload_function): void throw SplException::createFromPhpError(); } } - diff --git a/generated/sqlsrv.php b/generated/sqlsrv.php index 6bcd0158..e93aa37a 100644 --- a/generated/sqlsrv.php +++ b/generated/sqlsrv.php @@ -18,7 +18,7 @@ * @throws SqlsrvException * */ -function sqlsrv_begin_transaction( $conn): void +function sqlsrv_begin_transaction($conn): void { error_clear_last(); $result = \sqlsrv_begin_transaction($conn); @@ -40,7 +40,7 @@ function sqlsrv_begin_transaction( $conn): void * @throws SqlsrvException * */ -function sqlsrv_cancel( $stmt): void +function sqlsrv_cancel($stmt): void { error_clear_last(); $result = \sqlsrv_cancel($stmt); @@ -87,7 +87,7 @@ function sqlsrv_cancel( $stmt): void * @throws SqlsrvException * */ -function sqlsrv_client_info( $conn): array +function sqlsrv_client_info($conn): array { error_clear_last(); $result = \sqlsrv_client_info($conn); @@ -105,7 +105,7 @@ function sqlsrv_client_info( $conn): array * @throws SqlsrvException * */ -function sqlsrv_close( $conn): void +function sqlsrv_close($conn): void { error_clear_last(); $result = \sqlsrv_close($conn); @@ -129,7 +129,7 @@ function sqlsrv_close( $conn): void * @throws SqlsrvException * */ -function sqlsrv_commit( $conn): void +function sqlsrv_commit($conn): void { error_clear_last(); $result = \sqlsrv_commit($conn); @@ -181,7 +181,7 @@ function sqlsrv_commit( $conn): void * @throws SqlsrvException * */ -function sqlsrv_configure(string $setting, $value): void +function sqlsrv_configure(string $setting, $value): void { error_clear_last(); $result = \sqlsrv_configure($setting, $value); @@ -200,7 +200,7 @@ function sqlsrv_configure(string $setting, $value): void * @throws SqlsrvException * */ -function sqlsrv_execute( $stmt): void +function sqlsrv_execute($stmt): void { error_clear_last(); $result = \sqlsrv_execute($stmt); @@ -223,7 +223,7 @@ function sqlsrv_execute( $stmt): void * @throws SqlsrvException * */ -function sqlsrv_free_stmt( $stmt): void +function sqlsrv_free_stmt($stmt): void { error_clear_last(); $result = \sqlsrv_free_stmt($stmt); @@ -251,12 +251,12 @@ function sqlsrv_free_stmt( $stmt): void * @throws SqlsrvException * */ -function sqlsrv_get_field( $stmt, int $fieldIndex, int $getAsType = null) +function sqlsrv_get_field($stmt, int $fieldIndex, int $getAsType = null) { error_clear_last(); if ($getAsType !== null) { $result = \sqlsrv_get_field($stmt, $fieldIndex, $getAsType); - }else { + } else { $result = \sqlsrv_get_field($stmt, $fieldIndex); } if ($result === false) { @@ -276,7 +276,7 @@ function sqlsrv_get_field( $stmt, int $fieldIndex, int $getAsType = null) * @throws SqlsrvException * */ -function sqlsrv_next_result( $stmt): ?bool +function sqlsrv_next_result($stmt): ?bool { error_clear_last(); $result = \sqlsrv_next_result($stmt); @@ -297,7 +297,7 @@ function sqlsrv_next_result( $stmt): ?bool * @throws SqlsrvException * */ -function sqlsrv_num_fields( $stmt): int +function sqlsrv_num_fields($stmt): int { error_clear_last(); $result = \sqlsrv_num_fields($stmt); @@ -325,7 +325,7 @@ function sqlsrv_num_fields( $stmt): int * @throws SqlsrvException * */ -function sqlsrv_num_rows( $stmt): int +function sqlsrv_num_rows($stmt): int { error_clear_last(); $result = \sqlsrv_num_rows($stmt); @@ -357,14 +357,14 @@ function sqlsrv_num_rows( $stmt): int * @throws SqlsrvException * */ -function sqlsrv_prepare( $conn, string $sql, array $params = null, array $options = null) +function sqlsrv_prepare($conn, string $sql, array $params = null, array $options = null) { error_clear_last(); if ($options !== null) { $result = \sqlsrv_prepare($conn, $sql, $params, $options); } elseif ($params !== null) { $result = \sqlsrv_prepare($conn, $sql, $params); - }else { + } else { $result = \sqlsrv_prepare($conn, $sql); } if ($result === false) { @@ -394,14 +394,14 @@ function sqlsrv_prepare( $conn, string $sql, array $params = null, array $option * @throws SqlsrvException * */ -function sqlsrv_query( $conn, string $sql, array $params = null, array $options = null) +function sqlsrv_query($conn, string $sql, array $params = null, array $options = null) { error_clear_last(); if ($options !== null) { $result = \sqlsrv_query($conn, $sql, $params, $options); } elseif ($params !== null) { $result = \sqlsrv_query($conn, $sql, $params); - }else { + } else { $result = \sqlsrv_query($conn, $sql); } if ($result === false) { @@ -419,7 +419,7 @@ function sqlsrv_query( $conn, string $sql, array $params = null, array $options * @throws SqlsrvException * */ -function sqlsrv_rollback( $conn): void +function sqlsrv_rollback($conn): void { error_clear_last(); $result = \sqlsrv_rollback($conn); @@ -427,4 +427,3 @@ function sqlsrv_rollback( $conn): void throw SqlsrvException::createFromPhpError(); } } - diff --git a/generated/ssdeep.php b/generated/ssdeep.php index c0f97a46..662fc9b9 100644 --- a/generated/ssdeep.php +++ b/generated/ssdeep.php @@ -68,4 +68,3 @@ function ssdeep_fuzzy_hash(string $to_hash): string } return $result; } - diff --git a/generated/ssh2.php b/generated/ssh2.php index e5cc7193..fff3ceb6 100644 --- a/generated/ssh2.php +++ b/generated/ssh2.php @@ -13,7 +13,7 @@ * @throws Ssh2Exception * */ -function ssh2_auth_agent( $session, string $username): void +function ssh2_auth_agent($session, string $username): void { error_clear_last(); $result = \ssh2_auth_agent($session, $username); @@ -39,14 +39,14 @@ function ssh2_auth_agent( $session, string $username): void * @throws Ssh2Exception * */ -function ssh2_auth_hostbased_file( $session, string $username, string $hostname, string $pubkeyfile, string $privkeyfile, string $passphrase = null, string $local_username = null): void +function ssh2_auth_hostbased_file($session, string $username, string $hostname, string $pubkeyfile, string $privkeyfile, string $passphrase = null, string $local_username = null): void { error_clear_last(); if ($local_username !== null) { $result = \ssh2_auth_hostbased_file($session, $username, $hostname, $pubkeyfile, $privkeyfile, $passphrase, $local_username); } elseif ($passphrase !== null) { $result = \ssh2_auth_hostbased_file($session, $username, $hostname, $pubkeyfile, $privkeyfile, $passphrase); - }else { + } else { $result = \ssh2_auth_hostbased_file($session, $username, $hostname, $pubkeyfile, $privkeyfile); } if ($result === false) { @@ -66,7 +66,7 @@ function ssh2_auth_hostbased_file( $session, string $username, string $hostname, * @throws Ssh2Exception * */ -function ssh2_auth_password( $session, string $username, string $password): void +function ssh2_auth_password($session, string $username, string $password): void { error_clear_last(); $result = \ssh2_auth_password($session, $username, $password); @@ -91,12 +91,12 @@ function ssh2_auth_password( $session, string $username, string $password): void * @throws Ssh2Exception * */ -function ssh2_auth_pubkey_file( $session, string $username, string $pubkeyfile, string $privkeyfile, string $passphrase = null): void +function ssh2_auth_pubkey_file($session, string $username, string $pubkeyfile, string $privkeyfile, string $passphrase = null): void { error_clear_last(); if ($passphrase !== null) { $result = \ssh2_auth_pubkey_file($session, $username, $pubkeyfile, $privkeyfile, $passphrase); - }else { + } else { $result = \ssh2_auth_pubkey_file($session, $username, $pubkeyfile, $privkeyfile); } if ($result === false) { @@ -311,7 +311,7 @@ function ssh2_connect(string $host, int $port = 22, array $methods = null, array $result = \ssh2_connect($host, $port, $methods, $callbacks); } elseif ($methods !== null) { $result = \ssh2_connect($host, $port, $methods); - }else { + } else { $result = \ssh2_connect($host, $port); } if ($result === false) { @@ -329,7 +329,7 @@ function ssh2_connect(string $host, int $port = 22, array $methods = null, array * @throws Ssh2Exception * */ -function ssh2_disconnect( $session): void +function ssh2_disconnect($session): void { error_clear_last(); $result = \ssh2_disconnect($session); @@ -357,7 +357,7 @@ function ssh2_disconnect( $session): void * @throws Ssh2Exception * */ -function ssh2_exec( $session, string $command, string $pty = null, array $env = null, int $width = 80, int $height = 25, int $width_height_type = SSH2_TERM_UNIT_CHARS) +function ssh2_exec($session, string $command, string $pty = null, array $env = null, int $width = 80, int $height = 25, int $width_height_type = SSH2_TERM_UNIT_CHARS) { error_clear_last(); if ($width_height_type !== SSH2_TERM_UNIT_CHARS) { @@ -370,7 +370,7 @@ function ssh2_exec( $session, string $command, string $pty = null, array $env = $result = \ssh2_exec($session, $command, $pty, $env); } elseif ($pty !== null) { $result = \ssh2_exec($session, $command, $pty); - }else { + } else { $result = \ssh2_exec($session, $command); } if ($result === false) { @@ -388,7 +388,7 @@ function ssh2_exec( $session, string $command, string $pty = null, array $env = * @throws Ssh2Exception * */ -function ssh2_forward_accept( $listener) +function ssh2_forward_accept($listener) { error_clear_last(); $result = \ssh2_forward_accept($listener); @@ -410,14 +410,14 @@ function ssh2_forward_accept( $listener) * @throws Ssh2Exception * */ -function ssh2_forward_listen( $session, int $port, string $host = null, int $max_connections = 16) +function ssh2_forward_listen($session, int $port, string $host = null, int $max_connections = 16) { error_clear_last(); if ($max_connections !== 16) { $result = \ssh2_forward_listen($session, $port, $host, $max_connections); } elseif ($host !== null) { $result = \ssh2_forward_listen($session, $port, $host); - }else { + } else { $result = \ssh2_forward_listen($session, $port); } if ($result === false) { @@ -442,12 +442,12 @@ function ssh2_forward_listen( $session, int $port, string $host = null, int $max * @throws Ssh2Exception * */ -function ssh2_publickey_add( $pkey, string $algoname, string $blob, bool $overwrite = false, array $attributes = null): void +function ssh2_publickey_add($pkey, string $algoname, string $blob, bool $overwrite = false, array $attributes = null): void { error_clear_last(); if ($attributes !== null) { $result = \ssh2_publickey_add($pkey, $algoname, $blob, $overwrite, $attributes); - }else { + } else { $result = \ssh2_publickey_add($pkey, $algoname, $blob, $overwrite); } if ($result === false) { @@ -471,7 +471,7 @@ function ssh2_publickey_add( $pkey, string $algoname, string $blob, bool $overwr * @throws Ssh2Exception * */ -function ssh2_publickey_init( $session) +function ssh2_publickey_init($session) { error_clear_last(); $result = \ssh2_publickey_init($session); @@ -491,7 +491,7 @@ function ssh2_publickey_init( $session) * @throws Ssh2Exception * */ -function ssh2_publickey_remove( $pkey, string $algoname, string $blob): void +function ssh2_publickey_remove($pkey, string $algoname, string $blob): void { error_clear_last(); $result = \ssh2_publickey_remove($pkey, $algoname, $blob); @@ -511,7 +511,7 @@ function ssh2_publickey_remove( $pkey, string $algoname, string $blob): void * @throws Ssh2Exception * */ -function ssh2_scp_recv( $session, string $remote_file, string $local_file): void +function ssh2_scp_recv($session, string $remote_file, string $local_file): void { error_clear_last(); $result = \ssh2_scp_recv($session, $remote_file, $local_file); @@ -533,7 +533,7 @@ function ssh2_scp_recv( $session, string $remote_file, string $local_file): void * @throws Ssh2Exception * */ -function ssh2_scp_send( $session, string $local_file, string $remote_file, int $create_mode = 0644): void +function ssh2_scp_send($session, string $local_file, string $remote_file, int $create_mode = 0644): void { error_clear_last(); $result = \ssh2_scp_send($session, $local_file, $remote_file, $create_mode); @@ -554,7 +554,7 @@ function ssh2_scp_send( $session, string $local_file, string $remote_file, int $ * @throws Ssh2Exception * */ -function ssh2_send_eof( $channel): void +function ssh2_send_eof($channel): void { error_clear_last(); $result = \ssh2_send_eof($channel); @@ -574,7 +574,7 @@ function ssh2_send_eof( $channel): void * @throws Ssh2Exception * */ -function ssh2_sftp_chmod( $sftp, string $filename, int $mode): void +function ssh2_sftp_chmod($sftp, string $filename, int $mode): void { error_clear_last(); $result = \ssh2_sftp_chmod($sftp, $filename, $mode); @@ -600,7 +600,7 @@ function ssh2_sftp_chmod( $sftp, string $filename, int $mode): void * @throws Ssh2Exception * */ -function ssh2_sftp_mkdir( $sftp, string $dirname, int $mode = 0777, bool $recursive = false): void +function ssh2_sftp_mkdir($sftp, string $dirname, int $mode = 0777, bool $recursive = false): void { error_clear_last(); $result = \ssh2_sftp_mkdir($sftp, $dirname, $mode, $recursive); @@ -619,7 +619,7 @@ function ssh2_sftp_mkdir( $sftp, string $dirname, int $mode = 0777, bool $recurs * @throws Ssh2Exception * */ -function ssh2_sftp_rename( $sftp, string $from, string $to): void +function ssh2_sftp_rename($sftp, string $from, string $to): void { error_clear_last(); $result = \ssh2_sftp_rename($sftp, $from, $to); @@ -640,7 +640,7 @@ function ssh2_sftp_rename( $sftp, string $from, string $to): void * @throws Ssh2Exception * */ -function ssh2_sftp_rmdir( $sftp, string $dirname): void +function ssh2_sftp_rmdir($sftp, string $dirname): void { error_clear_last(); $result = \ssh2_sftp_rmdir($sftp, $dirname); @@ -660,7 +660,7 @@ function ssh2_sftp_rmdir( $sftp, string $dirname): void * @throws Ssh2Exception * */ -function ssh2_sftp_symlink( $sftp, string $target, string $link): void +function ssh2_sftp_symlink($sftp, string $target, string $link): void { error_clear_last(); $result = \ssh2_sftp_symlink($sftp, $target, $link); @@ -678,7 +678,7 @@ function ssh2_sftp_symlink( $sftp, string $target, string $link): void * @throws Ssh2Exception * */ -function ssh2_sftp_unlink( $sftp, string $filename): void +function ssh2_sftp_unlink($sftp, string $filename): void { error_clear_last(); $result = \ssh2_sftp_unlink($sftp, $filename); @@ -699,7 +699,7 @@ function ssh2_sftp_unlink( $sftp, string $filename): void * @throws Ssh2Exception * */ -function ssh2_sftp( $session) +function ssh2_sftp($session) { error_clear_last(); $result = \ssh2_sftp($session); @@ -728,7 +728,7 @@ function ssh2_sftp( $session) * @throws Ssh2Exception * */ -function ssh2_shell( $session, string $term_type = "vanilla", array $env = null, int $width = 80, int $height = 25, int $width_height_type = SSH2_TERM_UNIT_CHARS) +function ssh2_shell($session, string $term_type = "vanilla", array $env = null, int $width = 80, int $height = 25, int $width_height_type = SSH2_TERM_UNIT_CHARS) { error_clear_last(); if ($width_height_type !== SSH2_TERM_UNIT_CHARS) { @@ -739,7 +739,7 @@ function ssh2_shell( $session, string $term_type = "vanilla", array $env = null, $result = \ssh2_shell($session, $term_type, $env, $width); } elseif ($env !== null) { $result = \ssh2_shell($session, $term_type, $env); - }else { + } else { $result = \ssh2_shell($session, $term_type); } if ($result === false) { @@ -747,4 +747,3 @@ function ssh2_shell( $session, string $term_type = "vanilla", array $env = null, } return $result; } - diff --git a/generated/stream.php b/generated/stream.php index 1f002a2d..cb7f9609 100644 --- a/generated/stream.php +++ b/generated/stream.php @@ -13,7 +13,7 @@ * @throws StreamException * */ -function stream_context_set_params( $context, array $params): void +function stream_context_set_params($context, array $params): void { error_clear_last(); $result = \stream_context_set_params($context, $params); @@ -39,7 +39,7 @@ function stream_context_set_params( $context, array $params): void * @throws StreamException * */ -function stream_copy_to_stream( $source, $dest, int $maxlength = -1, int $offset = 0): int +function stream_copy_to_stream($source, $dest, int $maxlength = -1, int $offset = 0): int { error_clear_last(); $result = \stream_copy_to_stream($source, $dest, $maxlength, $offset); @@ -81,14 +81,14 @@ function stream_copy_to_stream( $source, $dest, int $maxlength = -1, int $offse * @throws StreamException * */ -function stream_filter_append( $stream, string $filtername, int $read_write = null, array $params = null) +function stream_filter_append($stream, string $filtername, int $read_write = null, array $params = null) { error_clear_last(); if ($params !== null) { $result = \stream_filter_append($stream, $filtername, $read_write, $params); } elseif ($read_write !== null) { $result = \stream_filter_append($stream, $filtername, $read_write); - }else { + } else { $result = \stream_filter_append($stream, $filtername); } if ($result === false) { @@ -130,14 +130,14 @@ function stream_filter_append( $stream, string $filtername, int $read_write = nu * @throws StreamException * */ -function stream_filter_prepend( $stream, string $filtername, int $read_write = null, array $params = null) +function stream_filter_prepend($stream, string $filtername, int $read_write = null, array $params = null) { error_clear_last(); if ($params !== null) { $result = \stream_filter_prepend($stream, $filtername, $read_write, $params); } elseif ($read_write !== null) { $result = \stream_filter_prepend($stream, $filtername, $read_write); - }else { + } else { $result = \stream_filter_prepend($stream, $filtername); } if ($result === false) { @@ -186,7 +186,7 @@ function stream_filter_register(string $filter_name, string $class): void * @throws StreamException * */ -function stream_filter_remove( $stream_filter): void +function stream_filter_remove($stream_filter): void { error_clear_last(); $result = \stream_filter_remove($stream_filter); @@ -212,7 +212,7 @@ function stream_filter_remove( $stream_filter): void * @throws StreamException * */ -function stream_get_contents( $handle, int $maxlength = -1, int $offset = -1): string +function stream_get_contents($handle, int $maxlength = -1, int $offset = -1): string { error_clear_last(); $result = \stream_get_contents($handle, $maxlength, $offset); @@ -231,7 +231,7 @@ function stream_get_contents( $handle, int $maxlength = -1, int $offset = -1): s * @throws StreamException * */ -function stream_isatty( $stream): void +function stream_isatty($stream): void { error_clear_last(); $result = \stream_isatty($stream); @@ -278,7 +278,7 @@ function stream_resolve_include_path(string $filename): string * @throws StreamException * */ -function stream_set_blocking( $stream, bool $enable): void +function stream_set_blocking($stream, bool $enable): void { error_clear_last(); $result = \stream_set_blocking($stream, $enable); @@ -303,7 +303,7 @@ function stream_set_blocking( $stream, bool $enable): void * @throws StreamException * */ -function stream_set_timeout( $stream, int $seconds, int $microseconds = 0): void +function stream_set_timeout($stream, int $seconds, int $microseconds = 0): void { error_clear_last(); $result = \stream_set_timeout($stream, $seconds, $microseconds); @@ -329,14 +329,14 @@ function stream_set_timeout( $stream, int $seconds, int $microseconds = 0): void * @throws StreamException * */ -function stream_socket_accept( $server_socket, float $timeout = null, ?string &$peername = null) +function stream_socket_accept($server_socket, float $timeout = null, ?string &$peername = null) { error_clear_last(); if ($peername !== null) { $result = \stream_socket_accept($server_socket, $timeout, $peername); } elseif ($timeout !== null) { $result = \stream_socket_accept($server_socket, $timeout); - }else { + } else { $result = \stream_socket_accept($server_socket); } if ($result === false) { @@ -395,7 +395,7 @@ function stream_socket_accept( $server_socket, float $timeout = null, ?string &$ * @throws StreamException * */ -function stream_socket_client(string $remote_socket, ?int &$errno = null, ?string &$errstr = null, float $timeout = null, int $flags = STREAM_CLIENT_CONNECT, $context = null) +function stream_socket_client(string $remote_socket, ?int &$errno = null, ?string &$errstr = null, float $timeout = null, int $flags = STREAM_CLIENT_CONNECT, $context = null) { error_clear_last(); if ($context !== null) { @@ -404,7 +404,7 @@ function stream_socket_client(string $remote_socket, ?int &$errno = null, ?strin $result = \stream_socket_client($remote_socket, $errno, $errstr, $timeout, $flags); } elseif ($timeout !== null) { $result = \stream_socket_client($remote_socket, $errno, $errstr, $timeout); - }else { + } else { $result = \stream_socket_client($remote_socket, $errno, $errstr); } if ($result === false) { @@ -490,12 +490,12 @@ function stream_socket_pair(int $domain, int $type, int $protocol): iterable * @throws StreamException * */ -function stream_socket_server(string $local_socket, ?int &$errno = null, ?string &$errstr = null, int $flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN, $context = null) +function stream_socket_server(string $local_socket, ?int &$errno = null, ?string &$errstr = null, int $flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN, $context = null) { error_clear_last(); if ($context !== null) { $result = \stream_socket_server($local_socket, $errno, $errstr, $flags, $context); - }else { + } else { $result = \stream_socket_server($local_socket, $errno, $errstr, $flags); } if ($result === false) { @@ -518,7 +518,7 @@ function stream_socket_server(string $local_socket, ?int &$errno = null, ?string * @throws StreamException * */ -function stream_socket_shutdown( $stream, int $mode): void +function stream_socket_shutdown($stream, int $mode): void { error_clear_last(); $result = \stream_socket_shutdown($stream, $mode); @@ -536,7 +536,7 @@ function stream_socket_shutdown( $stream, int $mode): void * @throws StreamException * */ -function stream_supports_lock( $stream): void +function stream_supports_lock($stream): void { error_clear_last(); $result = \stream_supports_lock($stream); @@ -606,4 +606,3 @@ function stream_wrapper_unregister(string $protocol): void throw StreamException::createFromPhpError(); } } - diff --git a/generated/strings.php b/generated/strings.php index 7568f0c5..0aacaf5c 100644 --- a/generated/strings.php +++ b/generated/strings.php @@ -478,12 +478,12 @@ function sha1_file(string $filename, bool $binary = false): string * @throws StringsException * */ -function sprintf(string $format, ...$values): string +function sprintf(string $format, ...$values): string { error_clear_last(); if ($values !== []) { $result = \sprintf($format, ...$values); - }else { + } else { $result = \sprintf($format); } if ($result === false) { @@ -548,7 +548,7 @@ function substr(string $string, int $offset, int $length = null): string error_clear_last(); if ($length !== null) { $result = \substr($string, $offset, $length); - }else { + } else { $result = \substr($string, $offset); } if ($result === false) { @@ -871,4 +871,3 @@ function vsprintf(string $format, array $values): string } return $result; } - diff --git a/generated/swoole.php b/generated/swoole.php index 8ef2e7d1..334d96bd 100644 --- a/generated/swoole.php +++ b/generated/swoole.php @@ -21,7 +21,7 @@ function swoole_async_write(string $filename, string $content, int $offset = nul $result = \swoole_async_write($filename, $content, $offset, $callback); } elseif ($offset !== null) { $result = \swoole_async_write($filename, $content, $offset); - }else { + } else { $result = \swoole_async_write($filename, $content); } if ($result === false) { @@ -47,7 +47,7 @@ function swoole_async_writefile(string $filename, string $content, callable $cal $result = \swoole_async_writefile($filename, $content, $callback, $flags); } elseif ($callback !== null) { $result = \swoole_async_writefile($filename, $content, $callback); - }else { + } else { $result = \swoole_async_writefile($filename, $content); } if ($result === false) { @@ -106,4 +106,3 @@ function swoole_event_write(int $fd, string $data): void throw SwooleException::createFromPhpError(); } } - diff --git a/generated/uodbc.php b/generated/uodbc.php index 22293c0b..6ac914bd 100644 --- a/generated/uodbc.php +++ b/generated/uodbc.php @@ -24,7 +24,7 @@ * @throws UodbcException * */ -function odbc_autocommit( $odbc, bool $enable = false) +function odbc_autocommit($odbc, bool $enable = false) { error_clear_last(); $result = \odbc_autocommit($odbc, $enable); @@ -181,7 +181,7 @@ function odbc_binmode(int $statement, int $mode): void * @throws UodbcException * */ -function odbc_columnprivileges( $odbc, string $catalog, string $schema, string $table, string $column) +function odbc_columnprivileges($odbc, string $catalog, string $schema, string $table, string $column) { error_clear_last(); $result = \odbc_columnprivileges($odbc, $catalog, $schema, $table, $column); @@ -237,7 +237,7 @@ function odbc_columnprivileges( $odbc, string $catalog, string $schema, string $ * @throws UodbcException * */ -function odbc_columns( $odbc, string $catalog = null, string $schema = null, string $table = null, string $column = null) +function odbc_columns($odbc, string $catalog = null, string $schema = null, string $table = null, string $column = null) { error_clear_last(); if ($column !== null) { @@ -248,7 +248,7 @@ function odbc_columns( $odbc, string $catalog = null, string $schema = null, str $result = \odbc_columns($odbc, $catalog, $schema); } elseif ($catalog !== null) { $result = \odbc_columns($odbc, $catalog); - }else { + } else { $result = \odbc_columns($odbc); } if ($result === false) { @@ -266,7 +266,7 @@ function odbc_columns( $odbc, string $catalog = null, string $schema = null, str * @throws UodbcException * */ -function odbc_commit( $odbc): void +function odbc_commit($odbc): void { error_clear_last(); $result = \odbc_commit($odbc); @@ -327,7 +327,7 @@ function odbc_connect(string $dsn, string $user, string $password, int $cursor_o * @throws UodbcException * */ -function odbc_cursor( $statement): string +function odbc_cursor($statement): string { error_clear_last(); $result = \odbc_cursor($statement); @@ -353,7 +353,7 @@ function odbc_cursor( $statement): string * @throws UodbcException * */ -function odbc_data_source( $odbc, int $fetch_type): array +function odbc_data_source($odbc, int $fetch_type): array { error_clear_last(); $result = \odbc_data_source($odbc, $fetch_type); @@ -375,7 +375,7 @@ function odbc_data_source( $odbc, int $fetch_type): array * @throws UodbcException * */ -function odbc_exec( $odbc, string $query) +function odbc_exec($odbc, string $query) { error_clear_last(); $result = \odbc_exec($odbc, $query); @@ -402,7 +402,7 @@ function odbc_exec( $odbc, string $query) * @throws UodbcException * */ -function odbc_execute( $statement, array $params = []): void +function odbc_execute($statement, array $params = []): void { error_clear_last(); $result = \odbc_execute($statement, $params); @@ -426,7 +426,7 @@ function odbc_execute( $statement, array $params = []): void * @throws UodbcException * */ -function odbc_fetch_into( $statement, ?array &$array, int $row = 0): int +function odbc_fetch_into($statement, ?array &$array, int $row = 0): int { error_clear_last(); $result = \odbc_fetch_into($statement, $array, $row); @@ -447,7 +447,7 @@ function odbc_fetch_into( $statement, ?array &$array, int $row = 0): int * @throws UodbcException * */ -function odbc_field_len( $statement, int $field): int +function odbc_field_len($statement, int $field): int { error_clear_last(); $result = \odbc_field_len($statement, $field); @@ -468,7 +468,7 @@ function odbc_field_len( $statement, int $field): int * @throws UodbcException * */ -function odbc_field_name( $statement, int $field): string +function odbc_field_name($statement, int $field): string { error_clear_last(); $result = \odbc_field_name($statement, $field); @@ -490,7 +490,7 @@ function odbc_field_name( $statement, int $field): string * @throws UodbcException * */ -function odbc_field_num( $statement, string $field): int +function odbc_field_num($statement, string $field): int { error_clear_last(); $result = \odbc_field_num($statement, $field); @@ -511,7 +511,7 @@ function odbc_field_num( $statement, string $field): int * @throws UodbcException * */ -function odbc_field_scale( $statement, int $field): int +function odbc_field_scale($statement, int $field): int { error_clear_last(); $result = \odbc_field_scale($statement, $field); @@ -532,7 +532,7 @@ function odbc_field_scale( $statement, int $field): int * @throws UodbcException * */ -function odbc_field_type( $statement, int $field): string +function odbc_field_type($statement, int $field): string { error_clear_last(); $result = \odbc_field_type($statement, $field); @@ -579,7 +579,7 @@ function odbc_field_type( $statement, int $field): string * @throws UodbcException * */ -function odbc_foreignkeys( $odbc, string $pk_catalog, string $pk_schema, string $pk_table, string $fk_catalog, string $fk_schema, string $fk_table) +function odbc_foreignkeys($odbc, string $pk_catalog, string $pk_schema, string $pk_table, string $fk_catalog, string $fk_schema, string $fk_table) { error_clear_last(); $result = \odbc_foreignkeys($odbc, $pk_catalog, $pk_schema, $pk_table, $fk_catalog, $fk_schema, $fk_table); @@ -622,7 +622,7 @@ function odbc_foreignkeys( $odbc, string $pk_catalog, string $pk_schema, string * @throws UodbcException * */ -function odbc_gettypeinfo( $odbc, int $data_type = 0) +function odbc_gettypeinfo($odbc, int $data_type = 0) { error_clear_last(); $result = \odbc_gettypeinfo($odbc, $data_type); @@ -645,7 +645,7 @@ function odbc_gettypeinfo( $odbc, int $data_type = 0) * @throws UodbcException * */ -function odbc_longreadlen( $statement, int $length): void +function odbc_longreadlen($statement, int $length): void { error_clear_last(); $result = \odbc_longreadlen($statement, $length); @@ -704,7 +704,7 @@ function odbc_pconnect(string $dsn, string $user, string $password, int $cursor_ * @throws UodbcException * */ -function odbc_prepare( $odbc, string $query) +function odbc_prepare($odbc, string $query) { error_clear_last(); $result = \odbc_prepare($odbc, $query); @@ -739,7 +739,7 @@ function odbc_prepare( $odbc, string $query) * @throws UodbcException * */ -function odbc_primarykeys( $odbc, string $catalog, string $schema, string $table) +function odbc_primarykeys($odbc, string $catalog, string $schema, string $table) { error_clear_last(); $result = \odbc_primarykeys($odbc, $catalog, $schema, $table); @@ -798,7 +798,7 @@ function odbc_primarykeys( $odbc, string $catalog, string $schema, string $table * @throws UodbcException * */ -function odbc_procedurecolumns( $odbc, string $catalog = null, string $schema = null, string $procedure = null, string $column = null) +function odbc_procedurecolumns($odbc, string $catalog = null, string $schema = null, string $procedure = null, string $column = null) { error_clear_last(); if ($column !== null) { @@ -809,7 +809,7 @@ function odbc_procedurecolumns( $odbc, string $catalog = null, string $schema = $result = \odbc_procedurecolumns($odbc, $catalog, $schema); } elseif ($catalog !== null) { $result = \odbc_procedurecolumns($odbc, $catalog); - }else { + } else { $result = \odbc_procedurecolumns($odbc); } if ($result === false) { @@ -851,7 +851,7 @@ function odbc_procedurecolumns( $odbc, string $catalog = null, string $schema = * @throws UodbcException * */ -function odbc_procedures( $odbc, string $catalog = null, string $schema = null, string $procedure = null) +function odbc_procedures($odbc, string $catalog = null, string $schema = null, string $procedure = null) { error_clear_last(); if ($procedure !== null) { @@ -860,7 +860,7 @@ function odbc_procedures( $odbc, string $catalog = null, string $schema = null, $result = \odbc_procedures($odbc, $catalog, $schema); } elseif ($catalog !== null) { $result = \odbc_procedures($odbc, $catalog); - }else { + } else { $result = \odbc_procedures($odbc); } if ($result === false) { @@ -884,7 +884,7 @@ function odbc_procedures( $odbc, string $catalog = null, string $schema = null, * @throws UodbcException * */ -function odbc_result_all( $statement, string $format = ""): int +function odbc_result_all($statement, string $format = ""): int { error_clear_last(); $result = \odbc_result_all($statement, $format); @@ -907,7 +907,7 @@ function odbc_result_all( $statement, string $format = ""): int * @throws UodbcException * */ -function odbc_result( $statement, $field) +function odbc_result($statement, $field) { error_clear_last(); $result = \odbc_result($statement, $field); @@ -926,7 +926,7 @@ function odbc_result( $statement, $field) * @throws UodbcException * */ -function odbc_rollback( $odbc): void +function odbc_rollback($odbc): void { error_clear_last(); $result = \odbc_rollback($odbc); @@ -966,7 +966,7 @@ function odbc_rollback( $odbc): void * @throws UodbcException * */ -function odbc_setoption( $odbc, int $which, int $option, int $value): void +function odbc_setoption($odbc, int $which, int $option, int $value): void { error_clear_last(); $result = \odbc_setoption($odbc, $which, $option, $value); @@ -1009,7 +1009,7 @@ function odbc_setoption( $odbc, int $which, int $option, int $value): void * @throws UodbcException * */ -function odbc_specialcolumns( $odbc, int $type, string $catalog, string $schema, string $table, int $scope, int $nullable) +function odbc_specialcolumns($odbc, int $type, string $catalog, string $schema, string $table, int $scope, int $nullable) { error_clear_last(); $result = \odbc_specialcolumns($odbc, $type, $catalog, $schema, $table, $scope, $nullable); @@ -1055,7 +1055,7 @@ function odbc_specialcolumns( $odbc, int $type, string $catalog, string $schema, * @throws UodbcException * */ -function odbc_statistics( $odbc, string $catalog, string $schema, string $table, int $unique, int $accuracy) +function odbc_statistics($odbc, string $catalog, string $schema, string $table, int $unique, int $accuracy) { error_clear_last(); $result = \odbc_statistics($odbc, $catalog, $schema, $table, $unique, $accuracy); @@ -1097,7 +1097,7 @@ function odbc_statistics( $odbc, string $catalog, string $schema, string $table, * @throws UodbcException * */ -function odbc_tableprivileges( $odbc, string $catalog, string $schema, string $table) +function odbc_tableprivileges($odbc, string $catalog, string $schema, string $table) { error_clear_last(); $result = \odbc_tableprivileges($odbc, $catalog, $schema, $table); @@ -1181,7 +1181,7 @@ function odbc_tableprivileges( $odbc, string $catalog, string $schema, string $t * @throws UodbcException * */ -function odbc_tables( $odbc, string $catalog = null, string $schema = null, string $table = null, string $types = null) +function odbc_tables($odbc, string $catalog = null, string $schema = null, string $table = null, string $types = null) { error_clear_last(); if ($types !== null) { @@ -1192,7 +1192,7 @@ function odbc_tables( $odbc, string $catalog = null, string $schema = null, stri $result = \odbc_tables($odbc, $catalog, $schema); } elseif ($catalog !== null) { $result = \odbc_tables($odbc, $catalog); - }else { + } else { $result = \odbc_tables($odbc); } if ($result === false) { @@ -1200,4 +1200,3 @@ function odbc_tables( $odbc, string $catalog = null, string $schema = null, stri } return $result; } - diff --git a/generated/uopz.php b/generated/uopz.php index 09fa7135..ae0ee8f8 100644 --- a/generated/uopz.php +++ b/generated/uopz.php @@ -38,4 +38,3 @@ function uopz_implement(string $class, string $interface): void throw UopzException::createFromPhpError(); } } - diff --git a/generated/url.php b/generated/url.php index 92830fa1..2fd51936 100644 --- a/generated/url.php +++ b/generated/url.php @@ -33,7 +33,7 @@ function base64_decode(string $string, bool $strict = false): string * by the server in response to a HTTP request. * * @param string $url The target URL. - * @param int $associative If the optional associative parameter is set to true, + * @param bool $associative If the optional associative parameter is set to true, * get_headers parses the response and sets the * array's keys. * @param resource $context A valid context resource created with @@ -42,12 +42,12 @@ function base64_decode(string $string, bool $strict = false): string * @throws UrlException * */ -function get_headers(string $url, int $associative = false, $context = null): array +function get_headers(string $url, bool $associative = false, $context = null): array { error_clear_last(); if ($context !== null) { $result = \get_headers($url, $associative, $context); - }else { + } else { $result = \get_headers($url, $associative); } if ($result === false) { @@ -191,4 +191,3 @@ function parse_url(string $url, int $component = -1) } return $result; } - diff --git a/generated/var.php b/generated/var.php index 8f903795..14609f22 100644 --- a/generated/var.php +++ b/generated/var.php @@ -50,7 +50,7 @@ * @throws VarException * */ -function settype( &$var, string $type): void +function settype(&$var, string $type): void { error_clear_last(); $result = \settype($var, $type); @@ -58,4 +58,3 @@ function settype( &$var, string $type): void throw VarException::createFromPhpError(); } } - diff --git a/generated/xdiff.php b/generated/xdiff.php index 1084bf0c..27feef39 100644 --- a/generated/xdiff.php +++ b/generated/xdiff.php @@ -226,7 +226,7 @@ function xdiff_string_patch(string $str, string $patch, int $flags = null, ?stri $result = \xdiff_string_patch($str, $patch, $flags, $error); } elseif ($flags !== null) { $result = \xdiff_string_patch($str, $patch, $flags); - }else { + } else { $result = \xdiff_string_patch($str, $patch); } if ($result === false) { @@ -234,4 +234,3 @@ function xdiff_string_patch(string $str, string $patch, int $flags = null, ?stri } return $result; } - diff --git a/generated/xml.php b/generated/xml.php index 9becd6e3..55afbcdf 100644 --- a/generated/xml.php +++ b/generated/xml.php @@ -28,7 +28,7 @@ function xml_parser_create_ns(string $encoding = null, string $separator = ":") $result = \xml_parser_create_ns($encoding, $separator); } elseif ($encoding !== null) { $result = \xml_parser_create_ns($encoding); - }else { + } else { $result = \xml_parser_create_ns(); } if ($result === false) { @@ -60,7 +60,7 @@ function xml_parser_create(string $encoding = null) error_clear_last(); if ($encoding !== null) { $result = \xml_parser_create($encoding); - }else { + } else { $result = \xml_parser_create(); } if ($result === false) { @@ -77,7 +77,7 @@ function xml_parser_create(string $encoding = null) * @throws XmlException * */ -function xml_parser_free( $parser): void +function xml_parser_free($parser): void { error_clear_last(); $result = \xml_parser_free($parser); @@ -98,7 +98,7 @@ function xml_parser_free( $parser): void * @throws XmlException * */ -function xml_set_object( $parser, object $object): void +function xml_set_object($parser, object $object): void { error_clear_last(); $result = \xml_set_object($parser, $object); @@ -106,4 +106,3 @@ function xml_set_object( $parser, object $object): void throw XmlException::createFromPhpError(); } } - diff --git a/generated/xmlrpc.php b/generated/xmlrpc.php index 5f203d80..15364fb4 100644 --- a/generated/xmlrpc.php +++ b/generated/xmlrpc.php @@ -12,7 +12,7 @@ * @throws XmlrpcException * */ -function xmlrpc_set_type( &$value, string $type): void +function xmlrpc_set_type(&$value, string $type): void { error_clear_last(); $result = \xmlrpc_set_type($value, $type); @@ -20,4 +20,3 @@ function xmlrpc_set_type( &$value, string $type): void throw XmlrpcException::createFromPhpError(); } } - diff --git a/generated/yaml.php b/generated/yaml.php index 6abdd4bc..fd297aad 100644 --- a/generated/yaml.php +++ b/generated/yaml.php @@ -28,7 +28,7 @@ function yaml_parse_file(string $filename, int $pos = 0, ?int &$ndocs = null, ar error_clear_last(); if ($callbacks !== null) { $result = \yaml_parse_file($filename, $pos, $ndocs, $callbacks); - }else { + } else { $result = \yaml_parse_file($filename, $pos, $ndocs); } if ($result === false) { @@ -65,7 +65,7 @@ function yaml_parse_url(string $url, int $pos = 0, ?int &$ndocs = null, array $c error_clear_last(); if ($callbacks !== null) { $result = \yaml_parse_url($url, $pos, $ndocs, $callbacks); - }else { + } else { $result = \yaml_parse_url($url, $pos, $ndocs); } if ($result === false) { @@ -99,7 +99,7 @@ function yaml_parse(string $input, int $pos = 0, ?int &$ndocs = null, array $cal error_clear_last(); if ($callbacks !== null) { $result = \yaml_parse($input, $pos, $ndocs, $callbacks); - }else { + } else { $result = \yaml_parse($input, $pos, $ndocs); } if ($result === false) { @@ -107,4 +107,3 @@ function yaml_parse(string $input, int $pos = 0, ?int &$ndocs = null, array $cal } return $result; } - diff --git a/generated/yaz.php b/generated/yaz.php index e4154403..29c1d33c 100644 --- a/generated/yaz.php +++ b/generated/yaz.php @@ -47,7 +47,7 @@ * @throws YazException * */ -function yaz_ccl_parse( $id, string $query, ?array &$result): void +function yaz_ccl_parse($id, string $query, ?array &$result): void { error_clear_last(); $result = \yaz_ccl_parse($id, $query, $result); @@ -64,7 +64,7 @@ function yaz_ccl_parse( $id, string $query, ?array &$result): void * @throws YazException * */ -function yaz_close( $id): void +function yaz_close($id): void { error_clear_last(); $result = \yaz_close($id); @@ -265,12 +265,12 @@ function yaz_close( $id): void * @throws YazException * */ -function yaz_connect(string $zurl, $options = null) +function yaz_connect(string $zurl, $options = null) { error_clear_last(); if ($options !== null) { $result = \yaz_connect($zurl, $options); - }else { + } else { $result = \yaz_connect($zurl); } if ($result === false) { @@ -292,7 +292,7 @@ function yaz_connect(string $zurl, $options = null) * @throws YazException * */ -function yaz_database( $id, string $databases): void +function yaz_database($id, string $databases): void { error_clear_last(); $result = \yaz_database($id, $databases); @@ -315,7 +315,7 @@ function yaz_database( $id, string $databases): void * @throws YazException * */ -function yaz_element( $id, string $elementset): void +function yaz_element($id, string $elementset): void { error_clear_last(); $result = \yaz_element($id, $elementset); @@ -335,7 +335,7 @@ function yaz_element( $id, string $elementset): void * @throws YazException * */ -function yaz_present( $id): void +function yaz_present($id): void { error_clear_last(); $result = \yaz_present($id); @@ -375,7 +375,7 @@ function yaz_present( $id): void * @throws YazException * */ -function yaz_search( $id, string $type, string $query): void +function yaz_search($id, string $type, string $query): void { error_clear_last(); $result = \yaz_search($id, $type, $query); @@ -436,4 +436,3 @@ function yaz_wait(array &$options = null) } return $result; } - diff --git a/generated/zip.php b/generated/zip.php index d17229c5..d4097eb1 100644 --- a/generated/zip.php +++ b/generated/zip.php @@ -11,7 +11,7 @@ * @throws ZipException * */ -function zip_entry_close( $zip_entry): void +function zip_entry_close($zip_entry): void { error_clear_last(); $result = \zip_entry_close($zip_entry); @@ -29,7 +29,7 @@ function zip_entry_close( $zip_entry): void * @throws ZipException * */ -function zip_entry_compressedsize( $zip_entry): int +function zip_entry_compressedsize($zip_entry): int { error_clear_last(); $result = \zip_entry_compressedsize($zip_entry); @@ -49,7 +49,7 @@ function zip_entry_compressedsize( $zip_entry): int * @throws ZipException * */ -function zip_entry_compressionmethod( $zip_entry): string +function zip_entry_compressionmethod($zip_entry): string { error_clear_last(); $result = \zip_entry_compressionmethod($zip_entry); @@ -68,7 +68,7 @@ function zip_entry_compressionmethod( $zip_entry): string * @throws ZipException * */ -function zip_entry_filesize( $zip_entry): int +function zip_entry_filesize($zip_entry): int { error_clear_last(); $result = \zip_entry_filesize($zip_entry); @@ -87,7 +87,7 @@ function zip_entry_filesize( $zip_entry): int * @throws ZipException * */ -function zip_entry_name( $zip_entry): string +function zip_entry_name($zip_entry): string { error_clear_last(); $result = \zip_entry_name($zip_entry); @@ -112,7 +112,7 @@ function zip_entry_name( $zip_entry): string * @throws ZipException * */ -function zip_entry_open( $zip_dp, $zip_entry, string $mode = "rb"): void +function zip_entry_open($zip_dp, $zip_entry, string $mode = "rb"): void { error_clear_last(); $result = \zip_entry_open($zip_dp, $zip_entry, $mode); @@ -133,7 +133,7 @@ function zip_entry_open( $zip_dp, $zip_entry, string $mode = "rb"): void * @throws ZipException * */ -function zip_entry_read( $zip_entry, int $len = 1024): string +function zip_entry_read($zip_entry, int $len = 1024): string { error_clear_last(); $result = \zip_entry_read($zip_entry, $len); @@ -142,4 +142,3 @@ function zip_entry_read( $zip_entry, int $len = 1024): string } return $result; } - diff --git a/generated/zlib.php b/generated/zlib.php index 4efa1a0b..59c139c2 100644 --- a/generated/zlib.php +++ b/generated/zlib.php @@ -22,7 +22,7 @@ * @throws ZlibException * */ -function deflate_add( $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string +function deflate_add($context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string { error_clear_last(); $result = \deflate_add($context, $data, $flush_mode); @@ -142,7 +142,7 @@ function deflate_init(int $encoding, array $options = []) * @throws ZlibException * */ -function gzclose( $stream): void +function gzclose($stream): void { error_clear_last(); $result = \gzclose($stream); @@ -298,12 +298,12 @@ function gzfile(string $filename, int $use_include_path = 0): array * @throws ZlibException * */ -function gzgets( $stream, int $length = null): string +function gzgets($stream, int $length = null): string { error_clear_last(); if ($length !== null) { $result = \gzgets($stream, $length); - }else { + } else { $result = \gzgets($stream); } if ($result === false) { @@ -327,12 +327,12 @@ function gzgets( $stream, int $length = null): string * @throws ZlibException * */ -function gzgetss( $zp, int $length, string $allowable_tags = null): string +function gzgetss($zp, int $length, string $allowable_tags = null): string { error_clear_last(); if ($allowable_tags !== null) { $result = \gzgetss($zp, $length, $allowable_tags); - }else { + } else { $result = \gzgetss($zp, $length); } if ($result === false) { @@ -377,7 +377,7 @@ function gzinflate(string $data, int $max_length = 0): string * @throws ZlibException * */ -function gzpassthru( $stream): int +function gzpassthru($stream): int { error_clear_last(); $result = \gzpassthru($stream); @@ -401,7 +401,7 @@ function gzpassthru( $stream): int * @throws ZlibException * */ -function gzread( $stream, int $length): string +function gzread($stream, int $length): string { error_clear_last(); $result = \gzread($stream, $length); @@ -421,7 +421,7 @@ function gzread( $stream, int $length): string * @throws ZlibException * */ -function gzrewind( $stream): void +function gzrewind($stream): void { error_clear_last(); $result = \gzrewind($stream); @@ -471,12 +471,12 @@ function gzuncompress(string $data, int $max_length = 0): string * @throws ZlibException * */ -function gzwrite( $stream, string $data, int $length = null): int +function gzwrite($stream, string $data, int $length = null): int { error_clear_last(); if ($length !== null) { $result = \gzwrite($stream, $data, $length); - }else { + } else { $result = \gzwrite($stream, $data); } if ($result === false) { @@ -494,7 +494,7 @@ function gzwrite( $stream, string $data, int $length = null): int * @throws ZlibException * */ -function inflate_get_read_len( $context): int +function inflate_get_read_len($context): int { error_clear_last(); $result = \inflate_get_read_len($context); @@ -513,7 +513,7 @@ function inflate_get_read_len( $context): int * @throws ZlibException * */ -function inflate_get_status( $context): int +function inflate_get_status($context): int { error_clear_last(); $result = \inflate_get_status($context); @@ -545,7 +545,7 @@ function inflate_get_status( $context): int * @throws ZlibException * */ -function inflate_add( $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string +function inflate_add($context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string { error_clear_last(); $result = \inflate_add($context, $data, $flush_mode); @@ -682,4 +682,3 @@ function zlib_decode(string $data, int $max_length = 0): string } return $result; } - diff --git a/generator/composer.json b/generator/composer.json index 40ad548a..9f8dcc0a 100644 --- a/generator/composer.json +++ b/generator/composer.json @@ -7,7 +7,7 @@ } }, "require": { - "php": "^7.2", + "php": "^8.0", "ext-simplexml": "*", "ext-json": "*", "symfony/console": "^4.1.4", @@ -15,7 +15,7 @@ "symfony/finder": "^4.1" }, "require-dev": { - "phpunit/phpunit": "^8.5.2", + "phpunit/phpunit": "^9.0", "thecodingmachine/phpstan-strict-rules": "^0.12", "squizlabs/php_codesniffer": "^3.2", "php-coveralls/php-coveralls": "^2.1", diff --git a/generator/composer.lock b/generator/composer.lock index 914f222a..4a67cf59 100644 --- a/generator/composer.lock +++ b/generator/composer.lock @@ -4,31 +4,26 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "431ecbdfbe4c78368c53a8ca1f05d845", + "content-hash": "9e2ba5be3ec3df711b0dbdeb59f94bfe", "packages": [ { "name": "psr/container", - "version": "1.0.0", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/php-fig/container.git", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", + "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=7.2.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, "autoload": { "psr-4": { "Psr\\Container\\": "src/" @@ -41,7 +36,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common Container Interface (PHP FIG PSR-11)", @@ -53,39 +48,45 @@ "container-interop", "psr" ], - "time": "2017-02-14T16:28:37+00:00" + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/1.1.1" + }, + "time": "2021-03-05T17:36:06+00:00" }, { "name": "symfony/console", - "version": "v4.4.1", + "version": "v4.4.27", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "f0aea3df20d15635b3cb9730ca5eea1c65b7f201" + "reference": "e523c86d2c727b128ce339a72733c9688e002ed3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/f0aea3df20d15635b3cb9730ca5eea1c65b7f201", - "reference": "f0aea3df20d15635b3cb9730ca5eea1c65b7f201", + "url": "https://api.github.com/repos/symfony/console/zipball/e523c86d2c727b128ce339a72733c9688e002ed3", + "reference": "e523c86d2c727b128ce339a72733c9688e002ed3", "shasum": "" }, "require": { - "php": "^7.1.3", + "php": ">=7.1.3", "symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-php73": "^1.8", + "symfony/polyfill-php80": "^1.16", "symfony/service-contracts": "^1.1|^2" }, "conflict": { + "psr/log": ">=3", "symfony/dependency-injection": "<3.4", "symfony/event-dispatcher": "<4.3|>=5", "symfony/lock": "<4.4", "symfony/process": "<3.3" }, "provide": { - "psr/log-implementation": "1.0" + "psr/log-implementation": "1.0|2.0" }, "require-dev": { - "psr/log": "~1.0", + "psr/log": "^1|^2", "symfony/config": "^3.4|^4.0|^5.0", "symfony/dependency-injection": "^3.4|^4.0|^5.0", "symfony/event-dispatcher": "^4.3", @@ -100,11 +101,6 @@ "symfony/process": "" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.4-dev" - } - }, "autoload": { "psr-4": { "Symfony\\Component\\Console\\": "" @@ -127,33 +123,46 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Console Component", + "description": "Eases the creation of beautiful and testable command line interfaces", "homepage": "https://symfony.com", - "time": "2019-12-01T10:06:17+00:00" + "support": { + "source": "https://github.com/symfony/console/tree/v4.4.27" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-22T08:29:31+00:00" }, { "name": "symfony/finder", - "version": "v4.4.1", + "version": "v4.4.27", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "ce8743441da64c41e2a667b8eb66070444ed911e" + "reference": "42414d7ac96fc2880a783b872185789dea0d4262" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/ce8743441da64c41e2a667b8eb66070444ed911e", - "reference": "ce8743441da64c41e2a667b8eb66070444ed911e", + "url": "https://api.github.com/repos/symfony/finder/zipball/42414d7ac96fc2880a783b872185789dea0d4262", + "reference": "42414d7ac96fc2880a783b872185789dea0d4262", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": ">=7.1.3", + "symfony/polyfill-php80": "^1.16" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.4-dev" - } - }, "autoload": { "psr-4": { "Symfony\\Component\\Finder\\": "" @@ -176,26 +185,43 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Finder Component", + "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", - "time": "2019-11-17T21:56:56+00:00" + "support": { + "source": "https://github.com/symfony/finder/tree/v4.4.27" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-23T15:41:52+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.13.1", + "version": "v1.23.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "7b4aab9743c30be783b73de055d24a39cf4b954f" + "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7b4aab9743c30be783b73de055d24a39cf4b954f", - "reference": "7b4aab9743c30be783b73de055d24a39cf4b954f", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2df51500adbaebdc4c38dea4c89a2e131c45c8a1", + "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" }, "suggest": { "ext-mbstring": "For best performance" @@ -203,7 +229,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.13-dev" + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -237,29 +267,50 @@ "portable", "shim" ], - "time": "2019-11-27T14:18:11+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-05-27T09:27:20+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.13.1", + "version": "v1.23.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "4b0e2222c55a25b4541305a053013d5647d3a25f" + "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/4b0e2222c55a25b4541305a053013d5647d3a25f", - "reference": "4b0e2222c55a25b4541305a053013d5647d3a25f", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fba8933c384d6476ab14fb7b8526e5287ca7e010", + "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.13-dev" + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -295,31 +346,127 @@ "portable", "shim" ], - "time": "2019-11-27T16:25:15+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-php73/tree/v1.23.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-02-19T12:13:01+00:00" }, { - "name": "symfony/process", - "version": "v4.4.1", + "name": "symfony/polyfill-php80", + "version": "v1.23.0", "source": { "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "51c0135ef3f44c5803b33dc60e96bf4f77752726" + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/51c0135ef3f44c5803b33dc60e96bf4f77752726", - "reference": "51c0135ef3f44c5803b33dc60e96bf4f77752726", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/eca0bf41ed421bed1b57c4958bab16aa86b757d0", + "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.4-dev" + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" } + ], + "time": "2021-02-19T12:13:01+00:00" + }, + { + "name": "symfony/process", + "version": "v4.4.27", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "0b7dc5599ac4aa6d7b936c8f7d10abae64f6cf7f" }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/0b7dc5599ac4aa6d7b936c8f7d10abae64f6cf7f", + "reference": "0b7dc5599ac4aa6d7b936c8f7d10abae64f6cf7f", + "shasum": "" + }, + "require": { + "php": ">=7.1.3", + "symfony/polyfill-php80": "^1.16" + }, + "type": "library", "autoload": { "psr-4": { "Symfony\\Component\\Process\\": "" @@ -342,27 +489,44 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Process Component", + "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", - "time": "2019-11-28T13:33:56+00:00" + "support": { + "source": "https://github.com/symfony/process/tree/v4.4.27" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-23T15:41:52+00:00" }, { "name": "symfony/service-contracts", - "version": "v2.0.1", + "version": "v2.4.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "144c5e51266b281231e947b51223ba14acf1a749" + "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/144c5e51266b281231e947b51223ba14acf1a749", - "reference": "144c5e51266b281231e947b51223ba14acf1a749", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb", + "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb", "shasum": "" }, "require": { - "php": "^7.2.5", - "psr/container": "^1.0" + "php": ">=7.2.5", + "psr/container": "^1.1" }, "suggest": { "symfony/service-implementation": "" @@ -370,7 +534,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "2.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -402,42 +570,54 @@ "interoperability", "standards" ], - "time": "2019-11-18T17:27:11+00:00" + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v2.4.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-04-01T10:43:52+00:00" } ], "packages-dev": [ { "name": "doctrine/instantiator", - "version": "1.3.0", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "ae466f726242e637cebdd526a7d991b9433bacf1" + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/ae466f726242e637cebdd526a7d991b9433bacf1", - "reference": "ae466f726242e637cebdd526a7d991b9433bacf1", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", "shasum": "" }, "require": { - "php": "^7.1" + "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^6.0", + "doctrine/coding-standard": "^8.0", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.13", - "phpstan/phpstan-phpunit": "^0.11", - "phpstan/phpstan-shim": "^0.11", - "phpunit/phpunit": "^7.0" + "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, "autoload": { "psr-4": { "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" @@ -451,7 +631,7 @@ { "name": "Marco Pivetta", "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" + "homepage": "https://ocramius.github.io/" } ], "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", @@ -460,41 +640,66 @@ "constructor", "instantiate" ], - "time": "2019-10-21T16:45:58+00:00" + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.4.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2020-11-10T18:47:58+00:00" }, { "name": "guzzlehttp/guzzle", - "version": "6.5.0", + "version": "7.3.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "dbc2bc3a293ed6b1ae08a3651e2bfd213d19b6a5" + "reference": "7008573787b430c1c1f650e3722d9bba59967628" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/dbc2bc3a293ed6b1ae08a3651e2bfd213d19b6a5", - "reference": "dbc2bc3a293ed6b1ae08a3651e2bfd213d19b6a5", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/7008573787b430c1c1f650e3722d9bba59967628", + "reference": "7008573787b430c1c1f650e3722d9bba59967628", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.0", - "guzzlehttp/psr7": "^1.6.1", - "php": ">=5.5" + "guzzlehttp/promises": "^1.4", + "guzzlehttp/psr7": "^1.7 || ^2.0", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" }, "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", "ext-curl": "*", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", + "php-http/client-integration-tests": "^3.0", + "phpunit/phpunit": "^8.5.5 || ^9.3.5", "psr/log": "^1.1" }, "suggest": { + "ext-curl": "Required for CURL handler support", "ext-intl": "Required for Internationalized Domain Name (IDN) support", "psr/log": "Required for using the Log middleware" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "6.5-dev" + "dev-master": "7.3-dev" } }, "autoload": { @@ -514,6 +719,11 @@ "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" } ], "description": "Guzzle is a PHP HTTP client library", @@ -524,30 +734,54 @@ "framework", "http", "http client", + "psr-18", + "psr-7", "rest", "web service" ], - "time": "2019-12-07T18:20:45+00:00" + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.3.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://github.com/alexeyshockov", + "type": "github" + }, + { + "url": "https://github.com/gmponos", + "type": "github" + } + ], + "time": "2021-03-23T11:33:13+00:00" }, { "name": "guzzlehttp/promises", - "version": "v1.3.1", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" + "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", + "url": "https://api.github.com/repos/guzzle/promises/zipball/8e7d04f1f6450fef59366c399cfad4b9383aa30d", + "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d", "shasum": "" }, "require": { - "php": ">=5.5.0" + "php": ">=5.5" }, "require-dev": { - "phpunit/phpunit": "^4.0" + "symfony/phpunit-bridge": "^4.4 || ^5.1" }, "type": "library", "extra": { @@ -578,50 +812,54 @@ "keywords": [ "promise" ], - "time": "2016-12-20T10:07:11+00:00" + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/1.4.1" + }, + "time": "2021-03-07T09:25:29+00:00" }, { "name": "guzzlehttp/psr7", - "version": "1.6.1", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "239400de7a173fe9901b9ac7c06497751f00727a" + "reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a", - "reference": "239400de7a173fe9901b9ac7c06497751f00727a", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/1dc8d9cba3897165e16d12bb13d813afb1eb3fe7", + "reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7", "shasum": "" }, "require": { - "php": ">=5.4.0", - "psr/http-message": "~1.0", - "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0", + "ralouphie/getallheaders": "^3.0" }, "provide": { + "psr/http-factory-implementation": "1.0", "psr/http-message-implementation": "1.0" }, "require-dev": { - "ext-zlib": "*", - "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" + "bamarni/composer-bin-plugin": "^1.4.1", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.8 || ^9.3.10" }, "suggest": { - "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses" + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6-dev" + "dev-master": "2.0-dev" } }, "autoload": { "psr-4": { "GuzzleHttp\\Psr7\\": "src/" - }, - "files": [ - "src/functions_include.php" - ] + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -636,6 +874,11 @@ { "name": "Tobias Schultze", "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" } ], "description": "PSR-7 message implementation that also provides common utility methods", @@ -649,24 +892,28 @@ "uri", "url" ], - "time": "2019-07-01T23:21:34+00:00" + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.0.0" + }, + "time": "2021-06-30T20:03:07+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.9.5", + "version": "1.10.2", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "b2c28789e80a97badd14145fda39b545d83ca3ef" + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/b2c28789e80a97badd14145fda39b545d83ca3ef", - "reference": "b2c28789e80a97badd14145fda39b545d83ca3ef", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", "shasum": "" }, "require": { - "php": "^7.1" + "php": "^7.1 || ^8.0" }, "replace": { "myclabs/deep-copy": "self.version" @@ -697,20 +944,30 @@ "object", "object graph" ], - "time": "2020-01-17T21:11:47+00:00" + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2020-11-13T09:40:50+00:00" }, { "name": "nikic/php-parser", - "version": "v4.3.0", + "version": "v4.12.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "9a9981c347c5c49d6dfe5cf826bb882b824080dc" + "reference": "6608f01670c3cc5079e18c1dab1104e002579143" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/9a9981c347c5c49d6dfe5cf826bb882b824080dc", - "reference": "9a9981c347c5c49d6dfe5cf826bb882b824080dc", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6608f01670c3cc5079e18c1dab1104e002579143", + "reference": "6608f01670c3cc5079e18c1dab1104e002579143", "shasum": "" }, "require": { @@ -718,8 +975,8 @@ "php": ">=7.0" }, "require-dev": { - "ircmaxell/php-yacc": "0.0.5", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0" + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" }, "bin": [ "bin/php-parse" @@ -727,7 +984,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.3-dev" + "dev-master": "4.9-dev" } }, "autoload": { @@ -749,32 +1006,37 @@ "parser", "php" ], - "time": "2019-11-08T13:50:10+00:00" + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.12.0" + }, + "time": "2021-07-21T10:44:31+00:00" }, { "name": "phar-io/manifest", - "version": "1.0.3", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/phar-io/manifest.git", - "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4" + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/7761fcacf03b4d4f16e7ccb606d4879ca431fcf4", - "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", "shasum": "" }, "require": { "ext-dom": "*", "ext-phar": "*", - "phar-io/version": "^2.0", - "php": "^5.6 || ^7.0" + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -804,24 +1066,28 @@ } ], "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "time": "2018-07-08T19:23:20+00:00" + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.3" + }, + "time": "2021-07-20T11:28:43+00:00" }, { "name": "phar-io/version", - "version": "2.0.1", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/phar-io/version.git", - "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6" + "reference": "bae7c545bef187884426f042434e561ab1ddb182" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/45a2ec53a73c70ce41d55cedef9063630abaf1b6", - "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6", + "url": "https://api.github.com/repos/phar-io/version/zipball/bae7c545bef187884426f042434e561ab1ddb182", + "reference": "bae7c545bef187884426f042434e561ab1ddb182", "shasum": "" }, "require": { - "php": "^5.6 || ^7.0" + "php": "^7.2 || ^8.0" }, "type": "library", "autoload": { @@ -851,27 +1117,31 @@ } ], "description": "Library for handling version information and constraints", - "time": "2018-07-08T19:19:57+00:00" + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.1.0" + }, + "time": "2021-02-23T14:00:09+00:00" }, { "name": "php-coveralls/php-coveralls", - "version": "v2.2.0", + "version": "v2.4.3", "source": { "type": "git", "url": "https://github.com/php-coveralls/php-coveralls.git", - "reference": "3e6420fa666ef7bae5e750ddeac903153e193bae" + "reference": "909381bd40a17ae6e9076051f0d73293c1c091af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/3e6420fa666ef7bae5e750ddeac903153e193bae", - "reference": "3e6420fa666ef7bae5e750ddeac903153e193bae", + "url": "https://api.github.com/repos/php-coveralls/php-coveralls/zipball/909381bd40a17ae6e9076051f0d73293c1c091af", + "reference": "909381bd40a17ae6e9076051f0d73293c1c091af", "shasum": "" }, "require": { "ext-json": "*", "ext-simplexml": "*", - "guzzlehttp/guzzle": "^6.0", - "php": "^5.5 || ^7.0", + "guzzlehttp/guzzle": "^6.0 || ^7.0", + "php": "^5.5 || ^7.0 || ^8.0", "psr/log": "^1.0", "symfony/config": "^2.1 || ^3.0 || ^4.0 || ^5.0", "symfony/console": "^2.1 || ^3.0 || ^4.0 || ^5.0", @@ -879,7 +1149,8 @@ "symfony/yaml": "^2.0.5 || ^3.0 || ^4.0 || ^5.0" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0" + "phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0 || ^7.0 || ^8.0 || ^9.0", + "sanmai/phpunit-legacy-adapter": "^6.1 || ^8.0" }, "suggest": { "symfony/http-kernel": "Allows Symfony integration" @@ -888,11 +1159,6 @@ "bin/php-coveralls" ], "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.2-dev" - } - }, "autoload": { "psr-4": { "PhpCoveralls\\": "src/" @@ -934,32 +1200,33 @@ "github", "test" ], - "time": "2019-11-20T16:29:20+00:00" + "support": { + "issues": "https://github.com/php-coveralls/php-coveralls/issues", + "source": "https://github.com/php-coveralls/php-coveralls/tree/v2.4.3" + }, + "time": "2020-12-24T09:17:03+00:00" }, { "name": "phpdocumentor/reflection-common", - "version": "2.0.0", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a" + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/63a995caa1ca9e5590304cd845c15ad6d482a62a", - "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", "shasum": "" }, "require": { - "php": ">=7.1" - }, - "require-dev": { - "phpunit/phpunit": "~6" + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-2.x": "2.x-dev" } }, "autoload": { @@ -986,32 +1253,35 @@ "reflection", "static analysis" ], - "time": "2018-08-07T13:53:10+00:00" + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", + "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" + }, + "time": "2020-06-27T09:03:43+00:00" }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.0.0", + "version": "5.2.2", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "a48807183a4b819072f26e347bbd0b5199a9d15f" + "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/a48807183a4b819072f26e347bbd0b5199a9d15f", - "reference": "a48807183a4b819072f26e347bbd0b5199a9d15f", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556", + "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556", "shasum": "" }, "require": { - "ext-filter": "^7.1", - "php": "^7.2", - "phpdocumentor/reflection-common": "^2.0", - "phpdocumentor/type-resolver": "^1.0", - "webmozart/assert": "^1" + "ext-filter": "*", + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.2", + "phpdocumentor/type-resolver": "^1.3", + "webmozart/assert": "^1.9.1" }, "require-dev": { - "doctrine/instantiator": "^1", - "mockery/mockery": "^1" + "mockery/mockery": "~1.3.2" }, "type": "library", "extra": { @@ -1039,35 +1309,37 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2020-02-09T09:16:15+00:00" + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master" + }, + "time": "2020-09-03T19:13:55+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.0.1", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9" + "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", - "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", + "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", "shasum": "" }, "require": { - "php": "^7.1", + "php": "^7.2 || ^8.0", "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { - "ext-tokenizer": "^7.1", - "mockery/mockery": "~1", - "phpunit/phpunit": "^7.0" + "ext-tokenizer": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-1.x": "1.x-dev" } }, "autoload": { @@ -1086,37 +1358,41 @@ } ], "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "time": "2019-08-22T18:11:29+00:00" + "support": { + "issues": "https://github.com/phpDocumentor/TypeResolver/issues", + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0" + }, + "time": "2020-09-17T18:55:26+00:00" }, { "name": "phpspec/prophecy", - "version": "v1.10.2", + "version": "1.13.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9" + "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/b4400efc9d206e83138e2bb97ed7f5b14b831cd9", - "reference": "b4400efc9d206e83138e2bb97ed7f5b14b831cd9", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/be1996ed8adc35c3fd795488a653f4b518be70ea", + "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.0.2", - "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", - "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0", - "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0" + "doctrine/instantiator": "^1.2", + "php": "^7.2 || ~8.0, <8.1", + "phpdocumentor/reflection-docblock": "^5.2", + "sebastian/comparator": "^3.0 || ^4.0", + "sebastian/recursion-context": "^3.0 || ^4.0" }, "require-dev": { - "phpspec/phpspec": "^2.5 || ^3.2", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" + "phpspec/phpspec": "^6.0", + "phpunit/phpunit": "^8.0 || ^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.10.x-dev" + "dev-master": "1.11.x-dev" } }, "autoload": { @@ -1149,20 +1425,24 @@ "spy", "stub" ], - "time": "2020-01-20T15:57:02+00:00" + "support": { + "issues": "https://github.com/phpspec/prophecy/issues", + "source": "https://github.com/phpspec/prophecy/tree/1.13.0" + }, + "time": "2021-03-17T13:42:18+00:00" }, { "name": "phpstan/phpstan", - "version": "0.12.68", + "version": "0.12.93", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "ddbe01af0706ee094c3f1ce9730b35aebb508d3d" + "reference": "7b7602f05d340ffa418c59299f8c053ac6c3e7ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ddbe01af0706ee094c3f1ce9730b35aebb508d3d", - "reference": "ddbe01af0706ee094c3f1ce9730b35aebb508d3d", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/7b7602f05d340ffa418c59299f8c053ac6c3e7ea", + "reference": "7b7602f05d340ffa418c59299f8c053ac6c3e7ea", "shasum": "" }, "require": { @@ -1191,11 +1471,19 @@ "MIT" ], "description": "PHPStan - PHP Static Analysis Tool", + "support": { + "issues": "https://github.com/phpstan/phpstan/issues", + "source": "https://github.com/phpstan/phpstan/tree/0.12.93" + }, "funding": [ { "url": "https://github.com/ondrejmirtes", "type": "github" }, + { + "url": "https://github.com/phpstan", + "type": "github" + }, { "url": "https://www.patreon.com/phpstan", "type": "patreon" @@ -1205,44 +1493,48 @@ "type": "tidelift" } ], - "time": "2021-01-18T12:29:17+00:00" + "time": "2021-07-20T10:49:53+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "7.0.10", + "version": "9.2.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "f1884187926fbb755a9aaf0b3836ad3165b478bf" + "reference": "f6293e1b30a2354e8428e004689671b83871edde" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f1884187926fbb755a9aaf0b3836ad3165b478bf", - "reference": "f1884187926fbb755a9aaf0b3836ad3165b478bf", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f6293e1b30a2354e8428e004689671b83871edde", + "reference": "f6293e1b30a2354e8428e004689671b83871edde", "shasum": "" }, "require": { "ext-dom": "*", + "ext-libxml": "*", "ext-xmlwriter": "*", - "php": "^7.2", - "phpunit/php-file-iterator": "^2.0.2", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-token-stream": "^3.1.1", - "sebastian/code-unit-reverse-lookup": "^1.0.1", - "sebastian/environment": "^4.2.2", - "sebastian/version": "^2.0.1", - "theseer/tokenizer": "^1.1.3" + "nikic/php-parser": "^4.10.2", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.3", + "phpunit/php-text-template": "^2.0.2", + "sebastian/code-unit-reverse-lookup": "^2.0.2", + "sebastian/complexity": "^2.0", + "sebastian/environment": "^5.1.2", + "sebastian/lines-of-code": "^1.0.3", + "sebastian/version": "^3.0.1", + "theseer/tokenizer": "^1.2.0" }, "require-dev": { - "phpunit/phpunit": "^8.2.2" + "phpunit/phpunit": "^9.3" }, "suggest": { - "ext-xdebug": "^2.7.2" + "ext-pcov": "*", + "ext-xdebug": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "7.0-dev" + "dev-master": "9.2-dev" } }, "autoload": { @@ -1268,32 +1560,42 @@ "testing", "xunit" ], - "time": "2019-11-20T13:55:58+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-03-28T07:26:59+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "2.0.2", + "version": "3.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "050bedf145a257b1ff02746c31894800e5122946" + "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/050bedf145a257b1ff02746c31894800e5122946", - "reference": "050bedf145a257b1ff02746c31894800e5122946", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/aa4be8575f26070b100fccb67faabb28f21f66f8", + "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8", "shasum": "" }, "require": { - "php": "^7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.1" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -1318,27 +1620,49 @@ "filesystem", "iterator" ], - "time": "2018-09-13T20:33:42+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:57:25+00:00" }, { - "name": "phpunit/php-text-template", - "version": "1.2.1", + "name": "phpunit/php-invoker", + "version": "3.1.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-pcntl": "*" }, "type": "library", - "autoload": { + "extra": { + "branch-alias": { + "dev-master": "3.1-dev" + } + }, + "autoload": { "classmap": [ "src/" ] @@ -1354,37 +1678,47 @@ "role": "lead" } ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", "keywords": [ - "template" + "process" ], - "time": "2015-06-21T13:50:34+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:58:55+00:00" }, { - "name": "phpunit/php-timer", - "version": "2.1.2", + "name": "phpunit/php-text-template", + "version": "2.0.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "1038454804406b0b5f5f520358e78c1c2f71501e" + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/1038454804406b0b5f5f520358e78c1c2f71501e", - "reference": "1038454804406b0b5f5f520358e78c1c2f71501e", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", "shasum": "" }, "require": { - "php": "^7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -1403,38 +1737,47 @@ "role": "lead" } ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", "keywords": [ - "timer" + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2019-06-07T04:22:29+00:00" + "time": "2020-10-26T05:33:50+00:00" }, { - "name": "phpunit/php-token-stream", - "version": "3.1.1", + "name": "phpunit/php-timer", + "version": "5.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "995192df77f63a59e47f025390d2d1fdf8f425ff" + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/995192df77f63a59e47f025390d2d1fdf8f425ff", - "reference": "995192df77f63a59e47f025390d2d1fdf8f425ff", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", "shasum": "" }, "require": { - "ext-tokenizer": "*", - "php": "^7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -1449,65 +1792,78 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", "keywords": [ - "tokenizer" + "timer" ], - "abandoned": true, - "time": "2019-09-17T06:23:10+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:16:10+00:00" }, { "name": "phpunit/phpunit", - "version": "8.5.2", + "version": "9.5.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "018b6ac3c8ab20916db85fa91bf6465acb64d1e0" + "reference": "d0dc8b6999c937616df4fb046792004b33fd31c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/018b6ac3c8ab20916db85fa91bf6465acb64d1e0", - "reference": "018b6ac3c8ab20916db85fa91bf6465acb64d1e0", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d0dc8b6999c937616df4fb046792004b33fd31c5", + "reference": "d0dc8b6999c937616df4fb046792004b33fd31c5", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.2.0", + "doctrine/instantiator": "^1.3.1", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.9.1", - "phar-io/manifest": "^1.0.3", - "phar-io/version": "^2.0.1", - "php": "^7.2", - "phpspec/prophecy": "^1.8.1", - "phpunit/php-code-coverage": "^7.0.7", - "phpunit/php-file-iterator": "^2.0.2", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-timer": "^2.1.2", - "sebastian/comparator": "^3.0.2", - "sebastian/diff": "^3.0.2", - "sebastian/environment": "^4.2.2", - "sebastian/exporter": "^3.1.1", - "sebastian/global-state": "^3.0.0", - "sebastian/object-enumerator": "^3.0.3", - "sebastian/resource-operations": "^2.0.1", - "sebastian/type": "^1.1.3", - "sebastian/version": "^2.0.1" + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.1", + "phar-io/version": "^3.0.2", + "php": ">=7.3", + "phpspec/prophecy": "^1.12.1", + "phpunit/php-code-coverage": "^9.2.3", + "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.3", + "phpunit/php-timer": "^5.0.2", + "sebastian/cli-parser": "^1.0.1", + "sebastian/code-unit": "^1.0.6", + "sebastian/comparator": "^4.0.5", + "sebastian/diff": "^4.0.3", + "sebastian/environment": "^5.1.3", + "sebastian/exporter": "^4.0.3", + "sebastian/global-state": "^5.0.1", + "sebastian/object-enumerator": "^4.0.3", + "sebastian/resource-operations": "^3.0.3", + "sebastian/type": "^2.3.4", + "sebastian/version": "^3.0.2" }, "require-dev": { - "ext-pdo": "*" + "ext-pdo": "*", + "phpspec/prophecy-phpunit": "^2.0.1" }, "suggest": { "ext-soap": "*", - "ext-xdebug": "*", - "phpunit/php-invoker": "^2.0.0" + "ext-xdebug": "*" }, "bin": [ "phpunit" @@ -1515,12 +1871,15 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "8.5-dev" + "dev-master": "9.5-dev" } }, "autoload": { "classmap": [ "src/" + ], + "files": [ + "src/Framework/Assert/Functions.php" ] }, "notification-url": "https://packagist.org/downloads/", @@ -1541,7 +1900,128 @@ "testing", "xunit" ], - "time": "2020-01-08T08:49:49+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.7" + }, + "funding": [ + { + "url": "https://phpunit.de/donate.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-07-19T06:14:47+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client/tree/master" + }, + "time": "2020-06-29T06:28:15+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "shasum": "" + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/master" + }, + "time": "2019-04-30T12:38:16+00:00" }, { "name": "psr/http-message", @@ -1591,20 +2071,23 @@ "request", "response" ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, "time": "2016-08-06T14:39:51+00:00" }, { "name": "psr/log", - "version": "1.1.2", + "version": "1.1.4", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801" + "reference": "d49695b909c3b7628b6289db5479a1c204601f11" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801", - "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801", + "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11", "shasum": "" }, "require": { @@ -1628,7 +2111,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for logging libraries", @@ -1638,7 +2121,10 @@ "psr", "psr-3" ], - "time": "2019-11-01T11:05:21+00:00" + "support": { + "source": "https://github.com/php-fig/log/tree/1.1.4" + }, + "time": "2021-05-03T11:20:27+00:00" }, { "name": "ralouphie/getallheaders", @@ -1678,32 +2164,148 @@ } ], "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, "time": "2019-03-08T08:55:37+00:00" }, { - "name": "sebastian/code-unit-reverse-lookup", + "name": "sebastian/cli-parser", "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:08:49+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:08:54+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18" + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", - "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", "shasum": "" }, "require": { - "php": "^5.6 || ^7.0" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^5.7 || ^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -1723,34 +2325,44 @@ ], "description": "Looks up which function or method a line of code belongs to", "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "time": "2017-03-04T06:30:41+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:30:19+00:00" }, { "name": "sebastian/comparator", - "version": "3.0.2", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da" + "reference": "55f4261989e546dc112258c7a75935a81a7ce382" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/5de4fc177adf9bce8df98d8d141a7559d7ccf6da", - "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382", + "reference": "55f4261989e546dc112258c7a75935a81a7ce382", "shasum": "" }, "require": { - "php": "^7.1", - "sebastian/diff": "^3.0", - "sebastian/exporter": "^3.1" + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^7.1" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -1763,6 +2375,10 @@ "BSD-3-Clause" ], "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, { "name": "Jeff Welch", "email": "whatthejeff@gmail.com" @@ -1774,10 +2390,6 @@ { "name": "Bernhard Schussek", "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" } ], "description": "Provides the functionality to compare PHP values for equality", @@ -1787,33 +2399,100 @@ "compare", "equality" ], - "time": "2018-07-12T15:12:46+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:49:45+00:00" + }, + { + "name": "sebastian/complexity", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.7", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:52:27+00:00" }, { "name": "sebastian/diff", - "version": "3.0.2", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29" + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/720fcc7e9b5cf384ea68d9d930d480907a0c1a29", - "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", "shasum": "" }, "require": { - "php": "^7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.5 || ^8.0", - "symfony/process": "^2 || ^3.3 || ^4" + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -1826,13 +2505,13 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" } ], "description": "Diff implementation", @@ -1843,27 +2522,37 @@ "unidiff", "unified diff" ], - "time": "2019-02-04T06:01:07+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:10:38+00:00" }, { "name": "sebastian/environment", - "version": "4.2.3", + "version": "5.1.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368" + "reference": "388b6ced16caa751030f6a69e588299fa09200ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/464c90d7bdf5ad4e8a6aea15c091fec0603d4368", - "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac", + "reference": "388b6ced16caa751030f6a69e588299fa09200ac", "shasum": "" }, "require": { - "php": "^7.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^7.5" + "phpunit/phpunit": "^9.3" }, "suggest": { "ext-posix": "*" @@ -1871,7 +2560,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -1896,34 +2585,44 @@ "environment", "hhvm" ], - "time": "2019-11-20T08:46:58+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:52:38+00:00" }, { "name": "sebastian/exporter", - "version": "3.1.2", + "version": "4.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e" + "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/68609e1261d215ea5b21b7987539cbfbe156ec3e", - "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65", + "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65", "shasum": "" }, "require": { - "php": "^7.0", - "sebastian/recursion-context": "^3.0" + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" }, "require-dev": { "ext-mbstring": "*", - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -1963,30 +2662,40 @@ "export", "exporter" ], - "time": "2019-09-14T09:02:43+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:24:23+00:00" }, { "name": "sebastian/global-state", - "version": "3.0.0", + "version": "5.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "edf8a461cf1d4005f19fb0b6b8b95a9f7fa0adc4" + "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/edf8a461cf1d4005f19fb0b6b8b95a9f7fa0adc4", - "reference": "edf8a461cf1d4005f19fb0b6b8b95a9f7fa0adc4", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/23bd5951f7ff26f12d4e3242864df3e08dec4e49", + "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49", "shasum": "" }, "require": { - "php": "^7.2", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^8.0" + "phpunit/phpunit": "^9.3" }, "suggest": { "ext-uopz": "*" @@ -1994,7 +2703,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -2017,34 +2726,101 @@ "keywords": [ "global state" ], - "time": "2019-02-01T05:30:01+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-06-11T13:31:12+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.6", + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-28T06:42:11+00:00" }, { "name": "sebastian/object-enumerator", - "version": "3.0.3", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5" + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5", - "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", "shasum": "" }, "require": { - "php": "^7.0", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -2064,32 +2840,42 @@ ], "description": "Traverses array structures and object graphs to enumerate all referenced objects", "homepage": "https://github.com/sebastianbergmann/object-enumerator/", - "time": "2017-08-03T12:35:26+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:12:34+00:00" }, { "name": "sebastian/object-reflector", - "version": "1.1.1", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "773f97c67f28de00d397be301821b06708fca0be" + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be", - "reference": "773f97c67f28de00d397be301821b06708fca0be", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", "shasum": "" }, "require": { - "php": "^7.0" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -2109,32 +2895,42 @@ ], "description": "Allows reflection of object attributes, including inherited and non-public ones", "homepage": "https://github.com/sebastianbergmann/object-reflector/", - "time": "2017-03-29T09:07:27+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:14:26+00:00" }, { "name": "sebastian/recursion-context", - "version": "3.0.0", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8" + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", - "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", "shasum": "" }, "require": { - "php": "^7.0" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -2147,14 +2943,14 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, { "name": "Adam Harvey", "email": "aharvey@php.net" @@ -2162,29 +2958,42 @@ ], "description": "Provides functionality to recursively process PHP variables", "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2017-03-03T06:23:57+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:17:30+00:00" }, { "name": "sebastian/resource-operations", - "version": "2.0.1", + "version": "3.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9" + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/4d7a795d35b889bf80a0cc04e08d77cedfa917a9", - "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", "shasum": "" }, "require": { - "php": "^7.1" + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -2204,32 +3013,43 @@ ], "description": "Provides a list of PHP built-in functions that operate on resources", "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "time": "2018-10-04T04:07:39+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "abandoned": true, + "time": "2020-09-28T06:45:17+00:00" }, { "name": "sebastian/type", - "version": "1.1.3", + "version": "2.3.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "3aaaa15fa71d27650d62a948be022fe3b48541a3" + "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/3aaaa15fa71d27650d62a948be022fe3b48541a3", - "reference": "3aaaa15fa71d27650d62a948be022fe3b48541a3", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914", + "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914", "shasum": "" }, "require": { - "php": "^7.2" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^8.2" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "2.3-dev" } }, "autoload": { @@ -2250,29 +3070,39 @@ ], "description": "Collection of value objects that represent the types of the PHP type system", "homepage": "https://github.com/sebastianbergmann/type", - "time": "2019-07-02T08:10:15+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/2.3.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-06-15T12:49:02+00:00" }, { "name": "sebastian/version", - "version": "2.0.1", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + "reference": "c6c1022351a901512170118436c764e473f6de8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", "shasum": "" }, "require": { - "php": ">=5.6" + "php": ">=7.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -2293,20 +3123,30 @@ ], "description": "Library that helps with managing the version number of Git-hosted PHP projects", "homepage": "https://github.com/sebastianbergmann/version", - "time": "2016-10-03T07:35:21+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:39:44+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.5.3", + "version": "3.6.0", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb" + "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/557a1fc7ac702c66b0bbfe16ab3d55839ef724cb", - "reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ffced0d2c8fa8e6cdc4d695a743271fab6c38625", + "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625", "shasum": "" }, "require": { @@ -2344,26 +3184,34 @@ "phpcs", "standards" ], - "time": "2019-12-04T04:46:47+00:00" + "support": { + "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", + "source": "https://github.com/squizlabs/PHP_CodeSniffer", + "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" + }, + "time": "2021-04-09T00:54:41+00:00" }, { "name": "symfony/config", - "version": "v5.0.1", + "version": "v5.3.4", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "c0773efcc2c940ffbc4c34a0dba2836f2cf6dc9c" + "reference": "4268f3059c904c61636275182707f81645517a37" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/c0773efcc2c940ffbc4c34a0dba2836f2cf6dc9c", - "reference": "c0773efcc2c940ffbc4c34a0dba2836f2cf6dc9c", + "url": "https://api.github.com/repos/symfony/config/zipball/4268f3059c904c61636275182707f81645517a37", + "reference": "4268f3059c904c61636275182707f81645517a37", "shasum": "" }, "require": { - "php": "^7.2.5", + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1", "symfony/filesystem": "^4.4|^5.0", - "symfony/polyfill-ctype": "~1.8" + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-php80": "^1.16", + "symfony/polyfill-php81": "^1.22" }, "conflict": { "symfony/finder": "<4.4" @@ -2379,11 +3227,6 @@ "symfony/yaml": "To use the yaml reference dumper" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.0-dev" - } - }, "autoload": { "psr-4": { "Symfony\\Component\\Config\\": "" @@ -2406,34 +3249,114 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Config Component", + "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", - "time": "2019-12-01T10:51:15+00:00" + "support": { + "source": "https://github.com/symfony/config/tree/v5.3.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-21T12:40:44+00:00" }, { - "name": "symfony/filesystem", - "version": "v5.0.1", + "name": "symfony/deprecation-contracts", + "version": "v2.4.0", "source": { "type": "git", - "url": "https://github.com/symfony/filesystem.git", - "reference": "1d71f670bc5a07b9ccc97dc44f932177a322d4e6" + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/1d71f670bc5a07b9ccc97dc44f932177a322d4e6", - "reference": "1d71f670bc5a07b9ccc97dc44f932177a322d4e6", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627", + "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627", "shasum": "" }, "require": { - "php": "^7.2.5", - "symfony/polyfill-ctype": "~1.8" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "2.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" } + ], + "time": "2021-03-23T23:28:01+00:00" + }, + { + "name": "symfony/filesystem", + "version": "v5.3.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "343f4fe324383ca46792cae728a3b6e2f708fb32" }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/343f4fe324383ca46792cae728a3b6e2f708fb32", + "reference": "343f4fe324383ca46792cae728a3b6e2f708fb32", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-php80": "^1.16" + }, + "type": "library", "autoload": { "psr-4": { "Symfony\\Component\\Filesystem\\": "" @@ -2456,26 +3379,43 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Filesystem Component", + "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", - "time": "2019-11-26T23:25:11+00:00" + "support": { + "source": "https://github.com/symfony/filesystem/tree/v5.3.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-21T12:40:44+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.14.0", + "version": "v1.23.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "fbdeaec0df06cf3d51c93de80c7eb76e271f5a38" + "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/fbdeaec0df06cf3d51c93de80c7eb76e271f5a38", - "reference": "fbdeaec0df06cf3d51c93de80c7eb76e271f5a38", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce", + "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" }, "suggest": { "ext-ctype": "For best performance" @@ -2483,7 +3423,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.14-dev" + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -2516,32 +3460,123 @@ "polyfill", "portable" ], - "time": "2020-01-13T11:15:53+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-02-19T12:13:01+00:00" }, { - "name": "symfony/stopwatch", - "version": "v5.0.1", + "name": "symfony/polyfill-php81", + "version": "v1.23.0", "source": { "type": "git", - "url": "https://github.com/symfony/stopwatch.git", - "reference": "d410282956706e0b08681a5527447a8e6b6f421e" + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "e66119f3de95efc359483f810c4c3e6436279436" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/d410282956706e0b08681a5527447a8e6b6f421e", - "reference": "d410282956706e0b08681a5527447a8e6b6f421e", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/e66119f3de95efc359483f810c4c3e6436279436", + "reference": "e66119f3de95efc359483f810c4c3e6436279436", "shasum": "" }, "require": { - "php": "^7.2.5", - "symfony/service-contracts": "^1.0|^2" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php81\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php81/tree/v1.23.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" } + ], + "time": "2021-05-21T13:25:03+00:00" + }, + { + "name": "symfony/stopwatch", + "version": "v5.3.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/stopwatch.git", + "reference": "b24c6a92c6db316fee69e38c80591e080e41536c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/b24c6a92c6db316fee69e38c80591e080e41536c", + "reference": "b24c6a92c6db316fee69e38c80591e080e41536c", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/service-contracts": "^1.0|^2" }, + "type": "library", "autoload": { "psr-4": { "Symfony\\Component\\Stopwatch\\": "" @@ -2564,27 +3599,46 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Stopwatch Component", + "description": "Provides a way to profile code", "homepage": "https://symfony.com", - "time": "2019-11-18T17:27:11+00:00" + "support": { + "source": "https://github.com/symfony/stopwatch/tree/v5.3.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-10T08:58:57+00:00" }, { "name": "symfony/yaml", - "version": "v5.0.1", + "version": "v5.3.4", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "51b684480184fa767b97e28eaca67664e48dd3e9" + "reference": "90909bd7352ae57411a93fcd67b09e6199340547" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/51b684480184fa767b97e28eaca67664e48dd3e9", - "reference": "51b684480184fa767b97e28eaca67664e48dd3e9", + "url": "https://api.github.com/repos/symfony/yaml/zipball/90909bd7352ae57411a93fcd67b09e6199340547", + "reference": "90909bd7352ae57411a93fcd67b09e6199340547", "shasum": "" }, "require": { - "php": "^7.2.5", - "symfony/polyfill-ctype": "~1.8" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-php80": "^1.16" }, "conflict": { "symfony/console": "<4.4" @@ -2595,12 +3649,10 @@ "suggest": { "symfony/console": "For validating YAML files using the lint command" }, + "bin": [ + "Resources/bin/yaml-lint" + ], "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.0-dev" - } - }, "autoload": { "psr-4": { "Symfony\\Component\\Yaml\\": "" @@ -2623,26 +3675,43 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Yaml Component", + "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", - "time": "2019-11-18T17:27:11+00:00" + "support": { + "source": "https://github.com/symfony/yaml/tree/v5.3.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-21T12:40:44+00:00" }, { "name": "thecodingmachine/phpstan-strict-rules", - "version": "v0.12.0", + "version": "v0.12.1", "source": { "type": "git", "url": "https://github.com/thecodingmachine/phpstan-strict-rules.git", - "reference": "8c58cc87dc870382b228c95c4f1cc9fc871aaf28" + "reference": "4bb334f6f637ebfba83cfdc7392d549a8a3fbba7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thecodingmachine/phpstan-strict-rules/zipball/8c58cc87dc870382b228c95c4f1cc9fc871aaf28", - "reference": "8c58cc87dc870382b228c95c4f1cc9fc871aaf28", + "url": "https://api.github.com/repos/thecodingmachine/phpstan-strict-rules/zipball/4bb334f6f637ebfba83cfdc7392d549a8a3fbba7", + "reference": "4bb334f6f637ebfba83cfdc7392d549a8a3fbba7", "shasum": "" }, "require": { - "php": "^7.1", + "php": "^7.1|^8.0", "phpstan/phpstan": "^0.12" }, "require-dev": { @@ -2676,27 +3745,31 @@ } ], "description": "A set of additional rules for PHPStan based on best practices followed at TheCodingMachine", - "time": "2019-12-04T11:25:22+00:00" + "support": { + "issues": "https://github.com/thecodingmachine/phpstan-strict-rules/issues", + "source": "https://github.com/thecodingmachine/phpstan-strict-rules/tree/master" + }, + "time": "2020-09-08T09:14:10+00:00" }, { "name": "theseer/tokenizer", - "version": "1.1.3", + "version": "1.2.1", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9" + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9", - "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", "shasum": "" }, "require": { "ext-dom": "*", "ext-tokenizer": "*", "ext-xmlwriter": "*", - "php": "^7.0" + "php": "^7.2 || ^8.0" }, "type": "library", "autoload": { @@ -2716,33 +3789,49 @@ } ], "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "time": "2019-06-13T22:48:21+00:00" + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2021-07-28T10:34:58+00:00" }, { "name": "webmozart/assert", - "version": "1.7.0", + "version": "1.10.0", "source": { "type": "git", - "url": "https://github.com/webmozart/assert.git", - "reference": "aed98a490f9a8f78468232db345ab9cf606cf598" + "url": "https://github.com/webmozarts/assert.git", + "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/aed98a490f9a8f78468232db345ab9cf606cf598", - "reference": "aed98a490f9a8f78468232db345ab9cf606cf598", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25", + "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0", + "php": "^7.2 || ^8.0", "symfony/polyfill-ctype": "^1.8" }, "conflict": { - "vimeo/psalm": "<3.6.0" + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" }, "require-dev": { - "phpunit/phpunit": "^4.8.36 || ^7.5.13" + "phpunit/phpunit": "^8.5.13" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, "autoload": { "psr-4": { "Webmozart\\Assert\\": "src/" @@ -2764,7 +3853,11 @@ "check", "validate" ], - "time": "2020-02-14T12:15:55+00:00" + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.10.0" + }, + "time": "2021-03-09T10:59:23+00:00" } ], "aliases": [], @@ -2773,10 +3866,10 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^7.2", + "php": "^8.0", "ext-simplexml": "*", "ext-json": "*" }, "platform-dev": [], - "plugin-api-version": "1.1.0" + "plugin-api-version": "2.1.0" } diff --git a/generator/config/ignoredFunctions.php b/generator/config/ignoredFunctions.php index e3555d9a..30f8b689 100644 --- a/generator/config/ignoredFunctions.php +++ b/generator/config/ignoredFunctions.php @@ -5,10 +5,8 @@ 'is_uploaded_file', 'stream_is_local', 'is_soap_fault', - // Type hints to object OCI-Lob (weird class that has a dash in its name!) - 'oci_lob_copy', + 'oci_lob_copy', // Type hints to object OCI-Lob (weird class that has a dash in its name!) 'func_get_arg', - //'mktime', // 7th parameter has been removed in PHP 7 'call_user_func_array', 'mb_check_encoding', 'array_search', @@ -18,4 +16,6 @@ 'apcu_delete', // apcu_delete returns false when the $key does not exist in the cache store 'filter_has_var', // this function is meant to return a boolean 'array_multisort', // this function is too buggy, see PR #113 on GitHub + 'imagegrabwindow', + 'get_headers', ]; diff --git a/generator/config/specialCasesFunctions.php b/generator/config/specialCasesFunctions.php index 8943ff59..4704eddf 100644 --- a/generator/config/specialCasesFunctions.php +++ b/generator/config/specialCasesFunctions.php @@ -11,4 +11,7 @@ 'openssl_encrypt', 'readdir', 'socket_write', + 'simplexml_import_dom', + 'simplexml_load_file', + 'simplexml_load_string', ]; diff --git a/generator/doc/update.sh b/generator/doc/update.sh index d3c6006a..2baaff72 100755 --- a/generator/doc/update.sh +++ b/generator/doc/update.sh @@ -1,11 +1,11 @@ if [ ! -d "doc-en" ]; then - mkdir doc-en - cd doc-en - git clone https://github.com/salathe/phpdoc-base doc-base - git clone https://github.com/php/doc-en en - else - cd doc-en/en - git pull - cd ../doc-base - git pull - fi \ No newline at end of file + mkdir doc-en + cd doc-en + git clone https://github.com/salathe/phpdoc-base doc-base + git clone https://github.com/php/doc-en en +else + cd doc-en/en + git pull + cd ../doc-base + git pull +fi \ No newline at end of file diff --git a/generator/phpunit.xml.dist b/generator/phpunit.xml.dist index 8ade109b..b04faf99 100644 --- a/generator/phpunit.xml.dist +++ b/generator/phpunit.xml.dist @@ -1,28 +1,24 @@ - + + + src + + + + + + ./tests/ ./tests/rector - - - src - - - - - - diff --git a/generator/src/FileCreator.php b/generator/src/FileCreator.php index 92069ad8..d7f5dbae 100644 --- a/generator/src/FileCreator.php +++ b/generator/src/FileCreator.php @@ -81,12 +81,12 @@ public function generateFunctionsList(array $functions, string $path): void } /** - * Generates a configuration file for replacing all functions when using rector/rector:~0.6. + * Generates a configuration file for replacing all functions when using rector/rector. * * @param Method[] $functions * @param string $path */ - public function generateRectorFileForZeroPointSeven(array $functions, string $path): void + public function generateRectorFile(array $functions, string $path): void { $functionNames = $this->getFunctionsNameList($functions); @@ -104,7 +104,7 @@ public function generateRectorFileForZeroPointSeven(array $functions, string $pa use Rector\Renaming\Rector\FuncCall\RenameFunctionRector; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; -# This file configures rector/rector:~0.7.0 to replace all PHP functions with their equivalent "safe" functions +# This file configures rector/rector to replace all PHP functions with their equivalent "safe" functions return static function (ContainerConfigurator $containerConfigurator): void { $services = $containerConfigurator->services(); diff --git a/generator/src/GenerateCommand.php b/generator/src/GenerateCommand.php index dd61fd39..3b0bfbdb 100644 --- a/generator/src/GenerateCommand.php +++ b/generator/src/GenerateCommand.php @@ -37,7 +37,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $fileCreator = new FileCreator(); $fileCreator->generatePhpFile($functions, __DIR__ . '/../../generated/'); $fileCreator->generateFunctionsList($functions, __DIR__ . '/../../generated/functionsList.php'); - $fileCreator->generateRectorFileForZeroPointSeven($functions, __DIR__ . '/../../rector-migrate-0.7.php'); + $fileCreator->generateRectorFile($functions, __DIR__ . '/../../rector-migrate.php'); $modules = []; diff --git a/generator/src/PhpStanFunctions/CustomPhpStanFunctionMap.php b/generator/src/PhpStanFunctions/CustomPhpStanFunctionMap.php index f87ec549..23eeac47 100644 --- a/generator/src/PhpStanFunctions/CustomPhpStanFunctionMap.php +++ b/generator/src/PhpStanFunctions/CustomPhpStanFunctionMap.php @@ -10,4 +10,5 @@ 'com_load_typelib' => ['bool', 'typelib_name'=>'string', 'case_insensitive='=>'bool'], // case_insensitive is a bool 'sem_get' => ['resource|false', 'key'=>'int', 'max_acquire='=>'int', 'perm='=>'int', 'auto_release='=>'bool'], // auto_release is a bool 'imap_open' => ['resource|false', 'mailbox'=>'string', 'user'=>'string', 'password'=>'string', 'flags='=>'int', 'retries='=>'int', 'options=' => 'array'], //the last 3 parameters were renamed + 'imagerotate' => ['resource|false', 'src_im'=>'resource', 'angle'=>'float', 'bgdcolor'=>'int', 'ignoretransparent='=>'bool'], //ignoretransparent is a bool instead of a int ]; diff --git a/generator/tests/DocPageTest.php b/generator/tests/DocPageTest.php index 5bd9ac0a..7183382b 100644 --- a/generator/tests/DocPageTest.php +++ b/generator/tests/DocPageTest.php @@ -13,7 +13,6 @@ public function testDetectFalsyFunction() $getCwd = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/dir/functions/getcwd.xml'); $setTime = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/datetime/datetime/settime.xml'); $filesize = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/filesystem/functions/filesize.xml'); - $sessionRegister = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/session/functions/session-register.xml'); $mcryptDecrypt = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/mcrypt/functions/mcrypt-decrypt.xml'); $fsockopen = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/network/functions/fsockopen.xml'); $arrayReplace = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/array/functions/array-replace.xml'); @@ -25,7 +24,6 @@ public function testDetectFalsyFunction() $this->assertTrue($getCwd->detectFalsyFunction()); $this->assertTrue($setTime->detectFalsyFunction()); $this->assertTrue($filesize->detectFalsyFunction()); - $this->assertFalse($sessionRegister->detectFalsyFunction()); $this->assertTrue($mcryptDecrypt->detectFalsyFunction()); $this->assertTrue($fsockopen->detectFalsyFunction()); $this->assertFalse($arrayReplace->detectFalsyFunction()); diff --git a/generator/tests/GeneratedFilesTest.php b/generator/tests/GeneratedFilesTest.php index 04f385d3..021c3b70 100644 --- a/generator/tests/GeneratedFilesTest.php +++ b/generator/tests/GeneratedFilesTest.php @@ -5,7 +5,6 @@ use PHPUnit\Framework\TestCase; use Safe\Exceptions\DatetimeException; use function restore_error_handler; -use Safe\Exceptions\StringsException; use SimpleXMLElement; /** @@ -26,7 +25,7 @@ public function testSprintf() set_error_handler(function () { }); try { - $this->expectException(StringsException::class); + $this->expectException(\ArgumentCountError::class); sprintf('foo%s%s', 'bar'); } finally { restore_error_handler(); @@ -49,9 +48,9 @@ public function testPregMatch() public function testObjects() { - require_once __DIR__ . '/../../generated/simplexml.php'; + require_once __DIR__ . '/../../lib/special_cases.php'; require_once __DIR__ . '/../../lib/Exceptions/SafeExceptionInterface.php'; - require_once __DIR__ . '/../../generated/Exceptions/SimplexmlException.php'; + require_once __DIR__ . '/../../lib/Exceptions/SimplexmlException.php'; $xmlStr = << diff --git a/generator/tests/rector/0.7/composer.json b/generator/tests/rector/0.7/composer.json deleted file mode 100644 index 0b3171a0..00000000 --- a/generator/tests/rector/0.7/composer.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "autoload": { - "psr-4": { - "Test\\": "src/" - } - }, - "require": { - "php": "^7.2", - "rector/rector": "^0.7.6" - }, - "require-dev": { - "phpunit/phpunit": "^7" - }, - "scripts": { - "rector": "rector process src/ --config ../../../../rector-migrate-0.7.php", - "test": "phpunit" - } -} diff --git a/generator/tests/rector/composer.json b/generator/tests/rector/composer.json new file mode 100644 index 00000000..8791ccce --- /dev/null +++ b/generator/tests/rector/composer.json @@ -0,0 +1,18 @@ +{ + "autoload": { + "psr-4": { + "Test\\": "src/" + } + }, + "require": { + "php": "^8.0", + "rector/rector": "^0.11.36" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "scripts": { + "rector": "rector process src/ --config ../../../rector-migrate.php", + "test": "phpunit" + } +} \ No newline at end of file diff --git a/generator/tests/rector/0.7/phpunit.xml.dist b/generator/tests/rector/phpunit.xml.dist similarity index 62% rename from generator/tests/rector/0.7/phpunit.xml.dist rename to generator/tests/rector/phpunit.xml.dist index ceab14d8..c5799a29 100644 --- a/generator/tests/rector/0.7/phpunit.xml.dist +++ b/generator/tests/rector/phpunit.xml.dist @@ -3,15 +3,8 @@ diff --git a/generator/tests/rector/0.7/src/test.php b/generator/tests/rector/src/test.php similarity index 100% rename from generator/tests/rector/0.7/src/test.php rename to generator/tests/rector/src/test.php diff --git a/generator/tests/rector/0.7/tests/RectorTest.php b/generator/tests/rector/tests/RectorTest.php similarity index 77% rename from generator/tests/rector/0.7/tests/RectorTest.php rename to generator/tests/rector/tests/RectorTest.php index bfdca087..75bd940e 100644 --- a/generator/tests/rector/0.7/tests/RectorTest.php +++ b/generator/tests/rector/tests/RectorTest.php @@ -8,6 +8,6 @@ public function testRectorSucceeded() { $content = file_get_contents(__DIR__.'/../src/test.php'); - $this->assertContains('Safe', $content); + self::assertStringContainsString('Safe', $content); } } diff --git a/lib/DateTimeImmutable.php b/lib/DateTimeImmutable.php index 114ec3a3..2ce4933d 100644 --- a/lib/DateTimeImmutable.php +++ b/lib/DateTimeImmutable.php @@ -55,9 +55,9 @@ public function getInnerDateTime(): \DateTimeImmutable * @param DateTimeZone|null $timezone * @throws DatetimeException */ - public static function createFromFormat($format, $time, $timezone = null): self + public static function createFromFormat($format, $time, $timezone = null) { - $datetime = parent::createFromFormat($format, $time, $timezone); + $datetime = \DateTimeImmutable::createFromFormat($format, $time, $timezone); if ($datetime === false) { throw DatetimeException::createFromPhpError(); } diff --git a/lib/Exceptions/CurlException.php b/lib/Exceptions/CurlException.php index 2814066b..d0dbdb69 100644 --- a/lib/Exceptions/CurlException.php +++ b/lib/Exceptions/CurlException.php @@ -6,9 +6,9 @@ class CurlException extends \Exception implements SafeExceptionInterface { /** - * @param resource $ch + * @param \CurlHandle $ch */ - public static function createFromCurlResource($ch): self + public static function createFromPhpError($ch): self { return new self(\curl_error($ch), \curl_errno($ch)); } diff --git a/generated/Exceptions/SimplexmlException.php b/lib/Exceptions/SimplexmlException.php similarity index 88% rename from generated/Exceptions/SimplexmlException.php rename to lib/Exceptions/SimplexmlException.php index 67804e13..477a9151 100644 --- a/generated/Exceptions/SimplexmlException.php +++ b/lib/Exceptions/SimplexmlException.php @@ -5,7 +5,7 @@ class SimplexmlException extends \ErrorException implements SafeExceptionInterfa { public static function createFromPhpError(): self { - $error = error_get_last(); + $error = \error_get_last(); return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1); } } diff --git a/lib/special_cases.php b/lib/special_cases.php index d18e2118..ecfab1b9 100644 --- a/lib/special_cases.php +++ b/lib/special_cases.php @@ -14,6 +14,7 @@ use Safe\Exceptions\JsonException; use Safe\Exceptions\OpensslException; use Safe\Exceptions\PcreException; +use Safe\Exceptions\SimplexmlException; /** * Wrapper for json_decode that throws when an error occurs. @@ -216,7 +217,7 @@ function openssl_encrypt(string $data, string $method, string $key, int $options * socket from the given * buffer. * - * @param resource $socket + * @param \Socket $socket * @param string $buffer The buffer to be written. * @param int $length The optional parameter length can specify an * alternate length of bytes written to the socket. If this length is @@ -230,7 +231,7 @@ function openssl_encrypt(string $data, string $method, string $key, int $options * @throws SocketsException * */ -function socket_write($socket, string $buffer, int $length = 0): int +function socket_write(\Socket $socket, string $buffer, int $length = 0): int { error_clear_last(); $result = $length === 0 ? \socket_write($socket, $buffer) : \socket_write($socket, $buffer, $length); @@ -239,3 +240,84 @@ function socket_write($socket, string $buffer, int $length = 0): int } return $result; } + +/** + * This function takes a node of a DOM + * document and makes it into a SimpleXML node. This new object can + * then be used as a native SimpleXML element. + * + * @param \DOMNode $node A DOM Element node + * @param string $class_name You may use this optional parameter so that + * simplexml_import_dom will return an object of + * the specified class. That class should extend the + * SimpleXMLElement class. + * @return \SimpleXMLElement Returns a SimpleXMLElement. + * @throws SimplexmlException + * + */ +function simplexml_import_dom(\DOMNode $node, string $class_name = \SimpleXMLElement::class): \SimpleXMLElement +{ + error_clear_last(); + $result = \simplexml_import_dom($node, $class_name); + if ($result === null) { + throw SimplexmlException::createFromPhpError(); + } + return $result; +} + +/** + * Convert the well-formed XML document in the given file to an object. + * + * @param string $filename Path to the XML file + * @param string $class_name You may use this optional parameter so that + * simplexml_load_file will return an object of + * the specified class. That class should extend the + * SimpleXMLElement class. + * @param int $options Since Libxml 2.6.0, you may also use the + * options parameter to specify additional Libxml parameters. + * @param string $namespace_or_prefix Namespace prefix or URI. + * @param bool $is_prefix TRUE if namespace_or_prefix is a prefix, FALSE if it's a URI; + * defaults to FALSE. + * @return \SimpleXMLElement Returns an object of class SimpleXMLElement with + * properties containing the data held within the XML document. + * @throws SimplexmlException + * + */ +function simplexml_load_file(string $filename, string $class_name = \SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): \SimpleXMLElement +{ + error_clear_last(); + $result = \simplexml_load_file($filename, $class_name, $options, $namespace_or_prefix, $is_prefix); + if ($result === false) { + throw SimplexmlException::createFromPhpError(); + } + return $result; +} + + +/** + * Takes a well-formed XML string and returns it as an object. + * + * @param string $data A well-formed XML string + * @param string $class_name You may use this optional parameter so that + * simplexml_load_string will return an object of + * the specified class. That class should extend the + * SimpleXMLElement class. + * @param int $options Since Libxml 2.6.0, you may also use the + * options parameter to specify additional Libxml parameters. + * @param string $namespace_or_prefix Namespace prefix or URI. + * @param bool $is_prefix TRUE if namespace_or_prefix is a prefix, FALSE if it's a URI; + * defaults to FALSE. + * @return \SimpleXMLElement Returns an object of class SimpleXMLElement with + * properties containing the data held within the xml document. + * @throws SimplexmlException + * + */ +function simplexml_load_string(string $data, string $class_name = \SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): \SimpleXMLElement +{ + error_clear_last(); + $result = \simplexml_load_string($data, $class_name, $options, $namespace_or_prefix, $is_prefix); + if ($result === false) { + throw SimplexmlException::createFromPhpError(); + } + return $result; +} diff --git a/rector-migrate-0.7.php b/rector-migrate.php similarity index 100% rename from rector-migrate-0.7.php rename to rector-migrate.php