diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-06 21:22:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-06 21:33:05 +0900 |
| commit | 8bd02532cd04ee12d7595029c206f3dc5ab9dd96 (patch) | |
| tree | 5f9897bfefcb9a503d92560311c4d95ee620a025 /crates/shirabe/src/autoload/autoload_generator.rs | |
| parent | c0b743c8d75813003756a72d2fdd110de8368b5f (diff) | |
| download | php-shirabe-8bd02532cd04ee12d7595029c206f3dc5ab9dd96.tar.gz php-shirabe-8bd02532cd04ee12d7595029c206f3dc5ab9dd96.tar.zst php-shirabe-8bd02532cd04ee12d7595029c206f3dc5ab9dd96.zip | |
chore(shirabe): remove ports of PHP @deprecated APIs
Composer does not use its own deprecated APIs internally, so drop their
Rust ports: whole deprecated classes, methods, constants, and field.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/autoload/autoload_generator.rs')
| -rw-r--r-- | crates/shirabe/src/autoload/autoload_generator.rs | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/crates/shirabe/src/autoload/autoload_generator.rs b/crates/shirabe/src/autoload/autoload_generator.rs index 6505510..54f67a5 100644 --- a/crates/shirabe/src/autoload/autoload_generator.rs +++ b/crates/shirabe/src/autoload/autoload_generator.rs @@ -7,12 +7,12 @@ use shirabe_class_map_generator::class_map_generator::ClassMapGenerator; use shirabe_external_packages::composer::pcre::{CaptureKey, Preg}; use shirabe_external_packages::symfony::component::console::formatter::OutputFormatter; use shirabe_php_shim::{ - E_USER_DEPRECATED, InvalidArgumentException, PhpMixed, RuntimeException, array_filter, - array_keys, array_map, array_merge, array_merge_map, array_merge_recursive, array_reverse, - array_shift, array_slice, array_slice_strs, array_unique, bin2hex, explode, file_exists, - file_get_contents, hash, implode, in_array, is_array, krsort, ksort, ltrim, preg_quote, - random_bytes, realpath, sprintf, str_contains, str_replace, str_starts_with, strlen, strpos, - strtr, substr, substr_count, trigger_error, trim, unlink, var_export, + InvalidArgumentException, PhpMixed, RuntimeException, array_filter, array_keys, array_map, + array_merge, array_merge_map, array_merge_recursive, array_reverse, array_shift, array_slice, + array_slice_strs, array_unique, bin2hex, explode, file_exists, file_get_contents, hash, + implode, in_array, is_array, krsort, ksort, ltrim, preg_quote, random_bytes, realpath, sprintf, + str_contains, str_replace, str_starts_with, strlen, strpos, strtr, substr, substr_count, trim, + unlink, var_export, }; use shirabe_semver::constraint::AnyConstraint; use shirabe_semver::constraint::Bound; @@ -97,24 +97,6 @@ impl AutoloadGenerator { self.dry_run = dry_run; } - /// Whether platform requirements should be ignored. - /// - /// If this is set to true, the platform check file will not be generated - /// If this is set to false, the platform check file will be generated with all requirements - /// If this is set to string[], those packages will be ignored from the platform check file - /// - /// Deprecated: use setPlatformRequirementFilter instead - pub fn set_ignore_platform_requirements(&mut self, ignore_platform_reqs: PhpMixed) { - trigger_error( - "AutoloadGenerator::setIgnorePlatformRequirements is deprecated since Composer 2.2, use setPlatformRequirementFilter instead.", - E_USER_DEPRECATED, - ); - - self.set_platform_requirement_filter( - PlatformRequirementFilterFactory::from_bool_or_list(ignore_platform_reqs).unwrap(), - ); - } - pub fn set_platform_requirement_filter( &mut self, platform_requirement_filter: std::rc::Rc<dyn PlatformRequirementFilterInterface>, |
