Skip to content

Commit

Permalink
use php 8.4 beta 4
Browse files Browse the repository at this point in the history
  • Loading branch information
isfedorov committed Sep 1, 2024
1 parent 8c9a279 commit bfcb84b
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Phar/Phar.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ public function offsetUnset($localName): void {}
* @return bool
*/
#[TentativeType]
public function setAlias(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $alias): bool {}
#[LanguageLevelTypeAware(['8.4' => 'true'], default: 'bool')]
public function setAlias(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $alias) {}

/**
* (Unknown)<br/>
Expand All @@ -570,10 +571,11 @@ public function setAlias(#[LanguageLevelTypeAware(['8.0' => 'string'], default:
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[TentativeType]
#[LanguageLevelTypeAware(['8.4' => 'true'], default: 'bool')]
public function setDefaultStub(
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $index = null,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $webIndex = null
): bool {}
) {}

/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
Expand Down
6 changes: 6 additions & 0 deletions PhpStormStubsMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7104,6 +7104,7 @@ final class PhpStormStubsMap
'CURLOPT_SUPPRESS_CONNECT_HEADERS' => 'curl/curl_d.php',
'CURLOPT_TCP_FASTOPEN' => 'curl/curl_d.php',
'CURLOPT_TCP_KEEPALIVE' => 'curl/curl_d.php',
'CURLOPT_TCP_KEEPCNT' => 'curl/curl_d.php',
'CURLOPT_TCP_KEEPIDLE' => 'curl/curl_d.php',
'CURLOPT_TCP_KEEPINTVL' => 'curl/curl_d.php',
'CURLOPT_TCP_NODELAY' => 'curl/curl_d.php',
Expand Down Expand Up @@ -10428,6 +10429,7 @@ final class PhpStormStubsMap
'MYSQLI_TYPE_TINY' => 'mysqli/mysqli.php',
'MYSQLI_TYPE_TINY_BLOB' => 'mysqli/mysqli.php',
'MYSQLI_TYPE_VAR_STRING' => 'mysqli/mysqli.php',
'MYSQLI_TYPE_VECTOR' => 'mysqli/mysqli.php',
'MYSQLI_TYPE_YEAR' => 'mysqli/mysqli.php',
'MYSQLI_UNIQUE_KEY_FLAG' => 'mysqli/mysqli.php',
'MYSQLI_UNSIGNED_FLAG' => 'mysqli/mysqli.php',
Expand Down Expand Up @@ -12155,6 +12157,7 @@ final class PhpStormStubsMap
'SORT_STRING' => 'standard/standard_defines.php',
'SO_ATTACH_REUSEPORT_CBPF' => 'sockets/sockets.php',
'SO_BINDTODEVICE' => 'sockets/sockets.php',
'SO_BINDTOIFINDEX' => 'sockets/sockets.php',
'SO_BPF_EXTENSIONS' => 'sockets/sockets.php',
'SO_BROADCAST' => 'sockets/sockets.php',
'SO_DEBUG' => 'sockets/sockets.php',
Expand Down Expand Up @@ -13360,9 +13363,12 @@ final class PhpStormStubsMap
'T_POW_EQUAL' => 'tokenizer/tokenizer.php',
'T_PRINT' => 'tokenizer/tokenizer.php',
'T_PRIVATE' => 'tokenizer/tokenizer.php',
'T_PRIVATE_SET' => 'tokenizer/tokenizer.php',
'T_PROPERTY_C' => 'tokenizer/tokenizer.php',
'T_PROTECTED' => 'tokenizer/tokenizer.php',
'T_PROTECTED_SET' => 'tokenizer/tokenizer.php',
'T_PUBLIC' => 'tokenizer/tokenizer.php',
'T_PUBLIC_SET' => 'tokenizer/tokenizer.php',
'T_READONLY' => 'tokenizer/tokenizer.php',
'T_REQUIRE' => 'tokenizer/tokenizer.php',
'T_REQUIRE_ONCE' => 'tokenizer/tokenizer.php',
Expand Down
20 changes: 20 additions & 0 deletions Reflection/ReflectionProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ class ReflectionProperty implements Reflector
*/
public const IS_READONLY = 128;

/**
* @since 8.4
*/
public const IS_PROTECTED_SET = 2048;

/**
* @since 8.4
*/
public const IS_PRIVATE_SET = 4096;

/**
* Construct a ReflectionProperty object
*
Expand Down Expand Up @@ -385,4 +395,14 @@ public function getHooks(): array {}
* @since 8.4
*/
public function getHook(PropertyHookType $type): ?ReflectionMethod {}

/**
* @since 8.4
*/
public function isPrivateSet(): bool {}

/**
* @since 8.4
*/
public function isProtectedSet(): bool {}
}
5 changes: 5 additions & 0 deletions curl/curl_d.php
Original file line number Diff line number Diff line change
Expand Up @@ -4358,3 +4358,8 @@
* @since 8.4
*/
define('CURL_PREREQFUNC_ABORT', 1);

/**
* @since 8.4
*/
define('CURLOPT_TCP_KEEPCNT', 326);
5 changes: 5 additions & 0 deletions mysqli/mysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -3607,3 +3607,8 @@ function mysqli_set_opt(
* @since 8.1
*/
define('MYSQLI_IS_MARIADB', 0);

/**
* @since 8.4
*/
define('MYSQLI_TYPE_VECTOR', 242);
5 changes: 5 additions & 0 deletions sockets/sockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -2385,6 +2385,11 @@ function socket_atmark(Socket $socket): bool {}
* @since 8.4
*/
define('SOCK_NONBLOCK', 2048);

/**
* @since 8.4
*/
define('SO_BINDTOIFINDEX', 62);
/**
* @since 8.0
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/DockerImages/8.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.4.0beta3-alpine
FROM php:8.4.0beta4-alpine

RUN set -eux; \
apk add --repository http://dl-cdn.alpinelinux.org/alpine/edge/community --no-cache --virtual .build-deps \
Expand Down
2 changes: 1 addition & 1 deletion tests/DockerImages/testRunner/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.4.0beta3-alpine
FROM php:8.4.0beta4-alpine

RUN echo 'memory_limit = 2048M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini
COPY --from=composer /usr/bin/composer /usr/bin/composer
Expand Down
15 changes: 15 additions & 0 deletions tokenizer/tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,18 @@ function token_name(int $id): string {}
* @removed 7.0
*/
define('T_CHARACTER', 315);

/**
* @since 8.4
*/
define('T_PRIVATE_SET', 327);

/**
* @since 8.4
*/
define('T_PROTECTED_SET', 328);

/**
* @since 8.4
*/
define('T_PUBLIC_SET', 329);

0 comments on commit bfcb84b

Please sign in to comment.