diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 09:59:32 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 09:59:40 +0900 |
| commit | e85c1c6c86a42b9aee5687b943743520fc677844 (patch) | |
| tree | 3cffb2b29c77e9558190b8ed8d063f6f582e5280 /crates/shirabe | |
| parent | 8fb6de392bbac104c07a5cdbac12a4fd25ab1127 (diff) | |
| download | php-shirabe-e85c1c6c86a42b9aee5687b943743520fc677844.tar.gz php-shirabe-e85c1c6c86a42b9aee5687b943743520fc677844.tar.zst php-shirabe-e85c1c6c86a42b9aee5687b943743520fc677844.zip | |
fix(php-shim): add missing stub functions, constants, and types
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe')
| -rw-r--r-- | crates/shirabe/src/config/json_config_source.rs | 5 | ||||
| -rw-r--r-- | crates/shirabe/src/downloader/file_downloader.rs | 8 | ||||
| -rw-r--r-- | crates/shirabe/src/json/json_file.rs | 9 | ||||
| -rw-r--r-- | crates/shirabe/src/repository/filesystem_repository.rs | 9 | ||||
| -rw-r--r-- | crates/shirabe/src/repository/package_repository.rs | 2 | ||||
| -rw-r--r-- | crates/shirabe/src/util/http_downloader.rs | 3 |
6 files changed, 20 insertions, 16 deletions
diff --git a/crates/shirabe/src/config/json_config_source.rs b/crates/shirabe/src/config/json_config_source.rs index 5dc5e8d..4575123 100644 --- a/crates/shirabe/src/config/json_config_source.rs +++ b/crates/shirabe/src/config/json_config_source.rs @@ -3,9 +3,10 @@ use anyhow::Result; use indexmap::IndexMap; use shirabe_php_shim::{ - PHP_EOL, PhpMixed, RuntimeException, Silencer, array_unshift, call_user_func_array, chmod, - explode, file_get_contents, file_put_contents, implode, is_writable, sprintf, + PHP_EOL, PhpMixed, RuntimeException, array_unshift, call_user_func_array, chmod, explode, + file_get_contents, file_put_contents, implode, is_writable, sprintf, }; +use crate::util::silencer::Silencer; use crate::config::config_source_interface::ConfigSourceInterface; use crate::json::json_file::JsonFile; diff --git a/crates/shirabe/src/downloader/file_downloader.rs b/crates/shirabe/src/downloader/file_downloader.rs index 5b002ff..47c216a 100644 --- a/crates/shirabe/src/downloader/file_downloader.rs +++ b/crates/shirabe/src/downloader/file_downloader.rs @@ -8,11 +8,11 @@ use shirabe_external_packages::react::promise::promise_interface::PromiseInterfa use shirabe_external_packages::react::promise::resolve as react_promise_resolve; use shirabe_php_shim::{ DIRECTORY_SEPARATOR, InvalidArgumentException, PATHINFO_BASENAME, PATHINFO_EXTENSION, - PHP_URL_PATH, PhpMixed, RuntimeException, Silencer, UnexpectedValueException, array_search, - array_shift, file_exists, filesize, get_class, hash, hash_file, in_array, is_dir, - is_executable, parse_url, pathinfo, realpath, rtrim, spl_object_hash, strlen, strpos, strtr, - trim, umask, usleep, + PHP_URL_PATH, PhpMixed, RuntimeException, UnexpectedValueException, array_search, array_shift, + file_exists, filesize, get_class, hash, hash_file, in_array, is_dir, is_executable, parse_url, + pathinfo, realpath, rtrim, spl_object_hash, strlen, strpos, strtr, trim, umask, usleep, }; +use crate::util::silencer::Silencer; use crate::cache::Cache; use crate::config::Config; diff --git a/crates/shirabe/src/json/json_file.rs b/crates/shirabe/src/json/json_file.rs index cdb9ba7..92c3428 100644 --- a/crates/shirabe/src/json/json_file.rs +++ b/crates/shirabe/src/json/json_file.rs @@ -8,11 +8,12 @@ use shirabe_external_packages::seld::json_lint::parsing_exception::ParsingExcept use shirabe_php_shim::{ InvalidArgumentException, JSON_ERROR_CTRL_CHAR, JSON_ERROR_DEPTH, JSON_ERROR_NONE, JSON_ERROR_STATE_MISMATCH, JSON_ERROR_UTF8, JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES, - JSON_UNESCAPED_UNICODE, PhpMixed, RuntimeException, Silencer, UnexpectedValueException, - defined, dirname, file_exists, file_get_contents, file_put_contents, is_dir, is_file, - json_decode, json_encode_ex, json_last_error, mkdir, php_dir, realpath, str_contains, - str_ends_with, str_repeat, strlen, strpos, usleep, + JSON_UNESCAPED_UNICODE, PhpMixed, RuntimeException, UnexpectedValueException, defined, dirname, + file_exists, file_get_contents, file_put_contents, is_dir, is_file, json_decode, json_encode_ex, + json_last_error, mkdir, php_dir, realpath, str_contains, str_ends_with, str_repeat, strlen, + strpos, usleep, }; +use crate::util::silencer::Silencer; use crate::downloader::transport_exception::TransportException; use crate::io::io_interface::IOInterface; diff --git a/crates/shirabe/src/repository/filesystem_repository.rs b/crates/shirabe/src/repository/filesystem_repository.rs index 4ca5ab1..374c8e9 100644 --- a/crates/shirabe/src/repository/filesystem_repository.rs +++ b/crates/shirabe/src/repository/filesystem_repository.rs @@ -6,11 +6,12 @@ use anyhow::Result; use indexmap::IndexMap; use shirabe_external_packages::composer::pcre::preg::Preg; use shirabe_php_shim::{ - InvalidArgumentException, LogicException, PhpMixed, SORT_NATURAL, Silencer, - UnexpectedValueException, array_flip, dirname, r#eval, file_get_contents, get_class, - get_debug_type, in_array, is_array, is_int, is_null, is_string, ksort, php_dir, realpath, sort, - sort_with_flags, str_repeat, strtr, trim, usort, var_export, + InvalidArgumentException, LogicException, PhpMixed, SORT_NATURAL, UnexpectedValueException, + array_flip, dirname, r#eval, file_get_contents, get_class, get_debug_type, in_array, is_array, + is_int, is_null, is_string, ksort, php_dir, realpath, sort, sort_with_flags, str_repeat, strtr, + trim, usort, var_export, }; +use crate::util::silencer::Silencer; use crate::installed_versions::InstalledVersions; use crate::installer::installation_manager::InstallationManager; diff --git a/crates/shirabe/src/repository/package_repository.rs b/crates/shirabe/src/repository/package_repository.rs index 7bdf95f..f11af06 100644 --- a/crates/shirabe/src/repository/package_repository.rs +++ b/crates/shirabe/src/repository/package_repository.rs @@ -12,7 +12,7 @@ use crate::repository::array_repository::ArrayRepository; use crate::repository::invalid_repository_exception::InvalidRepositoryException; use indexmap::IndexMap; use shirabe_external_packages::composer::pcre::preg::Preg; -use shirabe_php_shim::{Exception, PhpMixed}; +use shirabe_php_shim::{Exception, PhpMixed, RuntimeException, var_export}; use shirabe_semver::constraint::constraint_interface::ConstraintInterface; #[derive(Debug)] diff --git a/crates/shirabe/src/util/http_downloader.rs b/crates/shirabe/src/util/http_downloader.rs index eb28ca0..5786da3 100644 --- a/crates/shirabe/src/util/http_downloader.rs +++ b/crates/shirabe/src/util/http_downloader.rs @@ -7,10 +7,11 @@ use shirabe_external_packages::composer::pcre::preg::Preg; use shirabe_external_packages::react::promise::promise::Promise; use shirabe_external_packages::react::promise::promise_interface::PromiseInterface; use shirabe_php_shim::{ - InvalidArgumentException, LogicException, PhpMixed, Silencer, array_replace_recursive, chr, + InvalidArgumentException, LogicException, PhpMixed, array_replace_recursive, chr, extension_loaded, file_get_contents, function_exists, implode, is_numeric, max, min, rawurldecode, stream_context_create, stripos, strpos, substr, ucfirst, }; +use crate::util::silencer::Silencer; use shirabe_semver::constraint::constraint::Constraint; use crate::composer::Composer; |
