Skip to content

Commit

Permalink
Update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
phpstan-bot committed Jul 19, 2022
1 parent df5ce9d commit ba8b69c
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 28 deletions.
56 changes: 28 additions & 28 deletions Php8StubsMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function __construct(int $phpVersionId)
'apache_getenv' => 'stubs/sapi/apache2handler/apache_getenv.php',
'apache_lookup_uri' => 'stubs/sapi/apache2handler/apache_lookup_uri.php',
'apache_note' => 'stubs/sapi/apache2handler/apache_note.php',
'apache_request_headers' => 'stubs/sapi/fpm/fpm/apache_request_headers.php',
'apache_request_headers' => 'stubs/sapi/apache2handler/apache_request_headers.php',
'apache_response_headers' => 'stubs/sapi/apache2handler/apache_response_headers.php',
'apache_setenv' => 'stubs/sapi/apache2handler/apache_setenv.php',
'array_change_key_case' => 'stubs/ext/standard/array_change_key_case.php',
Expand Down Expand Up @@ -710,7 +710,7 @@ public function __construct(int $phpVersionId)
'get_resource_id' => 'stubs/Zend/get_resource_id.php',
'get_resource_type' => 'stubs/Zend/get_resource_type.php',
'get_resources' => 'stubs/Zend/get_resources.php',
'getallheaders' => 'stubs/sapi/fpm/fpm/getallheaders.php',
'getallheaders' => 'stubs/sapi/apache2handler/getallheaders.php',
'getcwd' => 'stubs/ext/standard/getcwd.php',
'getdate' => 'stubs/ext/date/getdate.php',
'getenv' => 'stubs/ext/standard/getenv.php',
Expand Down Expand Up @@ -2625,17 +2625,24 @@ public function __construct(int $phpVersionId)
);
if ($phpVersionId >= 80100) {
$classes = \array_merge($classes, array (
'ftp\\connection' => 'stubs/ext/ftp/FTP/Connection.php',
'__php_incomplete_class' => 'stubs/ext/standard/__PHP_Incomplete_Class.php',
'assertionerror' => 'stubs/ext/standard/AssertionError.php',
'curlstringfile' => 'stubs/ext/curl/CURLStringFile.php',
'ldap\\connection' => 'stubs/ext/ldap/LDAP/Connection.php',
'ldap\\result' => 'stubs/ext/ldap/LDAP/Result.php',
'ldap\\resultentry' => 'stubs/ext/ldap/LDAP/ResultEntry.php',
'gdfont' => 'stubs/ext/gd/GdFont.php',
'intldatepatterngenerator' => 'stubs/ext/intl/dateformat/IntlDatePatternGenerator.php',
'pspell\\dictionary' => 'stubs/ext/pspell/PSpell/Dictionary.php',
'pspell\\config' => 'stubs/ext/pspell/PSpell/Config.php',
'gdfont' => 'stubs/ext/gd/GdFont.php',
'reflectionintersectiontype' => 'stubs/ext/reflection/ReflectionIntersectionType.php',
'reflectionenum' => 'stubs/ext/reflection/ReflectionEnum.php',
'reflectionenumunitcase' => 'stubs/ext/reflection/ReflectionEnumUnitCase.php',
'reflectionenumbackedcase' => 'stubs/ext/reflection/ReflectionEnumBackedCase.php',
'reflectionfiber' => 'stubs/ext/reflection/ReflectionFiber.php',
'pgsql\\connection' => 'stubs/ext/pgsql/PgSql/Connection.php',
'pgsql\\result' => 'stubs/ext/pgsql/PgSql/Result.php',
'pgsql\\lob' => 'stubs/ext/pgsql/PgSql/Lob.php',
'com_safearray_proxy' => 'stubs/ext/com_dotnet/com_safearray_proxy.php',
'imap\\connection' => 'stubs/ext/imap/IMAP/Connection.php',
'intldatepatterngenerator' => 'stubs/ext/intl/dateformat/IntlDatePatternGenerator.php',
'__php_incomplete_class' => 'stubs/ext/standard/__PHP_Incomplete_Class.php',
'assertionerror' => 'stubs/ext/standard/AssertionError.php',
'ftp\\connection' => 'stubs/ext/ftp/FTP/Connection.php',
'logicexception' => 'stubs/ext/spl/LogicException.php',
'badfunctioncallexception' => 'stubs/ext/spl/BadFunctionCallException.php',
'badmethodcallexception' => 'stubs/ext/spl/BadMethodCallException.php',
Expand All @@ -2649,33 +2656,22 @@ public function __construct(int $phpVersionId)
'rangeexception' => 'stubs/ext/spl/RangeException.php',
'underflowexception' => 'stubs/ext/spl/UnderflowException.php',
'unexpectedvalueexception' => 'stubs/ext/spl/UnexpectedValueException.php',
'com_safearray_proxy' => 'stubs/ext/com_dotnet/com_safearray_proxy.php',
'pgsql\\connection' => 'stubs/ext/pgsql/PgSql/Connection.php',
'pgsql\\result' => 'stubs/ext/pgsql/PgSql/Result.php',
'pgsql\\lob' => 'stubs/ext/pgsql/PgSql/Lob.php',
'zendtestparameterattribute' => 'stubs/ext/zend_test/ZendTestParameterAttribute.php',
'zendtestclasswithmethodwithparameterattribute' => 'stubs/ext/zend_test/ZendTestClassWithMethodWithParameterAttribute.php',
'zendtestchildclasswithmethodwithparameterattribute' => 'stubs/ext/zend_test/ZendTestChildClassWithMethodWithParameterAttribute.php',
'zendtestns2\\zendsubns\\foo' => 'stubs/ext/zend_test/ZendTestNS2/ZendSubNS/Foo.php',
'_zendtestfiber' => 'stubs/ext/zend_test/_ZendTestFiber.php',
'reflectionintersectiontype' => 'stubs/ext/reflection/ReflectionIntersectionType.php',
'reflectionenum' => 'stubs/ext/reflection/ReflectionEnum.php',
'reflectionenumunitcase' => 'stubs/ext/reflection/ReflectionEnumUnitCase.php',
'reflectionenumbackedcase' => 'stubs/ext/reflection/ReflectionEnumBackedCase.php',
'reflectionfiber' => 'stubs/ext/reflection/ReflectionFiber.php',
'imap\\connection' => 'stubs/ext/imap/IMAP/Connection.php',
'returntypewillchange' => 'stubs/Zend/ReturnTypeWillChange.php',
'ldap\\connection' => 'stubs/ext/ldap/LDAP/Connection.php',
'ldap\\result' => 'stubs/ext/ldap/LDAP/Result.php',
'ldap\\resultentry' => 'stubs/ext/ldap/LDAP/ResultEntry.php',
'unitenum' => 'stubs/Zend/UnitEnum.php',
'backedenum' => 'stubs/Zend/BackedEnum.php',
'fiber' => 'stubs/Zend/Fiber.php',
'fibererror' => 'stubs/Zend/FiberError.php',
'returntypewillchange' => 'stubs/Zend/ReturnTypeWillChange.php',
'stdclass' => 'stubs/Zend/stdClass.php',
'unitenum' => 'stubs/Zend/UnitEnum.php',
'backedenum' => 'stubs/Zend/BackedEnum.php',
));
$functions = \array_merge($functions, array (
'array_is_list' => 'stubs/ext/standard/array_is_list.php',
'fsync' => 'stubs/ext/standard/fsync.php',
'fdatasync' => 'stubs/ext/standard/fdatasync.php',
'pcntl_rfork' => 'stubs/ext/pcntl/pcntl_rfork.php',
'sodium_crypto_core_ristretto255_add' => 'stubs/ext/sodium/sodium_crypto_core_ristretto255_add.php',
'sodium_crypto_core_ristretto255_from_hash' => 'stubs/ext/sodium/sodium_crypto_core_ristretto255_from_hash.php',
'sodium_crypto_core_ristretto255_is_valid_point' => 'stubs/ext/sodium/sodium_crypto_core_ristretto255_is_valid_point.php',
Expand All @@ -2698,12 +2694,16 @@ public function __construct(int $phpVersionId)
'imageavif' => 'stubs/ext/gd/imageavif.php',
'dl_test_test1' => 'stubs/ext/dl_test/dl_test_test1.php',
'dl_test_test2' => 'stubs/ext/dl_test/dl_test_test2.php',
'mysqli_fetch_column' => 'stubs/ext/mysqli/mysqli_fetch_column.php',
'array_is_list' => 'stubs/ext/standard/array_is_list.php',
'fsync' => 'stubs/ext/standard/fsync.php',
'fdatasync' => 'stubs/ext/standard/fdatasync.php',
'pcntl_rfork' => 'stubs/ext/pcntl/pcntl_rfork.php',
'zendtestunitenum' => 'stubs/ext/zend_test/ZendTestUnitEnum.php',
'zendteststringenum' => 'stubs/ext/zend_test/ZendTestStringEnum.php',
'zend_get_unit_enum' => 'stubs/ext/zend_test/zend_get_unit_enum.php',
'zend_test_parameter_with_attribute' => 'stubs/ext/zend_test/zend_test_parameter_with_attribute.php',
'zend_call_method' => 'stubs/ext/zend_test/zend_call_method.php',
'mysqli_fetch_column' => 'stubs/ext/mysqli/mysqli_fetch_column.php',
'enum_exists' => 'stubs/Zend/enum_exists.php',
));
}
Expand Down
2 changes: 2 additions & 0 deletions stubs/ext/ffi/FFI/CData.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace FFI;

/** @not-serializable */
final class CData
{
Expand Down
2 changes: 2 additions & 0 deletions stubs/ext/ffi/FFI/CType.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace FFI;

/** @not-serializable */
final class CType
{
Expand Down
2 changes: 2 additions & 0 deletions stubs/ext/ffi/FFI/Exception.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace FFI;

class Exception extends \Error
{
}
2 changes: 2 additions & 0 deletions stubs/ext/ffi/FFI/ParserException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace FFI;

final class ParserException extends \FFI\Exception
{
}
2 changes: 2 additions & 0 deletions stubs/ext/zend_test/ZendTestNS/Foo.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace ZendTestNS;

class Foo
{
public function method() : void
Expand Down
2 changes: 2 additions & 0 deletions stubs/ext/zend_test/ZendTestNS2/Foo.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace ZendTestNS2;

class Foo
{
public function method() : void
Expand Down
2 changes: 2 additions & 0 deletions stubs/ext/zend_test/ZendTestNS2/ZendSubNS/namespaced_func.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace ZendTestNS2\ZendSubNS;

function namespaced_func() : bool
{
}

0 comments on commit ba8b69c

Please sign in to comment.