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

Add stubs for sapi/phpdbg functions #793

Merged
merged 1 commit into from
May 13, 2020
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
11 changes: 11 additions & 0 deletions PhpStormStubsMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3938,6 +3938,17 @@ final class PhpStormStubsMap
'php_strip_whitespace' => 'standard/standard_4.php',
'php_uname' => 'standard/standard_0.php',
'phpcredits' => 'standard/standard_0.php',
'phpdbg_break_file' => 'phpdbg/phpdbg.php',
'phpdbg_break_function' => 'phpdbg/phpdbg.php',
'phpdbg_break_method' => 'phpdbg/phpdbg.php',
'phpdbg_break_next' => 'phpdbg/phpdbg.php',
'phpdbg_clear' => 'phpdbg/phpdbg.php',
'phpdbg_color' => 'phpdbg/phpdbg.php',
'phpdbg_end_oplog' => 'phpdbg/phpdbg.php',
'phpdbg_exec' => 'phpdbg/phpdbg.php',
'phpdbg_get_executable' => 'phpdbg/phpdbg.php',
'phpdbg_prompt' => 'phpdbg/phpdbg.php',
'phpdbg_start_oplog' => 'phpdbg/phpdbg.php',
'phpinfo' => 'standard/standard_0.php',
'phpversion' => 'standard/standard_0.php',
'pi' => 'standard/standard_3.php',
Expand Down
26 changes: 26 additions & 0 deletions phpdbg/phpdbg.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

function phpdbg_break_next(): void {}

function phpdbg_break_file(string $file, int $line): void {}

function phpdbg_break_method(string $class, string $method): void {}

function phpdbg_break_function(string $function): void {}

function phpdbg_color(int $element, string $color): void {}

function phpdbg_prompt(string $string): void {}

/**
* @return string|bool
*/
function phpdbg_exec(string $context) {}

function phpdbg_clear(): void {}

function phpdbg_start_oplog(): void {}

function phpdbg_end_oplog(array $options = []): ?array {}

function phpdbg_get_executable(array $options = []): array {}