Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uv stubs #1627

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions PhpStormStubsMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,30 @@ final class PhpStormStubsMap
'TypeError' => 'Core/Core_c.php',
'UConverter' => 'intl/intl.php',
'UV' => 'uv/UV.php',
'UVAddrinfo' => 'uv/UV.php',
'UVAsync' => 'uv/UV.php',
'UVCheck' => 'uv/UV.php',
'UVFs' => 'uv/UV.php',
'UVFsEvent' => 'uv/UV.php',
'UVFsPoll' => 'uv/UV.php',
'UVIdle' => 'uv/UV.php',
'UVLock' => 'uv/UV.php',
'UVLoop' => 'uv/UV.php',
'UVPipe' => 'uv/UV.php',
'UVPoll' => 'uv/UV.php',
'UVPrepare' => 'uv/UV.php',
'UVProcess' => 'uv/UV.php',
'UVSignal' => 'uv/UV.php',
'UVSockAddr' => 'uv/UV.php',
'UVSockAddrIPv4' => 'uv/UV.php',
'UVSockAddrIPv6' => 'uv/UV.php',
'UVStdio' => 'uv/UV.php',
'UVStream' => 'uv/UV.php',
'UVTcp' => 'uv/UV.php',
'UVTimer' => 'uv/UV.php',
'UVTty' => 'uv/UV.php',
'UVUdp' => 'uv/UV.php',
'UVWork' => 'uv/UV.php',
'UnderflowException' => 'SPL/SPL.php',
'UnexpectedValueException' => 'SPL/SPL.php',
'UnhandledMatchError' => 'Core/Core_c.php',
Expand Down Expand Up @@ -1677,7 +1701,6 @@ final class PhpStormStubsMap
'apcu_key_info' => 'apcu/apcu.php',
'apcu_sma_info' => 'apcu/apcu.php',
'apcu_store' => 'apcu/apcu.php',
'ares_gethostbyname' => 'uv/uv_functions.php',
'array_change_key_case' => 'standard/standard_9.php',
'array_chunk' => 'standard/standard_9.php',
'array_column' => 'standard/standard_9.php',
Expand Down Expand Up @@ -5765,7 +5788,6 @@ final class PhpStormStubsMap
'uuid_unparse' => 'uuid/uuid_c.php',
'uuid_variant' => 'uuid/uuid_c.php',
'uv_accept' => 'uv/uv_functions.php',
'uv_ares_init_options' => 'uv/uv_functions.php',
'uv_async_init' => 'uv/uv_functions.php',
'uv_async_send' => 'uv/uv_functions.php',
'uv_chdir' => 'uv/uv_functions.php',
Expand Down Expand Up @@ -5810,7 +5832,6 @@ final class PhpStormStubsMap
'uv_get_total_memory' => 'uv/uv_functions.php',
'uv_getaddrinfo' => 'uv/uv_functions.php',
'uv_guess_handle' => 'uv/uv_functions.php',
'uv_handle_type' => 'uv/uv_functions.php',
'uv_hrtime' => 'uv/uv_functions.php',
'uv_idle_init' => 'uv/uv_functions.php',
'uv_idle_start' => 'uv/uv_functions.php',
Expand All @@ -5821,6 +5842,7 @@ final class PhpStormStubsMap
'uv_ip6_addr' => 'uv/uv_functions.php',
'uv_ip6_name' => 'uv/uv_functions.php',
'uv_is_active' => 'uv/uv_functions.php',
'uv_is_closing' => 'uv/uv_functions.php',
'uv_is_readable' => 'uv/uv_functions.php',
'uv_is_writable' => 'uv/uv_functions.php',
'uv_kill' => 'uv/uv_functions.php',
Expand All @@ -5846,7 +5868,6 @@ final class PhpStormStubsMap
'uv_prepare_stop' => 'uv/uv_functions.php',
'uv_process_kill' => 'uv/uv_functions.php',
'uv_queue_work' => 'uv/uv_functions.php',
'uv_read2_start' => 'uv/uv_functions.php',
'uv_read_start' => 'uv/uv_functions.php',
'uv_read_stop' => 'uv/uv_functions.php',
'uv_ref' => 'uv/uv_functions.php',
Expand Down
31 changes: 30 additions & 1 deletion uv/UV.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

class UV
abstract class UV
{
public const RUN_DEFAULT = 0;
public const RUN_ONCE = 1;
Expand Down Expand Up @@ -201,3 +201,32 @@ class UV
public const ENOTTY = -25;
public const EFTYPE = -4028;
}

abstract class UVStream extends UV {}

class UVTcp extends UVStream {}
class UVUdp extends UV {}
class UVPipe extends UVStream {}
class UVIdle extends UV {}
class UVTimer extends UV {}
class UVAsync extends UV {}
class UVAddrinfo extends UV {}
class UVProcess extends UV {}
class UVPrepare extends UV {}
class UVCheck extends UV {}
class UVWork extends UV {}
class UVFs extends UV {}
class UVFsEvent extends UV {}
class UVTty extends UVStream {}
class UVFsPoll extends UV {}
class UVPoll extends UV {}
class UVSignal extends UV {}

class UVLoop {}

abstract class UVSockAddr {}
class UVSockAddrIPv4 extends UVSockAddr {}
class UVSockAddrIPv6 extends UVSockAddr {}

class UVLock {}
class UVStdio {}
Loading